From a26d815464e6b0ba981758a7e20105789756eb03 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 30 Apr 2024 07:20:09 -0400 Subject: [PATCH] Dark-mode override for `.td-box--white` (#1966) --- assets/scss/_boxes.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/assets/scss/_boxes.scss b/assets/scss/_boxes.scss index c33316099f..11b80394fe 100644 --- a/assets/scss/_boxes.scss +++ b/assets/scss/_boxes.scss @@ -116,3 +116,16 @@ @each $color, $value in $grays { @include box-variant(".td-box", $color, $value); } + +// 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)); + } + } +}