rustdoc: merge identical CSS blocks

This commit is contained in:
Michael Howell 2022-10-21 10:31:33 -07:00
parent 657f246812
commit 0dbf233fc9

View File

@ -1536,6 +1536,7 @@ details.dir-entry a {
https://developer.mozilla.org/en-US/docs/Web/CSS/contain */ https://developer.mozilla.org/en-US/docs/Web/CSS/contain */
details.rustdoc-toggle { details.rustdoc-toggle {
contain: layout; contain: layout;
position: relative;
} }
/* The hideme class is used on summary tags that contain a span with /* 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; position: absolute;
} }
details.rustdoc-toggle {
position: relative;
}
details.rustdoc-toggle[open] > summary.hideme > span { details.rustdoc-toggle[open] > summary.hideme > span {
display: none; display: none;
} }
@ -1993,10 +1990,7 @@ in storage.js
margin-bottom: 0.75em; margin-bottom: 0.75em;
} }
.method-toggle[open]:not(:last-child) { .method-toggle[open]:not(:last-child),
margin-bottom: 2em;
}
.implementors-toggle[open]:not(:last-child) { .implementors-toggle[open]:not(:last-child) {
margin-bottom: 2em; margin-bottom: 2em;
} }