Skip to content

Commit f6f9eba

Browse files
committed
Change code block background color in dark mode
1 parent 00ec5db commit f6f9eba

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: docs/source/_static/css/custom.css

+11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1+
/* Make the title bigger */
12
.wy-side-nav-search > a {
23
font-size: 160%;
34
}
45

6+
/* Search box adjustments */
57
.wy-side-nav-search input[type="text"] {
68
padding: 10px 15px;
79
font-size: 100%;
810
border-radius: 10px;
911
}
1012

13+
/* Set visited links to blue */
1114
.section a:visited,
1215
footer a:visited {
1316
color: #2980b9;
1417
}
1518

19+
/* Make home icon black instead of purple */
1620
a.icon.icon-home:visited {
1721
color: unset;
1822
}
23+
24+
/* Change code highlight background on dark mode */
25+
@media (prefers-color-scheme: dark) {
26+
.rst-content .highlight {
27+
background: #26292b;
28+
}
29+
}

0 commit comments

Comments
 (0)