Skip to content

Commit a26d815

Browse files
authored
Dark-mode override for .td-box--white (#1966)
1 parent a6d0a70 commit a26d815

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

assets/scss/_boxes.scss

+13
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,16 @@
116116
@each $color, $value in $grays {
117117
@include box-variant(".td-box", $color, $value);
118118
}
119+
120+
// Single dark-mode compatibility override for white boxes:
121+
.td-box--white {
122+
color: var(--bs-body-color) !important;
123+
background-color: var(--bs-body-bg) !important;
124+
p > a, span > a {
125+
color: var(--bs-link-color);
126+
&:focus,
127+
&:hover {
128+
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
129+
}
130+
}
131+
}

0 commit comments

Comments
 (0)