diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-25 11:24:52 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-25 11:24:52 +0100 |
commit | 3f63afa14b364003aef9ca8dd83ce0bd37102ab3 (patch) | |
tree | b3d77842360282df6019630f3795e033727d9c99 /_sass/media.scss | |
parent | 89516cc7bc16f0546f4fea99238d74f87fb84bc9 (diff) |
fix dark mode
Diffstat (limited to '_sass/media.scss')
-rw-r--r-- | _sass/media.scss | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/_sass/media.scss b/_sass/media.scss index e7b4aee..a3fedea 100644 --- a/_sass/media.scss +++ b/_sass/media.scss @@ -11,23 +11,25 @@ } @media only screen and (prefers-color-scheme: dark) { - :root, html { - background-color: black; - color: white; - } .invert { background-color: #222; color: inherit; } nav .item.active { - color: inherit !important; - background-color: black !important; + color: inherit; + background-color: canvas; text-decoration: underline; font-weight: bold; } - a { color: #9aa9f9; } - a:visited { color: #bb87f2; } + + :root { + --code-comment: #808b9bd9; + --code-keyword: #d25a76; + --code-string: #e4a87e; + --code-number: #fa7d57; + --code-operator: #da9eff; + } } @media print { |