Skip to content

Commit b9edcfa

Browse files
authored
Rollup merge of #105972 - notriddle:notriddle/anchor, r=GuillaumeGomez
rustdoc: simplify section anchor CSS Since f50bf86 changed anchors to be always positioned absolute, specifying it on hover as well is redundant.
2 parents 50cfffa + b29a9e3 commit b9edcfa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

+2-6
Original file line numberDiff line numberDiff line change
@@ -690,14 +690,10 @@ a {
690690
position: relative;
691691
}
692692

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

0 commit comments

Comments
 (0)