mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 18:12:51 +00:00
Fix anchors display in rustdoc
This commit is contained in:
parent
896f058f13
commit
dc24f02bc4
@ -735,17 +735,21 @@ a {
|
||||
.anchor {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: -7px;
|
||||
left: 0;
|
||||
background: none !important;
|
||||
}
|
||||
.anchor.field {
|
||||
left: -5px;
|
||||
}
|
||||
.small-section-header > .anchor {
|
||||
left: -28px;
|
||||
padding-right: 10px; /* avoid gap that causes hover to disappear */
|
||||
left: -15px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
.anchor:before {
|
||||
content: '\2002\00a7\2002';
|
||||
h2.small-section-header > .anchor {
|
||||
padding-right: 6px;
|
||||
}
|
||||
.anchor::before {
|
||||
content: '§';
|
||||
}
|
||||
|
||||
.docblock a:not(.srclink):not(.test-arrow):hover,
|
||||
|
Loading…
Reference in New Issue
Block a user