Skip to content

Commit d1c4be8

Browse files
committed
subtle fixes to code color css
1 parent 00e0d16 commit d1c4be8

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
code.literal {
2+
background: var(--color-inline-code-background) !important;
3+
}
4+
5+
:root {
6+
--color-inline-code-background: #f0f0f0;
7+
}
8+
9+
@media (prefers-color-scheme: dark) {
10+
:root {
11+
--color-code-background: #202020;
12+
--color-inline-code-background: hsl(0, 0%, 18%);
13+
}
14+
15+
td.linenos pre {
16+
background: #202020 !important;
17+
color: #d0d0d0 !important;
18+
}
19+
}
20+
21+
@media (prefers-color-scheme: light) {
22+
:root {
23+
--color-inline-code-background: #f0f0f0;
24+
}
25+
}

docs/source/_static/css/fix-code-linenos.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@
120120

121121
# These paths are either relative to html_static_path
122122
# or fully qualified paths (eg. https://...)
123-
html_css_files = [
124-
"css/interactive-widget.css",
125-
]
123+
css_dir = here / "_static" / "css"
124+
html_css_files = [str(p.relative_to(here / "_static")) for p in css_dir.glob("*.css")]
126125

127126
# Custom sidebar templates, must be a dictionary that maps document names
128127
# to template names.

0 commit comments

Comments
 (0)