Improve display of <details> in doc blocks
This commit is contained in:
@@ -158,8 +158,8 @@ h1.fqn {
|
||||
Underlines elsewhere in the documentation break up visual flow and tend to invert
|
||||
section hierarchies. */
|
||||
h2,
|
||||
.top-doc h3,
|
||||
.top-doc h4 {
|
||||
.top-doc .docblock > h3,
|
||||
.top-doc .docblock > h4 {
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
h3.code-header {
|
||||
@@ -1669,6 +1669,18 @@ 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: "▼ ";
|
||||
}
|
||||
|
||||
/* Media Queries */
|
||||
|
||||
@media (min-width: 701px) {
|
||||
|
||||
Reference in New Issue
Block a user