Skip to content

Commit

Permalink
Remove dark mode --bs-heading-color value, set to null, and add custo…
Browse files Browse the repository at this point in the history
…m styles for the docs dark mode headings
  • Loading branch information
mdo committed Jan 4, 2023
1 parent 9013c98 commit da1c968
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@
--#{$prefix}light-border-subtle: #{$light-border-subtle-dark};
--#{$prefix}dark-border-subtle: #{$dark-border-subtle-dark};

--#{$prefix}heading-color: #{$headings-color-dark};
@if $headings-color-dark != null {
--#{$prefix}heading-color: #{$headings-color-dark};
}

--#{$prefix}link-color: #{$link-color-dark};
--#{$prefix}link-hover-color: #{$link-hover-color-dark};
Expand Down
2 changes: 1 addition & 1 deletion scss/_variables-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $body-tertiary-bg-dark: mix($gray-800, $gray-900, 50%) !default;
$emphasis-color-dark: $white !default;
$border-color-dark: $gray-700 !default;
$border-color-translucent-dark: rgba($white, .15) !default;
$headings-color-dark: #fff !default;
$headings-color-dark: null !default;
$link-color-dark: $blue-300 !default;
$link-hover-color-dark: $blue-200 !default;
$code-color-dark: $pink-300 !default;
Expand Down
7 changes: 7 additions & 0 deletions site/assets/scss/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
margin-top: -5rem;
}

> h2,
> h3,
> h4 {
--#{$prefix}heading-color: #fff;
}

> h2:not(:first-child) {
margin-top: 3rem;
}
Expand Down Expand Up @@ -102,6 +108,7 @@
}

.bd-title {
--#{$prefix}heading-color: #fff;
@include font-size(3rem);
}

Expand Down

0 comments on commit da1c968

Please sign in to comment.