1
1
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:
Jon Rohan 2021-03-17 21:40:25 -07:00
parent c85c14fb0e
commit ee34286b82
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB

View File

@ -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) {