File tree Expand file tree Collapse file tree 3 files changed +56
-1
lines changed Expand file tree Collapse file tree 3 files changed +56
-1
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,22 @@ This is an example paragraph.
54
54
.Summary
55
55
[%collapsible]
56
56
====
57
+ Details.
58
+
57
59
Loads of details.
58
60
====
59
61
62
+ [,asciidoc]
63
+ ----
64
+ Voila!
65
+ ----
66
+
67
+ .Result
68
+ [%collapsible.result]
69
+ ====
70
+ Voila!
71
+ ====
72
+
60
73
=== Some Code
61
74
62
75
How about some code?
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ button::-moz-focus-inner {
75
75
76
76
summary {
77
77
cursor : pointer;
78
+ -webkit-tap-highlight-color : transparent;
78
79
}
79
80
80
81
table {
Original file line number Diff line number Diff line change @@ -642,12 +642,53 @@ h1.page + aside.toc.embedded {
642
642
padding-bottom : 0 ;
643
643
}
644
644
645
+ .doc details {
646
+ margin-left : 1.25rem ;
647
+ }
648
+
649
+ .doc details > summary {
650
+ display : flex;
651
+ line-height : var (--doc-line-height );
652
+ margin-bottom : 0.5rem ;
653
+ }
654
+
655
+ .doc details > summary ::before {
656
+ content : "" ;
657
+ border : solid transparent;
658
+ border-left-color : currentColor;
659
+ border-width : 0.3em 0 0.3em 0.5em ;
660
+ position : absolute;
661
+ margin-top : calc ((var (--doc-line-height ) * 0.5 - 0.3 ) * 1em );
662
+ margin-left : -1.25rem ;
663
+ transform : translateX (25% );
664
+ }
665
+
666
+ .doc details [open ] > summary ::before {
667
+ border-color : currentColor transparent transparent;
668
+ border-width : 0.5rem 0.3rem 0 ;
669
+ transform : translateX (10% ) translateY (15% );
670
+ }
671
+
672
+ .doc details > summary ::after {
673
+ content : "" ;
674
+ width : 1.25rem ;
675
+ height : 1em ;
676
+ position : absolute;
677
+ margin-top : calc ((var (--doc-line-height ) * 0.5 - 0.5 ) * 1em );
678
+ margin-left : -1.25rem ;
679
+ }
680
+
645
681
.doc details .result {
646
682
margin-top : 0.25rem ;
647
683
}
648
684
649
685
.doc details .result > summary {
650
686
color : var (--caption-font-color );
687
+ margin-bottom : 0 ;
688
+ }
689
+
690
+ .doc details .result > .content {
691
+ margin-left : -1.25rem ;
651
692
}
652
693
653
694
.doc .exampleblock > .content ,
@@ -666,7 +707,7 @@ h1.page + aside.toc.embedded {
666
707
}
667
708
668
709
.doc .exampleblock > .content > : first-child ,
669
- .doc details . result > .content > : first-child {
710
+ .doc details > .content > : first-child {
670
711
margin-top : 0 ;
671
712
}
672
713
You can’t perform that action at this time.
0 commit comments