mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
* Automatic dark/light colorschemes A new `colorscheme` option is added with the capability to be always dark, always light, or automatic based on the user's browser setting. This makes the `inverted` option superfluous, and therefore deprecated. Nomenclature of files, variables, etc are changed from `inverted` to `dark` to reflect this change. Closes #226. * Remove inverted option completely The `inverted` option is now not just deprecated, but removed completely.
55 lines
1.0 KiB
SCSS
55 lines
1.0 KiB
SCSS
@mixin navigation_dark {
|
|
|
|
|
|
.navigation {
|
|
a, span {
|
|
color: $fg-color-dark;
|
|
}
|
|
a {
|
|
&:hover,
|
|
&:focus {
|
|
color: $link-color-dark;
|
|
}
|
|
}
|
|
.navigation-list {
|
|
@media only screen and (max-width : 768px) {
|
|
background-color: $bg-color-dark;
|
|
border-top: solid 2px $alt-bg-color-dark;
|
|
border-bottom: solid 2px $alt-bg-color-dark;
|
|
}
|
|
.menu-separator {
|
|
@media only screen and (max-width : 768px) {
|
|
border-top: 2px solid $fg-color-dark;
|
|
}
|
|
}
|
|
}
|
|
#menu-toggle {
|
|
@media only screen and (max-width : 768px) {
|
|
&:checked + label {
|
|
color: $alt-bg-color-dark;
|
|
}
|
|
}
|
|
}
|
|
.menu-button {
|
|
@media only screen and (max-width : 768px) {
|
|
color: $fg-color-dark;
|
|
&:hover,
|
|
&:focus {
|
|
color: $link-color-dark;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
body.colorscheme-dark {
|
|
@include navigation_dark()
|
|
}
|
|
|
|
body.colorscheme-auto {
|
|
@media (prefers-color-scheme: dark) {
|
|
@include navigation_dark()
|
|
}
|
|
}
|