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.
50 lines
648 B
SCSS
50 lines
648 B
SCSS
@mixin base_dark {
|
|
|
|
color: $fg-color-dark;
|
|
background-color: $bg-color-dark;
|
|
|
|
a {
|
|
color: $link-color-dark;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
color: $alt-fg-color-dark;
|
|
}
|
|
|
|
code {
|
|
background-color: $alt-bg-color-dark;
|
|
color: $fg-color-dark;
|
|
}
|
|
|
|
pre {
|
|
code {
|
|
background-color: inherit;
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 2px solid $alt-bg-color-dark;
|
|
}
|
|
|
|
table td, table th {
|
|
border: 2px solid $alt-fg-color-dark;
|
|
}
|
|
|
|
}
|
|
|
|
body.colorscheme-dark {
|
|
@include base_dark()
|
|
}
|
|
|
|
body.colorscheme-auto {
|
|
@media (prefers-color-scheme: dark) {
|
|
@include base_dark()
|
|
}
|
|
}
|