Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
LoveIt
提交
41a14bc2
L
LoveIt
项目概览
OpenDocCN
/
LoveIt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
LoveIt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
41a14bc2
编写于
2月 20, 2020
作者:
D
Dillon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(style): update css code style
上级
315eb094
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
37 addition
and
38 deletion
+37
-38
assets/css/_variables.scss
assets/css/_variables.scss
+11
-0
assets/css/style.template.scss
assets/css/style.template.scss
+6
-22
exampleSite/config/css/_custom.scss
exampleSite/config/css/_custom.scss
+0
-11
exampleSite/config/css/_override.scss
exampleSite/config/css/_override.scss
+15
-0
layouts/partials/head/link.html
layouts/partials/head/link.html
+4
-4
resources/_gen/assets/scss/css/style.template.scss_b8ba9a60a151126bfcde1421dc0b972d.content
...le.template.scss_b8ba9a60a151126bfcde1421dc0b972d.content
+1
-1
未找到文件。
assets/css/_variables.scss
浏览文件 @
41a14bc2
...
...
@@ -54,6 +54,17 @@ $header-height-mobile: 4rem !default;
$header-background-color
:
#f8f8f8
!
default
;
$header-background-color-dark
:
#252627
!
default
;
// Position of the header
$header-position-desktop
:
if
(
$header-normal-mode-desktop
,
static
,
fixed
)
!
default
;
$header-position-mobile
:
if
(
$header-normal-mode-mobile
,
static
,
fixed
)
!
default
;
// Top of the page padding
$page-padding-top-desktop
:
if
(
$header-normal-mode-desktop
,
1rem
,
6rem
)
!
default
;
$page-padding-top-mobile
:
if
(
$header-normal-mode-mobile
,
1rem
,
6rem
)
!
default
;
// Top of the post toc
$post-toc-top
:
if
(
$header-normal-mode-desktop
,
7rem
,
12rem
)
!
default
;
// Color of the hover header item
$header-hover-color
:
#161209
!
default
;
$header-hover-color-dark
:
#fff
!
default
;
...
...
assets/css/style.template.scss
浏览文件 @
41a14bc2
@charset
'utf-8'
;
$home-profile
:
{{
-
if
.Site.Params.home.profile.enable
-
}}
true
{{
else
}}
false
{{
end
}};
$home-posts
:
{{
-
if
.Site.Params.home.posts.enable
-
}}
true
{{
else
}}
false
{{
end
}};
{{
-
if
eq
.Site.Params.header.desktopMode
"normal"
-
}}
$header-position-desktop
:
static
;
$page-padding-top-desktop
:
1rem
;
$post-toc-top
:
7rem
;
{{
-
else
-
}}
$header-position-desktop
:
fixed
;
$page-padding-top-desktop
:
6rem
;
$post-toc-top
:
12rem
;
{{
-
end
-
}}
{{
-
if
eq
.Site.Params.header.mobileMode
"normal"
-
}}
$header-position-mobile
:
static
;
$page-padding-top-mobile
:
1rem
;
{{
-
else
-
}}
$header-position-mobile
:
fixed
;
$page-padding-top-mobile
:
6rem
;
{{
-
end
-
}}
$home-profile
:
{{
if
.Site.Params.home.profile.enable
}}
true
{{
else
}}
false
{{
end
}};
$home-posts
:
{{
if
.Site.Params.home.posts.enable
}}
true
{{
else
}}
false
{{
end
}};
$header-normal-mode-desktop
:
{{
if
eq
.Site.Params.header.desktopMode
"normal"
}}
true
{{
else
}}
false
{{
end
}};
$header-normal-mode-mobile
:
{{
if
eq
.Site.Params.header.mobileMode
"normal"
}}
true
{{
else
}}
false
{{
end
}};
@import
"_variables"
;
{{
-
if
fileExists
"config/css/_
custom
.scss"
-
}}
@import
"_
custom
"
;
{{
-
if
fileExists
"config/css/_
override
.scss"
-
}}
@import
"_
override
"
;
{{
-
end
-
}}
@import
"_core/normalize"
;
...
...
exampleSite/config/css/_custom.scss
浏览文件 @
41a14bc2
...
...
@@ -2,14 +2,3 @@
// Custom style
// 自定义样式
// ==============================
// You can override the variables in assets/css/_variables.scss to customize the style
// 您可以覆盖 assets/css/_variables.scss 中的变量以自定义样式
@import
url(https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900)
;
$global-font-family
:
Lato
,
-
apple-system
,
BlinkMacSystemFont
,
PingFang
SC
,
Microsoft
Yahei
,
Segoe
UI
,
Helvetica
,
Arial
,
sans-serif
,
Segoe
UI
Emoji
;
@import
url('https://fonts.googleapis.com/css?family=Fira+Mono:400,700&display=swap&subset=latin-ext')
;
$code-font-family
:
Fira
Mono
,
Source
Code
Pro
,
Menlo
,
Consolas
,
Monaco
,
monospace
;
exampleSite/config/css/_override.scss
0 → 100644
浏览文件 @
41a14bc2
// ==============================
// Override Variables
// 覆盖变量
// ==============================
// You can override the variables in assets/css/_variables.scss to customize the style
// 您可以覆盖 assets/css/_variables.scss 中的变量
@import
url(https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900)
;
$global-font-family
:
Lato
,
-
apple-system
,
BlinkMacSystemFont
,
PingFang
SC
,
Microsoft
Yahei
,
Segoe
UI
,
Helvetica
,
Arial
,
sans-serif
,
Segoe
UI
Emoji
;
@import
url('https://fonts.googleapis.com/css?family=Fira+Mono:400,700&display=swap&subset=latin-ext')
;
$code-font-family
:
Fira
Mono
,
Source
Code
Pro
,
Menlo
,
Consolas
,
Monaco
,
monospace
;
layouts/partials/head/link.html
浏览文件 @
41a14bc2
...
...
@@ -22,10 +22,10 @@
{{- /* style.min.css */ -}}
{{- $res := resources.Get "css/style.template.scss" -}}
{{- $options := dict "targetPath" "css/style.min.css"
"outputStyle" "compressed" "enableSourceMap" true
-}}
{{-
if fileExists "config/css/_custom.scss"
-}}
{{- $options = dict "includePaths" (slice "config/css")
| merge $options -}}
{{-
end
-}}
{{- $options := dict "targetPath" "css/style.min.css" -}}
{{-
$options = dict "includePaths" (slice "config/css") | merge $options
-}}
{{- $options = dict "outputStyle" "compressed"
| merge $options -}}
{{-
$options = dict "enableSourceMap" true | merge $options
-}}
{{- $res = resources.ExecuteAsTemplate "style.scss" . $res | toCSS $options -}}
<link
rel=
"stylesheet"
href=
"{{ $res.RelPermalink }}"
>
...
...
resources/_gen/assets/scss/css/style.template.scss_b8ba9a60a151126bfcde1421dc0b972d.content
浏览文件 @
41a14bc2
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录