mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-29 16: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;
|
font-family: $monospace-font-family;
|
||||||
border: 1px solid $grey-color-light;
|
border: 1px solid $grey-color-light;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: #eef;
|
//background-color: #eef;
|
||||||
|
background-color: revert;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
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 partials from `sass_dir` (defaults to `_sass`)
|
||||||
@import "base", "layout", "syntax-highlighting";
|
@import "base", "layout", "syntax-highlighting";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user