Rollup merge of #105972 - notriddle:notriddle/anchor, r=GuillaumeGomez

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:
Matthias Krüger 2022-12-20 23:35:16 +01:00 committed by GitHub
commit b9edcfa055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -690,14 +690,10 @@ a {
position: relative; position: relative;
} }
.small-section-header:hover > .anchor { .small-section-header:hover > .anchor, .impl:hover > .anchor,
.trait-impl:hover > .anchor, .variant:hover > .anchor {
display: initial; display: initial;
} }
.impl:hover > .anchor, .trait-impl:hover > .anchor, .variant:hover > .anchor {
display: inline-block;
position: absolute;
}
.anchor { .anchor {
display: none; display: none;
position: absolute; position: absolute;