Skip to content

Commit 9916043

Browse files
authored
Merge pull request #176 from hugovk/sfs
Modernise font: use system font stack to improve text readability and webpage performance
2 parents a08b380 + 5f063bd commit 9916043

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ div.sphinxsidebar a:hover {
170170
form.inline-search input,
171171
div.sphinxsidebar input,
172172
div.related input {
173-
font-family: 'Lucida Grande', Arial, sans-serif;
173+
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
174174
border: 1px solid #999999;
175175
font-size: smaller;
176176
border-radius: 3px;
@@ -258,7 +258,7 @@ div.body a:hover {
258258
}
259259

260260
tt, code, pre {
261-
font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, Monaco, Consolas, monospace;
261+
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
262262
font-size: 96.5%;
263263
}
264264

@@ -362,7 +362,7 @@ div.genindex-jumpbox a {
362362
top: 0;
363363
right: 0;
364364
text-size: 75%;
365-
font-family: monospace;
365+
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
366366
padding-left: 0.2em;
367367
padding-right: 0.2em;
368368
border-radius: 0 3px 0 0;

python_docs_theme/theme.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ pygments_style = default
55
pygments_dark_style = monokai
66

77
[options]
8-
bodyfont = 'Lucida Grande', Arial, sans-serif
9-
headfont = 'Lucida Grande', Arial, sans-serif
8+
bodyfont = -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif
9+
headfont = -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif
1010
footerbgcolor = white
1111
footertextcolor = #555555
1212
relbarbgcolor = white

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy