Skip to content

Commit

Permalink
Rollup merge of rust-lang#53706 - ehuss:rustdoc-section-anchor, r=Gui…
Browse files Browse the repository at this point in the history
…llaumeGomez

rustdoc: Fix gap on section anchor symbol when hovering.

Fixes rust-lang#49485 for section headings.
  • Loading branch information
GuillaumeGomez authored Aug 26, 2018
2 parents 91755d1 + 1c888d5 commit f9eef71
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 @@ -558,10 +558,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 @@ -758,6 +756,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 f9eef71

Please sign in to comment.