Skip to content

Commit 07596fe

Browse files
Fix display of <details>/<summary> in doc blocks
1 parent 6557985 commit 07596fe

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

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

+3-10
Original file line numberDiff line numberDiff line change
@@ -1669,16 +1669,9 @@ details.rustdoc-toggle[open] > summary.hideme::after {
16691669
content: "Collapse";
16701670
}
16711671

1672-
.docblock details summary {
1673-
display: flex;
1674-
list-style: none;
1675-
align-items: center;
1676-
}
1677-
.docblock details[open] summary::before {
1678-
content: "► ";
1679-
}
1680-
.docblock details[open] summary::before {
1681-
content: "▼ ";
1672+
/* This is needed in docblocks to have the "▶" element to be on the same line. */
1673+
.docblock summary > * {
1674+
display: inline-block;
16821675
}
16831676

16841677
/* Media Queries */

0 commit comments

Comments
 (0)