about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-20 23:35:16 +0100
committerGitHub <noreply@github.com>2022-12-20 23:35:16 +0100
commitb9edcfa055ae72a097f1101c2272b4a99c15d618 (patch)
tree625de19136fc35ca47e60cf6818c96d03f9c6d03
parent50cfffa7a2745ccda74cc9b282eae6fc7b869985 (diff)
parentb29a9e3b3f415591240c800a0e7a274cc49e2465 (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.css8
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;