1
0
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:
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

@@ -18,7 +18,7 @@
--base0F: #333;
}
[data-bs-theme="dark"] {
@include color-mode(dark, true) {
--base00: #282c34;
--base01: #353b45;
--base02: #3e4451;

View File

@@ -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);