Skip to content

Commit

Permalink
rustdoc: Fix gap on section anchor symbol when hovering.
Browse files Browse the repository at this point in the history
Fixes rust-lang#49485 for section headings.
  • Loading branch information
ehuss committed Aug 25, 2018
1 parent 545f223 commit 1c888d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,8 @@ a {
left: -5px;
}
.small-section-header > .anchor {
left: -20px;
}
.small-section-header > .anchor:not(.field) {
left: -28px;
padding-right: 10px; /* avoid gap that causes hover to disappear */
}
.anchor:before {
content: '\2002\00a7\2002';
Expand Down Expand Up @@ -745,6 +743,7 @@ a.test-arrow:hover{
.section-header:hover a:before {
position: absolute;
left: -25px;
padding-right: 10px; /* avoid gap that causes hover to disappear */
content: '\2002\00a7\2002';
}

Expand Down

0 comments on commit 1c888d5

Please sign in to comment.