Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernise font: use system font stack to improve text readability and webpage performance #176

Merged
merged 2 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading