Skip to content

Commit 7134b0e

Browse files
committedMar 15, 2021
Fall-back to sans-serif if Arial is not available
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.
1 parent 7a7bbdb commit 7134b0e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎src/librustdoc/html/static/rustdoc.css

+5-4
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,12 @@ h1, h2, h3, h4,
136136
#source-sidebar, #sidebar-toggle,
137137
/* This selector is for the items listed in the "all items" page. */
138138
#main > ul.docblock > li > a {
139-
font-family: "Fira Sans", Arial;
139+
font-family: "Fira Sans", Arial, sans-serif;
140140
}
141141

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

146147
ol, ul {
@@ -482,7 +483,7 @@ h4 > code, h3 > code, .invisible > code {
482483
}
483484
#main > .since {
484485
top: inherit;
485-
font-family: "Fira Sans", Arial;
486+
font-family: "Fira Sans", Arial, sans-serif;
486487
}
487488

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

13021303
.help-button {
13031304
right: 30px;
1304-
font-family: "Fira Sans", Arial;
1305+
font-family: "Fira Sans", Arial, sans-serif;
13051306
text-align: center;
13061307
font-size: 17px;
13071308
}

0 commit comments

Comments
 (0)
Please sign in to comment.