about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-10-30 23:10:59 -0700
committerMichael Howell <michael@notriddle.com>2022-10-30 23:10:59 -0700
commit791f04e5a47ee78951552c7ed1545b2b01a44c74 (patch)
treebcdc4046444059dceaadaf3b9d3bfdb2abb73a9e
parentd726c8467c06088d5d4488edf6b015ec9698c1ea (diff)
downloadrust-791f04e5a47ee78951552c7ed1545b2b01a44c74.tar.gz
rust-791f04e5a47ee78951552c7ed1545b2b01a44c74.zip
rustdoc: add margins to all impl-item toggles, not just methods
Fixes #103782
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 118c6779cb1..3ce575df0b2 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1961,24 +1961,26 @@ in storage.js
 	}
 }
 
-.method-toggle > summary,
 .implementors-toggle > summary,
 .impl,
 #implementors-list > .docblock,
 .impl-items > section,
-.methods > section
+.impl-items > .rustdoc-toggle > summary,
+.methods > section,
+.methods > .rustdoc-toggle > summary
 {
 	margin-bottom: 0.75em;
 }
 
-.method-toggle[open]:not(:last-child),
+.impl-items > .rustdoc-toggle[open]:not(:last-child),
+.methods > .rustdoc-toggle[open]:not(:last-child),
 .implementors-toggle[open]:not(:last-child) {
 	margin-bottom: 2em;
 }
 
-#trait-implementations-list .method-toggle:not(:last-child),
-#synthetic-implementations-list .method-toggle:not(:last-child),
-#blanket-implementations-list .method-toggle:not(:last-child) {
+#trait-implementations-list .impl-items > .rustdoc-toggle:not(:last-child),
+#synthetic-implementations-list .impl-items > .rustdoc-toggle:not(:last-child),
+#blanket-implementations-list .impl-items > .rustdoc-toggle:not(:last-child) {
 	margin-bottom: 1em;
 }