mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-25 22:09:24 +01:00
Initial dark mode
This commit is contained in:
parent
5de0150765
commit
2e7d2edbb0
3
_sass/_base.scss
vendored
3
_sass/_base.scss
vendored
@ -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 {
|
||||
|
14
css/main.scss
vendored
14
css/main.scss
vendored
@ -49,6 +49,20 @@ $on-laptop: 800px;
|
||||
}
|
||||
}
|
||||
|
||||
// As high in css as can be edited
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
}
|
||||
|
||||
// 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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user