diff options
| author | Christian Cleberg <[email protected]> | 2026-03-13 18:22:11 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-13 18:22:11 -0500 |
| commit | 76b3a3db90559ef252903b2c4fc6436e9cf932d6 (patch) | |
| tree | 5a50b1830fb90dc224610448081ca361afaafbd4 /theme | |
| parent | 65e64fdb12eafd702eff0363cf9ee6210c3ec72f (diff) | |
| download | cleberg.net-76b3a3db90559ef252903b2c4fc6436e9cf932d6.tar.gz cleberg.net-76b3a3db90559ef252903b2c4fc6436e9cf932d6.tar.bz2 cleberg.net-76b3a3db90559ef252903b2c4fc6436e9cf932d6.zip | |
add dark mode
Diffstat (limited to 'theme')
| -rw-r--r-- | theme/static/styles.css | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/theme/static/styles.css b/theme/static/styles.css index d7b08f1..348b9d7 100644 --- a/theme/static/styles.css +++ b/theme/static/styles.css @@ -1,4 +1,5 @@ body { max-width: 800px; margin: 0 auto; } +a, a:visited { color:blue; } nav ul { list-style: none; padding: 0; display: flex; flex-direction: row; } nav ul li { padding-right: 0.5rem;} img { max-width: 100%; } @@ -11,3 +12,7 @@ pre, blockquote { margin: 1rem 0; padding: 0.5rem; background-color: lightgrey; pre { overflow: auto; white-space: pre; } blockquote p { margin: 0; } code { color: darkred; } +@media (prefers-color-scheme: dark) { + body { background-color: #181a1b; color: #e8e6e3; } + a, a:visited { color: #66adff; } +} |
