Skip to content

Commit

Permalink
Rollup merge of rust-lang#102871 - notriddle:notriddle/trait-impl-anc…
Browse files Browse the repository at this point in the history
…hor, r=GuillaumeGomez

rustdoc: clean up overly complex `.trait-impl` CSS selectors

When added in 4596436, these multi-class selectors were present in the initial commit, but no reason was given why the shorter selector wouldn't work.
  • Loading branch information
Dylan-DPC authored Oct 10, 2022
2 parents 56be8ab + 03fe005 commit 0492622
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,7 @@ a {
display: initial;
}

.impl:hover > .anchor, .method.trait-impl:hover > .anchor,
.type.trait-impl:hover > .anchor, .associatedconstant.trait-impl:hover > .anchor,
.associatedtype.trait-impl:hover > .anchor {
.impl:hover > .anchor, .trait-impl:hover > .anchor {
display: inline-block;
position: absolute;
}
Expand Down

0 comments on commit 0492622

Please sign in to comment.