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:
+10
-1
@@ -1,6 +1,6 @@
|
|||||||
// 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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.theme-dark {
|
||||||
|
@include dark-mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
@include dark-mode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -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 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.example-bg {
|
.example-bg {
|
||||||
background: $body-bg;
|
background: $min-black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.example + .highlight {
|
.example + .highlight {
|
||||||
|
|||||||
Reference in New Issue
Block a user