Skip to content

Commit

Permalink
Merge pull request #176 from hugovk/sfs
Browse files Browse the repository at this point in the history
Modernise font: use system font stack to improve text readability and webpage performance
  • Loading branch information
pradyunsg authored Mar 16, 2024
2 parents a08b380 + 5f063bd commit 9916043
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions python_docs_theme/static/pydoctheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ div.sphinxsidebar a:hover {
form.inline-search input,
div.sphinxsidebar input,
div.related input {
font-family: 'Lucida Grande', Arial, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
border: 1px solid #999999;
font-size: smaller;
border-radius: 3px;
Expand Down Expand Up @@ -258,7 +258,7 @@ div.body a:hover {
}

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

Expand Down Expand Up @@ -362,7 +362,7 @@ div.genindex-jumpbox a {
top: 0;
right: 0;
text-size: 75%;
font-family: monospace;
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
padding-left: 0.2em;
padding-right: 0.2em;
border-radius: 0 3px 0 0;
Expand Down
4 changes: 2 additions & 2 deletions python_docs_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ pygments_style = default
pygments_dark_style = monokai

[options]
bodyfont = 'Lucida Grande', Arial, sans-serif
headfont = 'Lucida Grande', Arial, sans-serif
bodyfont = -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif
headfont = -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif
footerbgcolor = white
footertextcolor = #555555
relbarbgcolor = white
Expand Down

0 comments on commit 9916043

Please sign in to comment.