mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-28 00:54:30 +01:00
14 lines
298 B
SCSS
14 lines
298 B
SCSS
|
// scss-docs-start color-mode-mixin
|
||
|
@mixin color-mode($mode: light, $type: $color-mode-type) {
|
||
|
@if $type == "media-query" {
|
||
|
@media (prefers-color-scheme: $mode) {
|
||
|
@content;
|
||
|
}
|
||
|
} @else {
|
||
|
[data-bs-theme="#{$mode}"] {
|
||
|
@content;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// scss-docs-end color-mode-mixin
|