mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-01 01:21:49 +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:
@@ -44,18 +44,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
%btn-close-white {
|
||||
@mixin btn-close-white() {
|
||||
filter: var(--#{$prefix}btn-close-white-filter);
|
||||
}
|
||||
|
||||
.btn-close-white {
|
||||
@extend %btn-close-white;
|
||||
@include btn-close-white();
|
||||
}
|
||||
|
||||
@if $enable-dark-mode {
|
||||
@include color-mode(dark) {
|
||||
.btn-close {
|
||||
@extend %btn-close-white;
|
||||
@include btn-close-white();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user