Skip to content

Commit 28b26b7

Browse files
committed
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.
1 parent 2d46584 commit 28b26b7

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
@@ -773,8 +773,9 @@ h2.small-section-header > .anchor {
773773
}
774774

775775
.all-items a:hover,
776-
.docblock a:not(.srclink):not(.test-arrow):not(.scrape-help):hover,
777-
.docblock-short a:not(.srclink):not(.test-arrow):not(.scrape-help):hover, .item-info a {
776+
.docblock a:not(.test-arrow):not(.scrape-help):hover,
777+
.docblock-short a:not(.test-arrow):not(.scrape-help):hover,
778+
.item-info a {
778779
text-decoration: underline;
779780
}
780781

0 commit comments

Comments
 (0)