diff options
| author | Eric Huss <eric@huss.org> | 2018-08-25 14:15:49 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2018-08-25 14:15:49 -0700 |
| commit | 1c888d51f997cc9358ce4d3e09bf7cbf8e5bdae3 (patch) | |
| tree | 80fdd1d3d6f427b31cc6a2a3e816e668582454a8 | |
| parent | 545f22340f72ee0efaf6463efb43a2840e3d35db (diff) | |
| download | rust-1c888d51f997cc9358ce4d3e09bf7cbf8e5bdae3.tar.gz rust-1c888d51f997cc9358ce4d3e09bf7cbf8e5bdae3.zip | |
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 57a111daa89..2e7fd22105c 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -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'; @@ -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'; } |
