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:
commit
b9edcfa055
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user