Skip to content

Commit 0dbf233

Browse files
committed
rustdoc: merge identical CSS blocks
1 parent 657f246 commit 0dbf233

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,7 @@ details.dir-entry a {
15361536
https://developer.mozilla.org/en-US/docs/Web/CSS/contain */
15371537
details.rustdoc-toggle {
15381538
contain: layout;
1539+
position: relative;
15391540
}
15401541

15411542
/* The hideme class is used on summary tags that contain a span with
@@ -1629,10 +1630,6 @@ details.rustdoc-toggle[open] > summary.hideme {
16291630
position: absolute;
16301631
}
16311632

1632-
details.rustdoc-toggle {
1633-
position: relative;
1634-
}
1635-
16361633
details.rustdoc-toggle[open] > summary.hideme > span {
16371634
display: none;
16381635
}
@@ -1993,10 +1990,7 @@ in storage.js
19931990
margin-bottom: 0.75em;
19941991
}
19951992

1996-
.method-toggle[open]:not(:last-child) {
1997-
margin-bottom: 2em;
1998-
}
1999-
1993+
.method-toggle[open]:not(:last-child),
20001994
.implementors-toggle[open]:not(:last-child) {
20011995
margin-bottom: 2em;
20021996
}

0 commit comments

Comments
 (0)