提交 cccecb9a 编写于 作者: C chomik

dark mode media query

上级 4699814d
// stylelint-disable declaration-no-important // stylelint-disable declaration-no-important
body.theme-dark { @mixin dark-mode {
color: #afbdd1; color: #afbdd1;
background: $dark; background: $dark;
...@@ -29,3 +29,12 @@ body.theme-dark { ...@@ -29,3 +29,12 @@ body.theme-dark {
} }
} }
body.theme-dark {
@include dark-mode;
}
@media (prefers-color-scheme: dark) {
body {
@include dark-mode;
}
}
...@@ -262,6 +262,8 @@ $yiq-contrasted-threshold: 200 !default; ...@@ -262,6 +262,8 @@ $yiq-contrasted-threshold: 200 !default;
$card-border-color: $border-color !default; $card-border-color: $border-color !default;
$list-group-border-color: $border-color !default; $list-group-border-color: $border-color !default;
$list-group-action-color: inherit !default;
$body-color: $dark !default; $body-color: $dark !default;
$input-disabled-bg: $gray-100 !default; $input-disabled-bg: $gray-100 !default;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
} }
.example-bg { .example-bg {
background: $body-bg; background: $min-black;
} }
.example + .highlight { .example + .highlight {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册