diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-20 23:35:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-20 23:35:16 +0100 |
| commit | b9edcfa055ae72a097f1101c2272b4a99c15d618 (patch) | |
| tree | 625de19136fc35ca47e60cf6818c96d03f9c6d03 | |
| parent | 50cfffa7a2745ccda74cc9b282eae6fc7b869985 (diff) | |
| parent | b29a9e3b3f415591240c800a0e7a274cc49e2465 (diff) | |
Rollup merge of #105972 - notriddle:notriddle/anchor, r=GuillaumeGomez
rustdoc: simplify section anchor CSS Since f50bf8636e3b0296db82e631fe95c84324a46ccc changed anchors to be always positioned absolute, specifying it on hover as well is redundant.
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 055a5665cf0..b2f220b0571 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -690,14 +690,10 @@ a { position: relative; } -.small-section-header:hover > .anchor { +.small-section-header:hover > .anchor, .impl:hover > .anchor, +.trait-impl:hover > .anchor, .variant:hover > .anchor { display: initial; } - -.impl:hover > .anchor, .trait-impl:hover > .anchor, .variant:hover > .anchor { - display: inline-block; - position: absolute; -} .anchor { display: none; position: absolute; |
