Compare commits

...

2 Commits

Author SHA1 Message Date
d85eaaf0d2
css/main.scss: prefer dark over light 2024-05-25 07:59:44 +03:00
2e7d2edbb0
Initial dark mode 2024-05-25 07:53:19 +03:00
2 changed files with 18 additions and 1 deletions

3
_sass/_base.scss vendored
View File

@ -145,7 +145,8 @@ code {
font-family: $monospace-font-family;
border: 1px solid $grey-color-light;
border-radius: 3px;
background-color: #eef;
//background-color: #eef;
background-color: revert;
}
code {

16
css/main.scss vendored
View File

@ -49,6 +49,22 @@ $on-laptop: 800px;
}
}
// As high in css as can be edited. If I understand correctly, user
// preference will take priority over this, but if the user hasn't expressed
// it, this will make dark default.
:root {
color-scheme: dark light;
}
// This is the missing content blocker detection
.ftf-dma-note {
// It doesn't want to turn dark and still uses text colors more suitable
// for dark.
color-scheme: only light;
//display: block !important;
//pointer-events: all !important;
}
// Import partials from `sass_dir` (defaults to `_sass`)
@import "base", "layout", "syntax-highlighting";