1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-01 16:04:37 +04:00

dark mode media query

This commit is contained in:
chomik
2019-06-02 00:57:39 +02:00
parent 4699814dc1
commit cccecb9aeb
3 changed files with 13 additions and 2 deletions
+10 -1
View File
@@ -1,6 +1,6 @@
// stylelint-disable declaration-no-important
body.theme-dark {
@mixin dark-mode {
color: #afbdd1;
background: $dark;
@@ -29,3 +29,12 @@ body.theme-dark {
}
}
body.theme-dark {
@include dark-mode;
}
@media (prefers-color-scheme: dark) {
body {
@include dark-mode;
}
}
+2
View File
@@ -262,6 +262,8 @@ $yiq-contrasted-threshold: 200 !default;
$card-border-color: $border-color !default;
$list-group-border-color: $border-color !default;
$list-group-action-color: inherit !default;
$body-color: $dark !default;
$input-disabled-bg: $gray-100 !default;
+1 -1
View File
@@ -6,7 +6,7 @@
}
.example-bg {
background: $body-bg;
background: $min-black;
}
.example + .highlight {