Skip to content

Commit 86abbbe

Browse files
committed
docs: Added Fira Mono font
1 parent 63ebcb0 commit 86abbbe

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/source/_static/css/custom.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ a.icon.icon-home:visited {
2424
/* Change code highlight background on dark mode */
2525
@media (prefers-color-scheme: dark) {
2626
.rst-content .highlight {
27-
background: #26292b;
27+
background: #26292b;
2828
}
2929
}
30+
31+
/* Change code block font */
32+
.rst-content .linenodiv pre,
33+
.rst-content div[class^="highlight"] pre,
34+
.rst-content pre.literal-block {
35+
font-family: Fira Mono, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, Courier, monospace;
36+
}

docs/source/_templates/layout.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
<link rel="stylesheet" href="{{ pathto('_static/css/theme.css', 1)|e }}" type="text/css" />
4141
<link rel="stylesheet" href="{{ pathto('_static/css/custom.css', 1)|e }}" type="text/css" />
4242

43+
<link rel="preconnect" href="https://fonts.googleapis.com">
44+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
45+
<link href="https://fonts.googleapis.com/css2?family=Fira+Mono&display=swap" rel="stylesheet">
46+
4347
{%- for cssfile in extra_css_files %}
4448
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
4549
{%- endfor -%}

0 commit comments

Comments
 (0)