summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/rustdoc.css
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-10-21 10:31:33 -0700
committerMichael Howell <michael@notriddle.com>2022-10-21 10:31:33 -0700
commit0dbf233fc9619ab69d0542b0b6ff64cc52e13bbc (patch)
tree11d6d255ccb53f4e32d95c79ecc1fa493b68fd28 /src/librustdoc/html/static/css/rustdoc.css
parent657f246812ab2684e3c3954b1c77f98fd59e0b21 (diff)
downloadrust-0dbf233fc9619ab69d0542b0b6ff64cc52e13bbc.tar.gz
rust-0dbf233fc9619ab69d0542b0b6ff64cc52e13bbc.zip
rustdoc: merge identical CSS blocks
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index afe1ca5d7e5..43f01c80b93 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1536,6 +1536,7 @@ details.dir-entry a {
 	https://developer.mozilla.org/en-US/docs/Web/CSS/contain */
 details.rustdoc-toggle {
 	contain: layout;
+	position: relative;
 }
 
 /* The hideme class is used on summary tags that contain a span with
@@ -1629,10 +1630,6 @@ details.rustdoc-toggle[open] > summary.hideme {
 	position: absolute;
 }
 
-details.rustdoc-toggle {
-	position: relative;
-}
-
 details.rustdoc-toggle[open] > summary.hideme > span {
 	display: none;
 }
@@ -1993,10 +1990,7 @@ in storage.js
 	margin-bottom: 0.75em;
 }
 
-.method-toggle[open]:not(:last-child) {
-	margin-bottom: 2em;
-}
-
+.method-toggle[open]:not(:last-child),
 .implementors-toggle[open]:not(:last-child) {
 	margin-bottom: 2em;
 }