Skip to content

Commit 457c183

Browse files
authored
Merge pull request #550 from raifdmueller/fix/dark-admonition-contrast
fix(docs): readable admonition text in dark mode (#516)
2 parents 05d0c75 + bb14588 commit 457c183

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

website/src/styles/main.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,15 @@ html {
402402
background: #1f2937;
403403
}
404404

405+
/* The asciidoctor stylesheet hardcodes the admonition body text to
406+
rgba(0,0,0,.6); on the dark admonition background that renders black-on-dark
407+
and is unreadable. Override the content text and its light divider for dark
408+
mode. (#516) */
409+
.dark .asciidoc-content .admonitionblock > table td.content {
410+
color: var(--color-text);
411+
border-left-color: #374151;
412+
}
413+
405414
.dark .asciidoc-content hr {
406415
border-color: #374151;
407416
}

0 commit comments

Comments
 (0)