diff options
| author | yum <yum.food.vr@gmail.com> | 2025-09-24 18:08:41 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-09-24 18:09:25 -0700 |
| commit | 9d67c981e2b58213e0af2d82bb761c580491ed6b (patch) | |
| tree | c2659c010badba581a222d5df8d606c52f1b9377 /template.html | |
| parent | 6005f6591bb6d5b610a22a96544f65fbb9944803 (diff) | |
dark mode
Diffstat (limited to 'template.html')
| -rwxr-xr-x | template.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/template.html b/template.html index 4b5fed7..6e871dc 100755 --- a/template.html +++ b/template.html @@ -4,6 +4,7 @@ <meta charset="utf-8" /> <meta name="generator" content="pandoc" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> + <meta name="color-scheme" content="light dark" /> $for(author-meta)$ <meta name="author" content="$author-meta$" /> $endfor$ @@ -20,6 +21,27 @@ $endif$ <style> $styles.html()$ </style> + <style> + :root { + color-scheme: light dark; + } + @media (prefers-color-scheme: dark) { + html, body { + background-color: #0b0b0f; + color: #e6e6e6; + } + a { color: #8ab4f8; } + a:visited { color: #c58af9; } + hr { border-color: #30363d; } + pre, code { background-color: #11151a; } + pre { border: 1px solid #2a2f3a; } + blockquote { + color: #c9d1d9; + border-left: 4px solid #30363d; + } + table, th, td { border-color: #30363d; } + } + </style> $for(css)$ <link rel="stylesheet" href="$css$" /> $endfor$ |
