diff options
| author | verdant <im@verdant.ee> | 2026-08-19 17:20:19 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-08-19 17:20:19 +0800 |
| commit | 66c2f117e788f3fa76784dfb4777060481b7edff (patch) | |
| tree | 831f8c3e1b8933c11d33280b863a2293ee59df8a /layouts/partials | |
| parent | e302bd73106b30f0ece8733d6c9717e43fdf18e1 (diff) | |
| download | blog-66c2f117e788f3fa76784dfb4777060481b7edff.tar.gz blog-66c2f117e788f3fa76784dfb4777060481b7edff.zip | |
Tweak CSS Style
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/style.html | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/layouts/partials/style.html b/layouts/partials/style.html index baa1c52..2b2ecac 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -3,32 +3,29 @@ --heading-base: 0.9rem; --scale: 1.2; } -h1, h2, h3, h4, h5, h6 { - color: #272727; - line-height: 1.2; - font-weight: 700; - margin: 1.5rem 0 0.5rem; - font-size: calc(var(--heading-base) * pow(var(--scale), var(--level))); -} +body {font: 400 1.06rem/1.8 monospace;max-width:720px;margin:auto;padding:0 20px;} +h1, h2, h3, h4, h5, h6 {font-size: calc(var(--heading-base) * pow(var(--scale), var(--level)));} h1 { --level: 5; } h2 { --level: 4; } h3 { --level: 3; } h4 { --level: 2; } h5 { --level: 1; } h6 { --level: 0; } -body { - font: 400 1.06rem/1.8 monospace; - max-width: 740px; - margin: 40px auto; - padding: 0 20px; -} pre { padding: 12px; overflow-x: auto; } img { max-width: 100%; } -a, a:visited, .title { color: #3f51b0; } -a { box-shadow: inset 0 -1px #f0f0f0; text-decoration: none; } +a, a:visited { color: #3f51b0; } blockquote p { color: #343232; } hr { color: #f0f0f0; } -article h1, h1.title { margin-bottom: 1rem; } -article h1 { text-align: center; margin-bottom: 2rem; } +article h1, h1.title { margin-bottom: 2rem; text-align: center;} +.site-title {margin-bottom: 0} +#最近更新 {margin: 0;} footer { font-size: 1rem; line-height: 1; } +@media (prefers-color-scheme: dark){html{color-scheme:dark;}body{background-color:#111110;color:#D0C7BD;}a{color:#E5C07B;text-decoration:underline;text-decoration-color:rgba(229,192,123,0.4);}a:visited{color:#8A8075;}a:hover{color:#F0D197;}blockquote p{color:#9E968D;}} </style> + +<!-- <style> --> +<!-- body {font: 400 1.07rem/1.8 monospace;line-height: 1.7;max-width: 720px;margin: 40px auto;padding: 0 20px;color: #000;background: #fff;} --> +<!-- pre {border: 1px dashed #555;padding: 12px;overflow-x: auto; } --> +<!-- img {max-width: 100%;} --> +<!-- blockquote { color: #343232ed; } --> +<!-- </style> --> |
