Fix display of <details>/<summary> in doc blocks

This commit is contained in:
Guillaume Gomez
2022-05-21 15:05:19 +02:00
parent 655798558e
commit 07596fefc1

View File

@@ -1669,16 +1669,9 @@ details.rustdoc-toggle[open] > summary.hideme::after {
content: "Collapse";
}
.docblock details summary {
display: flex;
list-style: none;
align-items: center;
}
.docblock details[open] summary::before {
content: "► ";
}
.docblock details[open] summary::before {
content: "▼ ";
/* This is needed in docblocks to have the "▶" element to be on the same line. */
.docblock summary > * {
display: inline-block;
}
/* Media Queries */