Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
6cbc344e
Y
yanglr2010
项目概览
大白技术控
/
yanglr2010
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yanglr2010
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6cbc344e
编写于
9月 18, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: Solved the problem that the image of post shows unexpectedly
上级
d204ee78
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
36 deletion
+40
-36
layout/_partials/header/header.pug
layout/_partials/header/header.pug
+6
-6
source/css/_common/components/footer/index.styl
source/css/_common/components/footer/index.styl
+1
-2
source/css/_common/components/header/index.styl
source/css/_common/components/header/index.styl
+32
-28
source/css/_variables/index.styl
source/css/_variables/index.styl
+1
-0
未找到文件。
layout/_partials/header/header.pug
浏览文件 @
6cbc344e
...
...
@@ -5,7 +5,6 @@ include ../../_mixins/menu-item.pug
nav.header-nav
div.header-nav-inner
div.header-nav-btn(class=`${fa_prefix} fa-bars`)
div.header-nav-menu
+menuItem(theme.menu)
...
...
@@ -17,8 +16,9 @@ nav.header-nav
span!= __("nav.search")
div.header-info(style=`${
theme.header.bg_image.enable &&
page.top_image ? 'background: url(' + page.top_image + ') no-repeat center/cover;' : ''
}`)
div.header-info-title= config.title
div.header-info-subtitle= config.subtitle
theme.header.bg_image.enable &&
page.top_image ? 'background: url(' + page.top_image + ') no-repeat center/cover;' : ''
}`)
div.header-info-inner
div.header-info-title= config.title
div.header-info-subtitle= config.subtitle
source/css/_common/components/footer/index.styl
浏览文件 @
6cbc344e
...
...
@@ -21,8 +21,7 @@
if (hexo-config('footer.bg_image.enable') && hexo-config('footer.bg_image.url')) {
z-index: $z-index-2;
background: url(hexo-config('footer.bg_image.url')) no-repeat center center;
background-size: cover;
background: url(hexo-config('footer.bg_image.url')) no-repeat center/cover;
}
if (hexo-config('footer.mask.enable')) {
...
...
source/css/_common/components/header/index.styl
浏览文件 @
6cbc344e
.header {
&-inner {
position: relative;
width: 100%;
font-size: $font-size-header;
background-color: $header-nav-bg-color;
if (hexo-config('header.height') && match('%', hexo-config('header.height'))) {
height: unit(convert(hexo-config('header.height')), 'vh');
} else {
height: convert(hexo-config('header.height') || '80vh');
}
if (hexo-config('header.bg_image.enable') && hexo-config('header.bg_image.url')) {
background: url(hexo-config('header.bg_image.url')) no-repeat center center;
background-size: cover;
}
if (hexo-config('header.mask.enable')) {
&::before {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
z-index: $z-index0;
width: 100%;
height: 100%;
background-color: alpha(#000, hexo-config('header.mask.opacity'));
}
}
}
if (hexo-config('header.nav_height') && match('%', hexo-config('header.nav_height'))) {
...
...
@@ -161,14 +140,39 @@
}
&-info {
position: absolute;
top: 50%;
left: 0;
z-index: $z-index0;
padding: 0 .5rem;
position: relative;
width: 100%;
text-align: center;
transform: translateY(-50%);
height: 100%;
background-color: $header-bg-color;
if (hexo-config('header.bg_image.enable') && hexo-config('header.bg_image.url')) {
background: url(hexo-config('header.bg_image.url')) no-repeat center / cover;
}
if (hexo-config('header.mask.enable')) {
&::before {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
z-index: $z-index0;
width: 100%;
height: 100%;
background-color: alpha(#000, hexo-config('header.mask.opacity'));
}
}
&-inner {
position: absolute;
top: 50%;
left: 0;
z-index: $z-index0;
padding: 0 .5rem;
width: 100%;
text-align: center;
transform: translateY(-50%);
}
&-title {
margin-bottom: .5rem;
...
...
source/css/_variables/index.styl
浏览文件 @
6cbc344e
...
...
@@ -116,6 +116,7 @@ $img-border-color = #dadefb
// Module color
// -------------------------------------------
// Header
$header-bg-color = alpha(#2d2e30, .7)
$header-nav-bg-color = alpha(#2d2e30, .7)
$header-nav-link-color = $white-light
$header-nav-link-hover-color = $blue-light
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录