0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 20:54:22 +01:00

Add [data-bs-theme="body"]

This commit is contained in:
louismaxime.piton 2023-09-15 15:02:46 +02:00
parent 9900cf33c0
commit c462942467
3 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
:root,
:root[data-bs-theme="light"] [data-bs-theme="body"],
[data-bs-theme="light"] {
// Note: Custom variable values only support SassScript inside `#{}`.

View File

@ -13,6 +13,7 @@
}
}
} @else {
:root[data-bs-theme="#{$mode}"] [data-bs-theme="body"],
[data-bs-theme="#{$mode}"] {
@content;
}

View File

@ -21,10 +21,12 @@
}
}
@include expect() {
:root[data-bs-theme=dark] [data-bs-theme=body] .element,
[data-bs-theme=dark] .element {
color: var(--bs-primary-text-emphasis);
background-color: var(--bs-primary-bg-subtle);
}
:root[data-bs-theme=dark] [data-bs-theme=body],
[data-bs-theme=dark] {
--custom-color: #3a3ff8;
}