diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-23 00:15:24 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-23 00:15:24 +0800 |
| commit | 42e47d657ae4900e2a6c29644a959124beb8d15f (patch) | |
| tree | 8475e35a5cdf52e372ff25aec08fac00c7390871 /assets | |
| parent | c514a018451a573497e33e302b3939991bffc018 (diff) | |
:pencil2: Perf: 调整字体粗细
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/matcha/matcha.css | 2 | ||||
| -rw-r--r-- | assets/matcha/matcha.post.css | 61 |
2 files changed, 29 insertions, 34 deletions
diff --git a/assets/matcha/matcha.css b/assets/matcha/matcha.css index e84ad59..46bbf57 100644 --- a/assets/matcha/matcha.css +++ b/assets/matcha/matcha.css @@ -14,4 +14,4 @@ @import url('matcha.libs.css'); @import url('matcha.dark.css'); -@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC&family=Noto+Serif+SC&family=ZCOOL+XiaoWei&display=swap');
\ No newline at end of file +@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&family=ZCOOL+XiaoWei&display=swap');
\ No newline at end of file diff --git a/assets/matcha/matcha.post.css b/assets/matcha/matcha.post.css index df2dc31..a885814 100644 --- a/assets/matcha/matcha.post.css +++ b/assets/matcha/matcha.post.css @@ -19,12 +19,31 @@ } .post-title { - margin: .83em 0; font-size: 1.2em; + margin: 0.5em 0; + font-weight: 500 +} +.post-title > a { + font-weight: 400; + color: var(--text-color); +} +.post-atmain .post-title a { + font-weight: bolder +} +.post-title:not(.post-title-atpage):hover>a { + color: var(--theme-color) +} + +.post-title-atpage { + font-size: 1.7em; + margin-top: .9em; + font-weight: 400; + position: relative; + font-weight: 700 } .post-meta { - margin-top: -0.5em; + margin-top: 0; padding: 0; color: var(--text-gray); font-size: .92857em; @@ -43,6 +62,13 @@ border: none; } +.post-meta * { + color: var(--text-gray) !important; +} +.post-meta a:hover { + color: var(--theme-color) !important; +} + .post-content { line-height: 1.5; } @@ -65,37 +91,6 @@ } } -.post-title { - margin: 0.5em 0; -} -.post-title > a { - font-weight: 400; - color: var(--text-color); -} -.post-atmain .post-title a { - font-weight: bolder -} -.post-title:not(.post-title-atpage):hover>a { - color: var(--theme-color) -} - - -.post-meta { - margin-top: 0px !important; -} -.post-meta * { - color: var(--text-gray) !important; -} -.post-meta a:hover { - color: var(--theme-color) !important; -} - -.post-title-atpage { - font-size: 1.7em; - margin-top: .9em; - font-weight: 400; - position: relative -} .page-title-atpage { font-size: 2em; margin-top: 0 |
