aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/style.html
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-06-06 12:17:31 +0800
committerverdant <im@verdant.ee>2026-06-06 12:17:31 +0800
commit12945b129ff7b7f1a8e5da790cdb05de5bd73446 (patch)
tree6b589d8c20377a604279862089cf97bceed9f9b0 /layouts/partials/style.html
parent073c5b61cd1477c2bb11ff6e592f918b97af76ce (diff)
downloadblog-master.tar.gz
blog-master.zip
Add style.htmlHEADmaster
Diffstat (limited to 'layouts/partials/style.html')
-rw-r--r--layouts/partials/style.html87
1 files changed, 87 insertions, 0 deletions
diff --git a/layouts/partials/style.html b/layouts/partials/style.html
new file mode 100644
index 0000000..714b97d
--- /dev/null
+++ b/layouts/partials/style.html
@@ -0,0 +1,87 @@
+<style>
+ body {
+ font: 1.06rem apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
+ line-height: 1.7;
+ max-width: 740px;
+ margin: 40px auto;
+ padding: 0 20px;
+ background-color: #fbf9f4;
+ }
+
+ pre {
+ border: 1px dashed #555;
+ padding: 12px;
+ overflow-x: auto;
+ }
+
+ img {
+ max-width: 100%;
+ }
+
+ a,
+ a:visited {
+ color: inherit;
+ text-decoration: none;
+ }
+
+ a:hover {
+ text-decoration: underline;
+ }
+
+ article a, header a {
+ text-decoration: underline;
+
+ }
+
+ time {
+ float: right
+ }
+
+ .recent-posts ul,
+ .blog-posts {
+ list-style: none;
+ padding-left: 0;
+ }
+
+ .posts-list li,
+ .blog-posts li {
+ margin-bottom: 0.5rem;
+ display: grid;
+ grid-template-columns: 1fr auto;
+ gap: 16px;
+ align-items: baseline;
+ }
+
+
+ .posts-list li a,
+ .blog-posts li a {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .posts-list li time,
+ .blog-posts li time {
+ white-space: nowrap;
+ flex-shrink: 0;
+ }
+
+ @media (prefers-color-scheme: dark) {
+ a {
+ color: rgb(204, 204, 204)
+ }
+
+ a:visited {
+ color: #aaa
+ }
+
+ html {
+ color-scheme: dark;
+ }
+
+ body {
+ background: #111111;
+ color: rgb(204, 204, 204);
+ }
+ }
+</style>