main.scss: add comments
This commit is contained in:
parent
c01b5f9eee
commit
bc210ed426
|
@ -4,24 +4,20 @@
|
|||
|
||||
@import "{{ site.theme }}";
|
||||
|
||||
// Declares support for light and dark themes as high as possible
|
||||
:root {
|
||||
color-scheme: light dark !important;
|
||||
}
|
||||
|
||||
// Reverts all colors to browser default so light/dark modes are supported
|
||||
// without extra work and we get free accessibility
|
||||
* {
|
||||
color: revert !important;
|
||||
text-color: revert !important;
|
||||
background-color: revert !important;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.site-nav {
|
||||
color-scheme: only dark !important;
|
||||
color: #ffffff !important;
|
||||
background-color: #1c1b22 !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Fix transparent mobile navbar
|
||||
@media (prefers-color-scheme: light) {
|
||||
.site-nav {
|
||||
color-scheme: only light !important;
|
||||
|
@ -29,3 +25,10 @@
|
|||
background-color: #ffffff !important;
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.site-nav {
|
||||
color-scheme: only dark !important;
|
||||
color: #ffffff !important;
|
||||
background-color: #1c1b22 !important;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue