Skip to content

Commit

Permalink
Fix code color in callouts
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jan 2, 2023
1 parent 5a0899d commit d0b0fec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions site/assets/scss/_callouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

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 @@ -22,6 +22,7 @@ $bd-callout-variants: info, warning, danger !default;
--bd-toc-color: var(--bd-violet);
--bd-sidebar-link-bg: rgba(var(--bd-violet-rgb), .1);
--bd-callout-link: #{to-rgb($blue-600)};
--bd-callout-code-color: #{$pink-600};
}

@include color-mode(dark, true) {
Expand All @@ -30,4 +31,5 @@ $bd-callout-variants: info, warning, danger !default;
--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)};
--bd-callout-code-color: #{$pink-300};
}

0 comments on commit d0b0fec

Please sign in to comment.