Skip to content

Commit

Permalink
Fix anchors display in rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 18, 2021
1 parent 896f058 commit dc24f02
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dc24f02

Please sign in to comment.