File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,14 @@ mixin jsarray(items)
18
18
mixin jsproperty(key, value )
19
19
- _type = getType (value)
20
20
li( class ='document-property #{_type .toLowerCase ()} ' )
21
- .document-property-header
22
- if _type === ' Array ' || _type === ' Object '
21
+ if _type === ' Array ' || _type === ' Object '
22
+ .document-property-header
23
23
.caret
24
+ if key
25
+ .document-property-key = key
26
+ |:
27
+ + jsvalue(value, _type)
28
+ else
24
29
if key
25
30
.document-property-key = key
26
31
|:
Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ ol.document-list {
16
16
margin-bottom : 10px ;
17
17
border-bottom : 1px solid @gray7 ;
18
18
19
+ // unstyled for top-level object
19
20
> ol .document-property-body {
20
21
.list-unstyled ;
21
22
}
22
- ol .document-property-body > li .document-property-object > ol .document-property-body {
23
- .list-unstyled ;
24
- }
25
23
26
24
ol .document-property-body {
27
25
display : block ;
@@ -70,23 +68,24 @@ ol.document-list {
70
68
display : inline-block ;
71
69
}
72
70
}
73
- ol .document-property.body {
71
+
72
+ ol .document-property-body {
74
73
margin-left : 5px ;
75
74
padding-left : -5px ;
76
75
border-left : 1px dotted @gray5 ;
77
76
display : none ;
78
77
}
79
- ol .document-property. body > a ~ ol {
80
- padding-left : 12px ;
81
- display : none ;
82
- }
78
+ // ol.document-property- body > a ~ ol {
79
+ // padding-left: 12px;
80
+ // display: none;
81
+ // }
83
82
& .expanded {
84
83
> .document-property-header {
85
84
> .caret {
86
85
.caret-down ;
87
86
}
88
87
}
89
- > ol .document-property. body {
88
+ > ol .document-property- body {
90
89
display : block ;
91
90
}
92
91
}
You can’t perform that action at this time.
0 commit comments