mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-28 07:39:57 +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:
@@ -18,7 +18,7 @@
|
||||
--base0F: #333;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] {
|
||||
@include color-mode(dark, true) {
|
||||
--base00: #282c34;
|
||||
--base01: #353b45;
|
||||
--base02: #3e4451;
|
||||
|
@@ -25,7 +25,7 @@ $bd-callout-variants: info, warning, danger !default;
|
||||
--bd-sidebar-link-bg: rgba(var(--bd-violet-rgb), .1);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] {
|
||||
@include color-mode(dark, true) {
|
||||
--bd-violet: #{mix($bd-violet, $white, 75%)};
|
||||
--bd-violet-bg: #{$bd-violet};
|
||||
--bd-sidebar-link-bg: rgba(#{to-rgb(mix($bd-violet, $black, 75%))}, .5);
|
||||
|
Reference in New Issue
Block a user