Skip to content

Commit

Permalink
Rollup merge of rust-lang#102747 - notriddle:notriddle/docblock-a-not…
Browse files Browse the repository at this point in the history
…-srclink, r=GuillaumeGomez

rustdoc: remove unused CSS `.docblock a:not(.srclink)`

This selector was added in c7312fb, because the list of impl items could be nested below `docblock`.

https://github.com/rust-lang/rust/blob/c7312fbae4979c6d4fdfbd1f55a71cd47d82a480/src/librustdoc/html/render.rs#L3841-L3845

Now that rustdoc toggles have been switched to `<details>`, there shouldn't be any need to put things inside docblock containers just to give them disclosure toggles.
  • Loading branch information
matthiaskrgr authored Oct 7, 2022
2 parents 9e79af3 + 28b26b7 commit df6855a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,9 @@ h2.small-section-header > .anchor {
}

.all-items a:hover,
.docblock a:not(.srclink):not(.test-arrow):not(.scrape-help):hover,
.docblock-short a:not(.srclink):not(.test-arrow):not(.scrape-help):hover, .item-info a {
.docblock a:not(.test-arrow):not(.scrape-help):hover,
.docblock-short a:not(.test-arrow):not(.scrape-help):hover,
.item-info a {
text-decoration: underline;
}

Expand Down

0 comments on commit df6855a

Please sign in to comment.