mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 05:13:33 -06:00
Add theme variable to specify color-scheme
for :root
(#1280)
Previously, the color scheme information was not passed on to the browser. This could result in scrollbars being light, when the dark theme is in use. Now, `:root { color-scheme: $color-scheme; }` is specified. This will ensure the color theme is enforced. Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
$color-scheme: dark;
|
||||
$body-background-color: $grey-dk-300;
|
||||
$body-heading-color: $grey-lt-000;
|
||||
$body-text-color: $grey-lt-300;
|
||||
|
@@ -1,3 +1,4 @@
|
||||
$color-scheme: light !default;
|
||||
$body-background-color: $white !default;
|
||||
$body-heading-color: $grey-dk-300 !default;
|
||||
$body-text-color: $grey-dk-100 !default;
|
||||
|
Reference in New Issue
Block a user