Skip to content

Commit b29a9e3

Browse files
committed
rustdoc: simplify section anchor CSS
Since f50bf86 changed anchors to be always positioned absolute, specifying it on hover as well is redundant.
1 parent 65bd2a6 commit b29a9e3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,14 +689,10 @@ a {
689689
position: relative;
690690
}
691691

692-
.small-section-header:hover > .anchor {
692+
.small-section-header:hover > .anchor, .impl:hover > .anchor,
693+
.trait-impl:hover > .anchor, .variant:hover > .anchor {
693694
display: initial;
694695
}
695-
696-
.impl:hover > .anchor, .trait-impl:hover > .anchor, .variant:hover > .anchor {
697-
display: inline-block;
698-
position: absolute;
699-
}
700696
.anchor {
701697
display: none;
702698
position: absolute;

0 commit comments

Comments
 (0)