diff options
| author | alex <alex@pdp7.net> | 2025-03-15 15:56:44 +0100 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2025-03-15 15:57:32 +0100 |
| commit | 671207e0afb570c9d04613cec9146688b100777d (patch) | |
| tree | 7380db879745bbfd81026247a912acee81ab0d49 /blog | |
| parent | 10b585c490558ae744510a01a9556d251ce0b941 (diff) | |
Use color-scheme instead of specifying colors
Diffstat (limited to 'blog')
| -rw-r--r-- | blog/src/blog/html.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/blog/src/blog/html.py b/blog/src/blog/html.py index 7ab41178..c51237ce 100644 --- a/blog/src/blog/html.py +++ b/blog/src/blog/html.py @@ -47,20 +47,15 @@ def html_template(*content, page_title=None, path, full): ), h.STYLE( textwrap.dedent(""" + :root { + color-scheme: light dark; + } body { max-width: 40em; margin-left: auto; margin-right: auto; padding-left: 2em; padding-right: 2em; - background-color: #fffffa; - color: #000000; - } - @media (prefers-color-scheme: dark) { - body { - background-color: #000000; - color: #fffffa; - } } p, blockquote, li { /* from Mozilla reader mode */ |
