Skip to content

Commit

Permalink
Fall-back to sans-serif if Arial is not available
Browse files Browse the repository at this point in the history
Otherwise on systems where Arial is not available the system will
fallback to a serif font, rather than a sans-serif one.

This is especially relevant on acessibility-conscious setups (such as is
mine) that have web-fonts disabled and a limited set of fonts available
on the system.
  • Loading branch information
nagisa committed Mar 15, 2021
1 parent 7a7bbdb commit 7134b0e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/librustdoc/html/static/rustdoc.css
Expand Up @@ -136,11 +136,12 @@ h1, h2, h3, h4,
#source-sidebar, #sidebar-toggle,
/* This selector is for the items listed in the "all items" page. */
#main > ul.docblock > li > a {
font-family: "Fira Sans", Arial;
font-family: "Fira Sans", Arial, sans-serif;
}

.content ul.crate a.crate {
font: 16px/1.6 "Fira Sans";
font-size: 16px/1.6;
font-family: "Fira Sans", Arial, sans-serif;
}

ol, ul {
Expand Down Expand Up @@ -482,7 +483,7 @@ h4 > code, h3 > code, .invisible > code {
}
#main > .since {
top: inherit;
font-family: "Fira Sans", Arial;
font-family: "Fira Sans", Arial, sans-serif;
}

.content table:not(.table-display) {
Expand Down Expand Up @@ -1301,7 +1302,7 @@ h4 > .notable-traits {

.help-button {
right: 30px;
font-family: "Fira Sans", Arial;
font-family: "Fira Sans", Arial, sans-serif;
text-align: center;
font-size: 17px;
}
Expand Down

0 comments on commit 7134b0e

Please sign in to comment.