From bebb06666b1758586b448ef1e852a661a76956f4 Mon Sep 17 00:00:00 2001 From: movsb Date: Sun, 10 Mar 2024 02:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E7=94=A8=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=20LXGW=20WenKai=20/=20=E9=9C=9E=E9=B9=9C=E6=96=87=E6=A5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用方式参考: 直接引入了 GitHub Pages 的源,应该不会慢? --- theme/blog/statics/plugins/highlight/prism.css | 2 +- theme/blog/styles/content.scss | 2 +- theme/blog/styles/global.scss | 2 ++ theme/blog/styles/variables.scss | 4 ++-- theme/blog/templates/_header.html | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/theme/blog/statics/plugins/highlight/prism.css b/theme/blog/statics/plugins/highlight/prism.css index c52d8d17..cdfbad93 100644 --- a/theme/blog/statics/plugins/highlight/prism.css +++ b/theme/blog/statics/plugins/highlight/prism.css @@ -8,7 +8,7 @@ pre[class*="language-"] { color: #777; background: none; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + font-family: var(--mono-font), Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; text-align: left; white-space: pre; word-spacing: normal; diff --git a/theme/blog/styles/content.scss b/theme/blog/styles/content.scss index 3491fbde..862683e5 100644 --- a/theme/blog/styles/content.scss +++ b/theme/blog/styles/content.scss @@ -44,7 +44,7 @@ } } .meta1 { - margin-top: -1.8em; + margin-top: -1.5em; opacity: 0.5; } .meta2 { diff --git a/theme/blog/styles/global.scss b/theme/blog/styles/global.scss index f2e70a87..d401bce3 100644 --- a/theme/blog/styles/global.scss +++ b/theme/blog/styles/global.scss @@ -11,6 +11,8 @@ body { font: var(--font-size) "Trebuchet MS","Microsoft YaHei",'Noto Sans',sans-serif { } + font-family: "LXGW WenKai"; + font-weight: normal; } @media screen and (max-width: $max_width) { diff --git a/theme/blog/styles/variables.scss b/theme/blog/styles/variables.scss index 7dfd129c..8758c4ba 100644 --- a/theme/blog/styles/variables.scss +++ b/theme/blog/styles/variables.scss @@ -1,6 +1,6 @@ :root { ---font-size: 15px; ---mono-font: Monaco, Consolas, monospace, Courier; +--font-size: 18px; +--mono-font: "LXGW WenKai Mono", Monaco, Consolas, monospace, Courier; --max-width: 850px; --border-color-hover: #e18500; --border-radius: 4px; diff --git a/theme/blog/templates/_header.html b/theme/blog/templates/_header.html index 63682951..a444637b 100644 --- a/theme/blog/templates/_header.html +++ b/theme/blog/templates/_header.html @@ -11,6 +11,7 @@ {{- end -}} {{- get_config "blog_name" -}} +