Skip to content

Commit

Permalink
Rollup merge of rust-lang#83156 - nagisa:nagisa/sans-serif-please, r=…
Browse files Browse the repository at this point in the history
…GuillaumeGomez

Fall-back to sans-serif if Arial is not available

Otherwise on systems where Arial is not available the UA 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.

r? ``@GuillaumeGomez`` cc ``@jsha``
  • Loading branch information
Dylan-DPC authored Mar 16, 2021
2 parents dba97da + 7134b0e commit 0463c76
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
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 0463c76

Please sign in to comment.