diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-08-06 16:47:35 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-08-18 13:27:45 +0200 |
| commit | dc24f02bc44f4a598e84e76a9269f2a972d6176d (patch) | |
| tree | 44c11c3910695e352ff632f94e9340af223f1312 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 896f058f13d6c8021f7637817953a44d3a78be32 (diff) | |
| download | rust-dc24f02bc44f4a598e84e76a9269f2a972d6176d.tar.gz rust-dc24f02bc44f4a598e84e76a9269f2a972d6176d.zip | |
Fix anchors display in rustdoc
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index bbc48f49e63..0714de9d565 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -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, |
