diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-08-26 12:05:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-26 12:05:27 +0200 |
| commit | f9eef71986741c91161c88b9f7a3bf80796f44a3 (patch) | |
| tree | 7bdd21351bed0ad3b4887819d1402e48c251f905 | |
| parent | 91755d1f91108f85ebf8b9bf7bce89e478f89c65 (diff) | |
| parent | 1c888d51f997cc9358ce4d3e09bf7cbf8e5bdae3 (diff) | |
| download | rust-f9eef71986741c91161c88b9f7a3bf80796f44a3.tar.gz rust-f9eef71986741c91161c88b9f7a3bf80796f44a3.zip | |
Rollup merge of #53706 - ehuss:rustdoc-section-anchor, r=GuillaumeGomez
rustdoc: Fix gap on section anchor symbol when hovering. Fixes #49485 for section headings.
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 4c7a7dce536..ffe6a40b369 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -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'; @@ -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'; } |
