Skip to content

Commit

Permalink
Rollup merge of #99423 - GuillaumeGomez:group-css-font-rule, r=notriddle
Browse files Browse the repository at this point in the history
Group CSS font rule

Another CSS cleanup I came by when working on something else.

r? ``@notriddle``
  • Loading branch information
Dylan-DPC committed Jul 22, 2022
2 parents 449ffe0 + 0e14614 commit aec458b
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,15 @@ details.rustdoc-toggle > summary::before,
div.impl-items > div:not(.docblock):not(.item-info),
.content ul.crate a.crate,
a.srclink,
#main-content > .since,
#help-button > button,
details.rustdoc-toggle.top-doc > summary,
details.rustdoc-toggle.top-doc > summary::before,
details.rustdoc-toggle.non-exhaustive > summary,
details.rustdoc-toggle.non-exhaustive > summary::before,
.scraped-example-title,
.more-examples-toggle summary, .more-examples-toggle .hide-more,
.example-links a,
/* This selector is for the items listed in the "all items" page. */
#main-content > ul.docblock > li > a {
font-family: "Fira Sans", Arial, NanumBarunGothic, sans-serif;
Expand Down Expand Up @@ -702,7 +711,6 @@ pre, .rustdoc.source .example-wrap {
}
#main-content > .since {
top: inherit;
font-family: "Fira Sans", Arial, sans-serif;
}

.content table:not(.table-display) {
Expand Down Expand Up @@ -1518,7 +1526,6 @@ input:checked + .slider {
}

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

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

.scraped-example-title {
font-family: 'Fira Sans';
}

.scraped-example .code-wrapper {
position: relative;
display: flex;
Expand Down Expand Up @@ -2283,10 +2285,6 @@ in storage.js plus the media query with (min-width: 701px)
cursor: pointer;
}

.more-examples-toggle summary, .more-examples-toggle .hide-more {
font-family: 'Fira Sans';
}

.more-scraped-examples {
margin-left: 5px;
display: flex;
Expand Down Expand Up @@ -2321,7 +2319,6 @@ in storage.js plus the media query with (min-width: 701px)

.example-links a {
margin-top: 20px;
font-family: 'Fira Sans';
}

.example-links ul {
Expand Down

0 comments on commit aec458b

Please sign in to comment.