Skip to content

Commit

Permalink
Rollup merge of #102871 - notriddle:notriddle/trait-impl-anchor, r=Gu…
Browse files Browse the repository at this point in the history
…illaumeGomez

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
matthiaskrgr authored Oct 10, 2022
2 parents 973afb1 + 03fe005 commit 40c1410
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 40c1410

Please sign in to comment.