Skip to content

Commit 7453241

Browse files
committed
fix(ui): make image backgrounds transparent in dark mode
- Fixes white background on SVG images like dikw-revised.svg in dark mode - Applies transparent background to all images in dark mode
1 parent fec5b95 commit 7453241

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,3 +862,8 @@ object[data*=".svg"] {
862862
font-weight: bold !important;
863863
}
864864

865+
/* Images in dark mode - transparent background */
866+
[data-md-color-scheme="slate"] .md-typeset img {
867+
background: transparent !important;
868+
}
869+

0 commit comments

Comments
 (0)