Skip to content

Commit

Permalink
Docs: enhance callouts links on dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored and mdo committed Dec 29, 2022
1 parent dabc081 commit 1a043b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion site/assets/scss/_callouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

.bd-callout {
--#{$prefix}link-color-rgb: #{to-rgb($blue-600)};
--#{$prefix}link-color-rgb: var(--bd-callout-link);

padding: 1.25rem;
margin-top: 1.25rem;
Expand Down
2 changes: 2 additions & 0 deletions site/assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ $bd-callout-variants: info, warning, danger !default;
--bd-violet-bg: var(--bd-violet);
--bd-toc-color: var(--bd-violet);
--bd-sidebar-link-bg: rgba(var(--bd-violet-rgb), .1);
--bd-callout-link: #{to-rgb($blue-600)};
}

@include color-mode(dark, true) {
--bd-violet: #{mix($bd-violet, $white, 75%)};
--bd-violet-bg: #{$bd-violet};
--bd-toc-color: var(--#{$prefix}emphasis-color);
--bd-sidebar-link-bg: rgba(#{to-rgb(mix($bd-violet, $black, 75%))}, .5);
--bd-callout-link: #{to-rgb($blue-300)};
}

0 comments on commit 1a043b5

Please sign in to comment.