Skip to content

Commit 5c34b2f

Browse files
committed
docs: Fix CSS for dark mode code blocs (see #4085)
1 parent b00d59c commit 5c34b2f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/assets/css/style.scss

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,23 @@ a:hover {
6767
color: #f0f0f0;
6868
}
6969

70-
code, pre {
71-
background-color: #2d2d2d;
72-
color: #e0e0e0;
70+
code {
71+
background-color: #3a3a3a;
72+
color: #e8e8e8;
73+
border: 1px solid #555;
7374
}
7475

7576
pre {
77+
background-color: #2d2d2d;
7678
border: 1px solid #444;
7779
}
7880

81+
pre code {
82+
background-color: transparent;
83+
border: none;
84+
color: #e0e0e0;
85+
}
86+
7987
blockquote {
8088
border-left-color: #555;
8189
color: #b0b0b0;

0 commit comments

Comments
 (0)