Skip to content

Commit aec458b

Browse files
authored
Rollup merge of rust-lang#99423 - GuillaumeGomez:group-css-font-rule, r=notriddle
Group CSS font rule Another CSS cleanup I came by when working on something else. r? ``@notriddle``
2 parents 449ffe0 + 0e14614 commit aec458b

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

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

+9-12
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,15 @@ details.rustdoc-toggle > summary::before,
216216
div.impl-items > div:not(.docblock):not(.item-info),
217217
.content ul.crate a.crate,
218218
a.srclink,
219+
#main-content > .since,
220+
#help-button > button,
221+
details.rustdoc-toggle.top-doc > summary,
222+
details.rustdoc-toggle.top-doc > summary::before,
223+
details.rustdoc-toggle.non-exhaustive > summary,
224+
details.rustdoc-toggle.non-exhaustive > summary::before,
225+
.scraped-example-title,
226+
.more-examples-toggle summary, .more-examples-toggle .hide-more,
227+
.example-links a,
219228
/* This selector is for the items listed in the "all items" page. */
220229
#main-content > ul.docblock > li > a {
221230
font-family: "Fira Sans", Arial, NanumBarunGothic, sans-serif;
@@ -702,7 +711,6 @@ pre, .rustdoc.source .example-wrap {
702711
}
703712
#main-content > .since {
704713
top: inherit;
705-
font-family: "Fira Sans", Arial, sans-serif;
706714
}
707715

708716
.content table:not(.table-display) {
@@ -1518,7 +1526,6 @@ input:checked + .slider {
15181526
}
15191527

15201528
#help-button > button {
1521-
font-family: "Fira Sans", Arial, sans-serif;
15221529
text-align: center;
15231530
/* Rare exception to specifying font sizes in rem. Since this is acting
15241531
as an icon, it's okay to specify their sizes in pixels. */
@@ -1690,7 +1697,6 @@ details.rustdoc-toggle.top-doc > summary,
16901697
details.rustdoc-toggle.top-doc > summary::before,
16911698
details.rustdoc-toggle.non-exhaustive > summary,
16921699
details.rustdoc-toggle.non-exhaustive > summary::before {
1693-
font-family: 'Fira Sans';
16941700
font-size: 1rem;
16951701
}
16961702

@@ -2176,10 +2182,6 @@ in storage.js plus the media query with (min-width: 701px)
21762182
border-radius: 50px;
21772183
}
21782184

2179-
.scraped-example-title {
2180-
font-family: 'Fira Sans';
2181-
}
2182-
21832185
.scraped-example .code-wrapper {
21842186
position: relative;
21852187
display: flex;
@@ -2283,10 +2285,6 @@ in storage.js plus the media query with (min-width: 701px)
22832285
cursor: pointer;
22842286
}
22852287

2286-
.more-examples-toggle summary, .more-examples-toggle .hide-more {
2287-
font-family: 'Fira Sans';
2288-
}
2289-
22902288
.more-scraped-examples {
22912289
margin-left: 5px;
22922290
display: flex;
@@ -2321,7 +2319,6 @@ in storage.js plus the media query with (min-width: 701px)
23212319

23222320
.example-links a {
23232321
margin-top: 20px;
2324-
font-family: 'Fira Sans';
23252322
}
23262323

23272324
.example-links ul {

0 commit comments

Comments
 (0)