@@ -11,19 +11,16 @@ ol.document-list {
11
11
li .document-list-item {
12
12
font-family : @font-family-monospace ;
13
13
font-size : 11px ;
14
- margin-left : 5px ;
15
14
padding-bottom : 10px ;
16
15
margin-bottom : 10px ;
17
16
border-bottom : 1px solid @gray7 ;
18
17
19
- // unstyled for top-level object
20
- > ol .document-property-body {
21
- .list-unstyled ;
22
- }
23
-
24
18
ol .document-property-body {
25
19
display : block ;
20
+ .list-unstyled ;
26
21
.truncate-text-mixin ();
22
+ padding-left : 25px ;
23
+
27
24
// - Strings, Numbers, ObjectID's, Date's, etc
28
25
li .document-property {
29
26
width : 100% ;
@@ -32,19 +29,54 @@ ol.document-list {
32
29
.document-property-key {
33
30
font-weight : bold ;
34
31
display : inline-block ;
35
- padding-left : 12px ;
36
32
}
37
33
38
34
.document-property-value {
39
- padding-left : 5px ;
40
- padding-top : 4px ;
41
35
display : inline-block ;
42
36
}
43
37
}
44
38
39
+ // add quotes for strings before and after, and some basic type coloring
40
+ .document-property.string > .document-property-value {
41
+ color : steelblue ;
42
+ & ::before {
43
+ content : " \" " ;
44
+ }
45
+ & ::after {
46
+ content : " \" " ;
47
+ }
48
+ }
49
+
50
+ .document-property.number > .document-property-value {
51
+ color : green ;
52
+ }
53
+
54
+ .document-property.boolean > .document-property-value {
55
+ color : purple ;
56
+ }
57
+
58
+ .document-property.date > .document-property-value {
59
+ color : firebrick ;
60
+ }
61
+
62
+ // ObjectIDs serialize to just the hash, wrap in "ObjectId( ... )"
63
+ .document-property.objectid > .document-property-value {
64
+ color : orangered ;
65
+ & ::before {
66
+ content : " ObjectID('" ;
67
+ }
68
+ & ::after {
69
+ content : " ')" ;
70
+ }
71
+ }
72
+
45
73
li .document-property.array , li .document-property.object {
46
74
display : block ;
47
- padding-top : 4px ;
75
+ margin-left : -16px ;
76
+
77
+ & .expanded {
78
+ margin-left : -20px ;
79
+ }
48
80
49
81
.document-property-header {
50
82
cursor : pointer ;
@@ -55,7 +87,8 @@ ol.document-list {
55
87
display : inline-block ;
56
88
width : 12px ;
57
89
height : 1em ;
58
- margin-right : 5px ;
90
+ margin-left : 2px ;
91
+ margin-right : 10px ;
59
92
.caret-right ;
60
93
}
61
94
@@ -71,14 +104,9 @@ ol.document-list {
71
104
72
105
ol .document-property-body {
73
106
margin-left : 5px ;
74
- padding-left : -5px ;
75
107
border-left : 1px dotted @gray5 ;
76
108
display : none ;
77
109
}
78
- // ol.document-property-body > a ~ ol {
79
- // padding-left: 12px;
80
- // display: none;
81
- // }
82
110
& .expanded {
83
111
> .document-property-header {
84
112
> .caret {
0 commit comments