Commit b77f439
committed
Don't override the user's fonts
This patch is similar in spirit to rust-lang/blog.rust-lang.org#263 and
onur/docs.rs#240; it removes the specific font overrides in rustdoc.css
so that the browser will use the user's configured fonts. This reduces
the weight of all rustdoc pages (yay for mobile!) while also letting
users use whatever fonts they prefer.
The net result of the change is that the page will look less "uniform"
across different browsers, OSes, and devices, but the overall aesthetic
should be preserved. It also means that user preferences are respected,
and that legibility is improved for users with particular font needs, or
on platforms that sometimes gets confused about how to render fonts
nicely (ehrm, Linux).1 parent 2bd5993 commit b77f439
File tree
9 files changed
+5
-99
lines changed- src/librustdoc/html/static
9 files changed
+5
-99
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 5 | | |
31 | 6 | | |
32 | 7 | | |
| |||
38 | 13 | | |
39 | 14 | | |
40 | 15 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 16 | | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 13 | | |
65 | 14 | | |
66 | 15 | | |
| |||
70 | 19 | | |
71 | 20 | | |
72 | 21 | | |
73 | | - | |
| 22 | + | |
74 | 23 | | |
75 | 24 | | |
76 | 25 | | |
| |||
115 | 64 | | |
116 | 65 | | |
117 | 66 | | |
118 | | - | |
| 67 | + | |
119 | 68 | | |
120 | 69 | | |
121 | 70 | | |
| |||
134 | 83 | | |
135 | 84 | | |
136 | 85 | | |
137 | | - | |
| 86 | + | |
138 | 87 | | |
139 | 88 | | |
140 | 89 | | |
| |||
395 | 344 | | |
396 | 345 | | |
397 | 346 | | |
398 | | - | |
| 347 | + | |
399 | 348 | | |
400 | 349 | | |
401 | 350 | | |
| |||
1272 | 1221 | | |
1273 | 1222 | | |
1274 | 1223 | | |
1275 | | - | |
| 1224 | + | |
1276 | 1225 | | |
1277 | 1226 | | |
1278 | 1227 | | |
| |||
0 commit comments