Skip to content

Commit d6c05fb

Browse files
authored
Rollup merge of #102747 - notriddle:notriddle/docblock-a-not-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.
2 parents a636398 + 28b26b7 commit d6c05fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,9 @@ h2.small-section-header > .anchor {
768768
}
769769

770770
.all-items a:hover,
771-
.docblock a:not(.srclink):not(.test-arrow):not(.scrape-help):hover,
772-
.docblock-short a:not(.srclink):not(.test-arrow):not(.scrape-help):hover, .item-info a {
771+
.docblock a:not(.test-arrow):not(.scrape-help):hover,
772+
.docblock-short a:not(.test-arrow):not(.scrape-help):hover,
773+
.item-info a {
773774
text-decoration: underline;
774775
}
775776

0 commit comments

Comments
 (0)