Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Aug 10, 2022
1 parent 71f5b79 commit 39ec260
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions scss/_root.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:root,
[data-bs-theme="light"] {
// Note: Custom variable values only support SassScript inside `#{}`.

Expand Down
9 changes: 4 additions & 5 deletions site/assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ $bd-accent: #ffe484;
$bd-gutter-x: 3rem;
$bd-callout-variants: info, warning, danger !default;

:root {
:root,
[data-bs-theme="light"] {
--bd-purple: #{$bd-purple};
--bd-violet: #{$bd-violet};
--bd-accent: #{$bd-accent};
Expand All @@ -22,8 +23,6 @@ $bd-callout-variants: info, warning, danger !default;
--bd-sidebar-link-bg: rgba(var(--bd-violet-rgb), .1);
}

@media (prefers-color-scheme: dark) {
:root {
--bd-violet: #{mix($bd-violet, $black, 75%)};
}
[data-bs-theme="dark"] {
--bd-violet: #{mix($bd-violet, $black, 75%)};
}

0 comments on commit 39ec260

Please sign in to comment.