diff options
| author | verdant <im@verdant.ee> | 2026-06-06 12:17:31 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-06-06 12:17:31 +0800 |
| commit | 12945b129ff7b7f1a8e5da790cdb05de5bd73446 (patch) | |
| tree | 6b589d8c20377a604279862089cf97bceed9f9b0 /layouts | |
| parent | 073c5b61cd1477c2bb11ff6e592f918b97af76ce (diff) | |
| download | blog-12945b129ff7b7f1a8e5da790cdb05de5bd73446.tar.gz blog-12945b129ff7b7f1a8e5da790cdb05de5bd73446.zip | |
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/style.html | 87 |
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> |
