Skip to content

Commit 82efef7

Browse files
committed
rollup merge of rust-lang#18500 : adrientetar/fonts
2 parents ceb5404 + f4fb57b commit 82efef7

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/doc/rust.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ body {
6262
font-size: 18px;
6363
color: #333;
6464
line-height: 1.428571429;
65+
66+
-webkit-font-feature-settings: "kern", "liga";
67+
-moz-font-feature-settings: "kern", "liga";
68+
font-feature-settings: "kern", "liga";
6569
}
6670
@media (min-width: 768px) {
6771
body {
Binary file not shown.

src/librustdoc/html/static/main.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ body {
6969
margin: 0;
7070
position: relative;
7171
padding: 10px 15px 20px 15px;
72+
73+
-webkit-font-feature-settings: "kern", "liga";
74+
-moz-font-feature-settings: "kern", "liga";
75+
font-feature-settings: "kern", "liga";
7276
}
7377

7478
h1 {
@@ -101,7 +105,7 @@ h3.impl, h3.method, h4.method {
101105
h3.impl, h3.method {
102106
margin-top: 15px;
103107
}
104-
h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a, .collapse-toggle {
108+
h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
105109
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
106110
}
107111

@@ -177,7 +181,7 @@ nav.sub {
177181
color: #333;
178182
}
179183

180-
.location a:first-child { font-weight: bold; }
184+
.location a:first-child { font-weight: 500; }
181185

182186
.block {
183187
padding: 0 10px;
@@ -494,7 +498,7 @@ pre.rust { position: relative; }
494498
}
495499

496500
.collapse-toggle {
497-
font-weight: 100;
501+
font-weight: 300;
498502
position: absolute;
499503
left: 13px;
500504
color: #999;
@@ -523,7 +527,6 @@ pre.rust { position: relative; }
523527

524528
.toggle-label {
525529
color: #999;
526-
font-style: italic;
527530
}
528531

529532

0 commit comments

Comments
 (0)