mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
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:
parent
65bd2a6a73
commit
b29a9e3b3f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user