diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-23 10:56:55 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-23 10:56:55 -0300 |
commit | 12cc6e178ac6ec27fc345e70db7f1bfd37a649a6 (patch) | |
tree | c2a95284a25f8fd82350a6f719cd69d2330c2159 /themes | |
parent | 5171290b935a1530300f86cec87d7b6524d3c23d (diff) |
First steps at adding default dark mode depending on the browser settingsadd-dark-mode
Diffstat (limited to 'themes')
-rwxr-xr-x | themes/hugo-whisper-theme/assets/scss/style.scss | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/themes/hugo-whisper-theme/assets/scss/style.scss b/themes/hugo-whisper-theme/assets/scss/style.scss index c02c2a1..661d8e5 100755 --- a/themes/hugo-whisper-theme/assets/scss/style.scss +++ b/themes/hugo-whisper-theme/assets/scss/style.scss @@ -85,3 +85,26 @@ body { content: url("/pics/element-small.png") ; margin-right: 5px; } +@media (prefers-color-scheme: dark) { + html { + filter: invert(95%); + } + a { + filter: invert(100%); + } + .docs-menu a { + filter: invert(10%); + } + .docs-menu a:hover { + filter: invert(100%); + } + li.active { + filter: invert(100%); + } + .zerostatic { + filter: invert(100%); + } + .element-img { + filter: invert(100%); + } +} |