Skip to content

Commit 6ee5967

Browse files
authored
Fix darkmode code blocks (#7939)
1 parent 1b1f1fe commit 6ee5967

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

discord/styles/theme.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,14 @@ header > div > .flex-row > div {
487487
background-color: rgba(0, 0, 0, 0.05);
488488
}
489489

490-
/* Style inline code blocks with light background */
491-
.prose code:not(pre code) {
492-
background-color: #f0f1f5;
493-
}
494-
495490
/* Light mode overrides */
496491
html[style*="color-scheme: light"] {
492+
/* Style inline code blocks with light background */
493+
.prose code:not(pre code) {
494+
background-color: #f0f1f5;
495+
}
496+
497+
497498
.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)) {
498499
border-bottom: none;
499500
color: rgb(var(--primary));

0 commit comments

Comments
 (0)