rustdoc: simplify section anchor CSS

Since f50bf8636e changed anchors to be
always positioned absolute, specifying it on hover as well is redundant.
This commit is contained in:
Michael Howell 2022-12-20 12:44:22 -07:00
parent 65bd2a6a73
commit b29a9e3b3f

View File

@ -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;