padding-bottom: 0;
}
-.doc .exampleblock > .content {
+.doc details {
+ margin-left: 1rem;
+}
+
+.doc details > summary {
+ display: block;
+ position: relative;
+ line-height: var(--doc-line-height);
+ margin-bottom: 0.5rem;
+}
+
+.doc details > summary::before {
+ content: "";
+ border: solid transparent;
+ border-left-color: currentColor;
+ border-width: 0.3em 0 0.3em 0.5em;
+ position: absolute;
+ top: calc((var(--doc-line-height) * 0.5 - 0.3) * 1em);
+ left: -1rem;
+ transform: translateX(15%);
+}
+
+.doc details[open] > summary::before {
+ border: solid transparent;
+ border-top-color: currentColor;
+ border-width: 0.5rem 0.3rem 0;
+ transform: translateY(15%);
+}
+
+.doc details > summary::after {
+ content: "";
+ width: 1rem;
+ height: 1em;
+ position: absolute;
+ top: calc((var(--doc-line-height) * 0.5 - 0.5) * 1em);
+ left: -1rem;
+}
+
+.doc details.result {
+ margin-top: 0.25rem;
+}
+
+.doc details.result > summary {
+ color: var(--caption-font-color);
+ font-style: italic;
+ margin-bottom: 0;
+}
+
+.doc details.result > .content {
+ margin-left: -1rem;
+}
+
+.doc .exampleblock > .content,
+.doc details.result > .content {
background: var(--example-background);
border: 0.25rem solid var(--example-border-color);
border-radius: 0.5rem;
padding: 0.75rem;
}
-.doc .exampleblock > .content > :first-child {
+.doc .exampleblock > .content::after,
+.doc details.result > .content::after {
+ content: "";
+ display: table;
+ clear: both;
+}
+
+.doc .exampleblock > .content > :first-child,
+.doc details > .content > :first-child {
margin-top: 0;
}