about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-12-20 12:44:22 -0700
committerMichael Howell <michael@notriddle.com>2022-12-20 12:44:22 -0700
commitb29a9e3b3f415591240c800a0e7a274cc49e2465 (patch)
tree63d8533f41800c6458dc67adff6e31c623259bdd
parent65bd2a6a73d6a74fb1266a1d96b23de8810a5fb2 (diff)
downloadrust-b29a9e3b3f415591240c800a0e7a274cc49e2465.tar.gz
rust-b29a9e3b3f415591240c800a0e7a274cc49e2465.zip
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 11e34a3fc7d..30d70f1a099 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -689,14 +689,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;