aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/style.html31
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> -->