mirror of
https://github.com/twbs/bootstrap.git
synced 2025-11-09 00:12:36 -05:00
Merge 6a05144d0426bc0df16949d51e36f89eda21e929 into 26badb2f6b93f6b7f42f75b1dbee6ada092d65b0
This commit is contained in:
commit
c82c6f6d6b
@ -13,7 +13,8 @@
|
||||
}
|
||||
}
|
||||
} @else {
|
||||
[data-bs-theme="#{$mode}"] {
|
||||
$parent-selector: &;
|
||||
@at-root [data-bs-theme="#{$mode}"] #{$parent-selector} {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,6 +30,30 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@include assert() {
|
||||
@include output() {
|
||||
.parent {
|
||||
@include color-mode(dark) {
|
||||
.element {
|
||||
color: var(--bs-primary-text-emphasis);
|
||||
background-color: var(--bs-primary-bg-subtle);
|
||||
}
|
||||
}
|
||||
@include color-mode(dark, true) {
|
||||
--custom-color: #{mix($indigo, $blue, 50%)};
|
||||
}
|
||||
}
|
||||
}
|
||||
@include expect() {
|
||||
[data-bs-theme=dark] .parent .element {
|
||||
color: var(--bs-primary-text-emphasis);
|
||||
background-color: var(--bs-primary-bg-subtle);
|
||||
}
|
||||
[data-bs-theme=dark] .parent {
|
||||
--custom-color: #3a3ff8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user