mirror of
https://github.com/tabler/tabler.git
synced 2026-07-25 20:44:38 +04:00
Fix #892: Media queries need to be nested when negating
https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#inverting_a_querys_meaning
This commit is contained in:
@@ -72,14 +72,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media not print and (prefers-color-scheme: dark) {
|
||||
@if ($selector) {
|
||||
.theme-dark-auto & {
|
||||
@content
|
||||
}
|
||||
} @else {
|
||||
.theme-dark-auto {
|
||||
@content
|
||||
@media not print {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@if ($selector) {
|
||||
.theme-dark-auto & {
|
||||
@content
|
||||
}
|
||||
} @else {
|
||||
.theme-dark-auto {
|
||||
@content
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user