mirror of
https://github.com/primer/css.git
synced 2025-01-07 14:58:54 +03:00
mixin needs root
This commit is contained in:
parent
c85c14fb0e
commit
ee34286b82
@ -25,8 +25,16 @@
|
||||
}
|
||||
|
||||
@mixin color-mode($mode) {
|
||||
[data-color-mode="#{$mode}"][data-#{$mode}-theme*="#{$mode}"] {
|
||||
@content;
|
||||
@if $mode == light {
|
||||
:root,
|
||||
[data-color-mode="#{$mode}"][data-#{$mode}-theme*="#{$mode}"] {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@else {
|
||||
[data-color-mode="#{$mode}"][data-#{$mode}-theme*="#{$mode}"] {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
|
Loading…
Reference in New Issue
Block a user