Skip to content

Commit 113e38c

Browse files
committed
Fix dark mode for sphinx-tabs
1 parent 179a4a3 commit 113e38c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/_static/custom.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,21 @@
1919
code {
2020
font-family: monospace !important;
2121
}
22+
23+
/* Dark mode styles for Sphinx tabs */
24+
html.dark .sphinx-tabs .sphinx-tabs-tab {
25+
background-color: #333 !important;
26+
color: #fff !important;
27+
border-color: #555 !important;
28+
}
29+
30+
html.dark .sphinx-tabs .sphinx-tabs-tab[aria-selected="true"] {
31+
background-color: #444 !important;
32+
border-bottom-color: #444 !important;
33+
}
34+
35+
html.dark .sphinx-tabs-panel {
36+
background-color: #333 !important;
37+
color: #fff !important;
38+
border-color: #555 !important;
39+
}

0 commit comments

Comments
 (0)