mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-09 05:00:45 +02:00
Proposal to handle color-mode
This commit is contained in:
@@ -122,8 +122,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
@include color-mode(dark) {
|
||||
.bd-navbar {
|
||||
box-shadow: 0 .5rem 1rem rgba($black, .15), inset 0 -1px 0 rgba($white, .15);
|
||||
}
|
||||
@include color-mode(dark, ".bd-navbar") {
|
||||
box-shadow: 0 .5rem 1rem rgba($black, .15), inset 0 -1px 0 rgba($white, .15);
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@
|
||||
--docsearch-logo-color: var(--bd-violet);
|
||||
}
|
||||
|
||||
@include color-mode(dark, true) {
|
||||
@include color-mode(dark) {
|
||||
// From here, the values are copied from https://cdn.jsdelivr.net/npm/@docsearch/css@3
|
||||
// in html[data-theme="dark"] selector
|
||||
// and are slightly modified for formatting purpose
|
||||
|
@@ -18,7 +18,7 @@
|
||||
--base0F: #333;
|
||||
}
|
||||
|
||||
@include color-mode(dark, true) {
|
||||
@include color-mode(dark) {
|
||||
// --base00: #282c34;
|
||||
// --base01: #353b45;
|
||||
--base02: #3e4451;
|
||||
|
@@ -24,7 +24,7 @@ $bd-callout-variants: info, warning, danger !default;
|
||||
--bd-pre-bg: var(--bs-tertiary-bg);
|
||||
}
|
||||
|
||||
@include color-mode(dark, true) {
|
||||
@include color-mode(dark) {
|
||||
--bd-violet: #{mix($bd-violet, $white, 75%)};
|
||||
--bd-violet-bg: #{$bd-violet};
|
||||
--bd-toc-color: var(--#{$prefix}emphasis-color);
|
||||
|
Reference in New Issue
Block a user