Skip to content

Commit

Permalink
Rollup merge of rust-lang#105972 - notriddle:notriddle/anchor, r=Guil…
Browse files Browse the repository at this point in the history
…laumeGomez

rustdoc: simplify section anchor CSS

Since f50bf86 changed anchors to be always positioned absolute, specifying it on hover as well is redundant.
  • Loading branch information
fee1-dead authored Dec 21, 2022
2 parents b5853f6 + b29a9e3 commit f6af81a
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 @@ -690,14 +690,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 f6af81a

Please sign in to comment.