Skip to content

Commit

Permalink
Restrict .td-box--white style changes to dark mode (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Apr 30, 2024
1 parent a26d815 commit a8e0a1a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions assets/scss/_boxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@
}

// Single dark-mode compatibility override for white boxes:
.td-box--white {
color: var(--bs-body-color) !important;
background-color: var(--bs-body-bg) !important;
p > a, span > a {
color: var(--bs-link-color);
&:focus,
&:hover {
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
@include color-mode(dark) {
.td-box--white {
color: var(--bs-body-color) !important;
background-color: var(--bs-body-bg) !important;
p > a, span > a {
color: var(--bs-link-color);
&:focus,
&:hover {
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}
}
}
}

0 comments on commit a8e0a1a

Please sign in to comment.