1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 09:05:47 +02:00

Fix Sass compilation when $color-mode-type is set to media-query (#37687)

* Fix Sass compilation when `$color-mode-type` is set to `media-query`

* Update mixin names, fix docs color modes for using media queries by using mixin

Co-authored-by: Mark Otto <markdotto@gmail.com>
This commit is contained in:
Julien Déramond
2022-12-21 07:52:07 +01:00
committed by GitHub
parent f6687e99b5
commit 41f62c5a11
7 changed files with 22 additions and 14 deletions

View File

@@ -210,7 +210,7 @@
// Dark mode carousel
%carousel-dark {
@mixin carousel-dark() {
.carousel-control-prev-icon,
.carousel-control-next-icon {
filter: $carousel-dark-control-icon-filter;
@@ -226,13 +226,13 @@
}
.carousel-dark {
@extend %carousel-dark;
@include carousel-dark();
}
@if $enable-dark-mode {
@include color-mode(dark) {
.carousel {
@extend %carousel-dark;
@include carousel-dark();
}
}
}