Skip to content

Commit 3491e3b

Browse files
committed
Add styling for dark mode
1 parent 364d937 commit 3491e3b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/md2html/main.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,13 @@ th code {
7070

7171
a.bibref {
7272
text-decoration: underline;
73+
}
74+
75+
@media (prefers-color-scheme: dark) {
76+
pre,
77+
table tr:nth-child(2n),
78+
table tr {
79+
background-color: #1e1e1e !important;
80+
color: #dcdcdc;
81+
}
7382
}

0 commit comments

Comments
 (0)