Rollup merge of #83156 - nagisa:nagisa/sans-serif-please, r=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```
This commit is contained in:
Yuki Okushi 2021-03-16 23:53:58 +09:00 committed by GitHub
commit 0f6b206ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {
@ -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) {
@ -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;
}