diff options
author | axtlos <axtlos@tar.black> | 2023-01-15 13:27:06 +0100 |
---|---|---|
committer | axtlos <axtlos@tar.black> | 2023-01-15 13:27:06 +0100 |
commit | e1527d033a85ba79bd65b16dce7e2129fc523d25 (patch) | |
tree | bd0e207683327375cc04f5a3aefa4426541f73c6 | |
parent | 136f25cb445e8e5e305a50f6c63d55f9605047d5 (diff) | |
download | website-e1527d033a85ba79bd65b16dce7e2129fc523d25.tar.gz website-e1527d033a85ba79bd65b16dce7e2129fc523d25.tar.bz2 |
Add auto dark mode
-rw-r--r-- | style.css | 32 |
1 files changed, 31 insertions, 1 deletions
@@ -5,8 +5,10 @@ /* Global defaults. */ + + html { max-width: 65em; margin: auto; } -body { font-family: Helvetica,Arial,sans-serif; } +body { font-family: Helvetica,Arial,sans-serif; background: white; } table { margin-top: 0em; margin-bottom: 0em; } td { vertical-align: top; } @@ -251,3 +253,31 @@ a.In { } .HP { margin-left: 2em; text-indent: -2em; } } + +@media (prefers-color-scheme: dark) { + /* If the operating system is using dark mode, then apply this CSS */ + body { + background: #46494f; + } + td { + color: white; + } + h1 { + color: white; + } + p { + color: white; + } + section { + color: white; + } + .permalink { + color: #6d8ecf; + } + a:link { + color: #6d8ecf; + } + a:visited { + color: #f6baff; + } +} |