Skip to content

Commit 01ffd0b

Browse files
authored
Fix colors for code blocks (#7026)
1 parent a936d72 commit 01ffd0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/theme/styles.module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929
pre {
3030
background-color: var(--code-with-result) !important;
31-
color: var(--code-inline-bgd-color) !important;
31+
color: white !important;
3232
border-radius: 0px 0px 8px 8px;
3333
}
3434
}
@@ -58,3 +58,7 @@
5858
align-items: center;
5959
gap: 3px;
6060
}
61+
p > code, h1 > code, h2 > code, h3 > code, p > a > code, ul > li > a > code {
62+
color: var(--secondary-font-color);
63+
background-color: var(--code-inline-bgd-color);
64+
}

0 commit comments

Comments
 (0)