Skip to content

Commit

Permalink
rustdoc: simplify section anchor CSS
Browse files Browse the repository at this point in the history
Since f50bf86 changed anchors to be
always positioned absolute, specifying it on hover as well is redundant.
  • Loading branch information
notriddle committed Dec 20, 2022
1 parent 65bd2a6 commit b29a9e3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -689,14 +689,10 @@ a {
position: relative;
}

.small-section-header:hover > .anchor {
.small-section-header:hover > .anchor, .impl:hover > .anchor,
.trait-impl:hover > .anchor, .variant:hover > .anchor {
display: initial;
}

.impl:hover > .anchor, .trait-impl:hover > .anchor, .variant:hover > .anchor {
display: inline-block;
position: absolute;
}
.anchor {
display: none;
position: absolute;
Expand Down

0 comments on commit b29a9e3

Please sign in to comment.