-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathjson-view-interactive.less
110 lines (88 loc) · 1.51 KB
/
json-view-interactive.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
@import (reference) "~bootstrap/less/variables.less";
@jvi-gutter: 20px;
@jvi-spacing: 2px;
.jvi-block {
display: block;
border-left: 1px dotted @table-border-color;
margin: 0 0 0 2px;
font-family: @font-family-monospace;
&.hidden {
display: none;
}
}
.jvi-item {
display: block;
position: relative;
padding: 0 0 0 @jvi-gutter;
white-space: nowrap;
.jvi-item {
margin: @jvi-spacing 0;
}
&.jvi-nested-last > span > .jvi-punctuation.jvi-comma {
display: none;
}
}
.jvi-toggle {
position: absolute;
left: 0;
top: 0;
width: @jvi-gutter;
height: @jvi-gutter;
line-height: @jvi-gutter;
text-align: center;
cursor: pointer;
z-index: 1;
color: @text-color;
opacity: 0.5;
&:hover {
opacity: 0.8;
}
i {
vertical-align: middle;
}
&.hidden {
display: none;
}
}
.jvi-punctuation {
color: @text-color;
&.jvi-string {
color: @state-success-text;
}
&.jvi-braces {
margin: 0 @jvi-spacing;
}
&.jvi-ellipsis {
padding: 0 @jvi-spacing;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
&.hidden {
display: none;
}
}
.jvi-value {
color: @state-success-text;
&.jvi-primitive {
color: @state-warning-text;
}
&.jvi-string {
white-space: normal;
}
}
.jvi-object-key {
.jvi-value, .jvi-punctuation {
color: @brand-primary;
}
}
.jvi-comment {
color: @text-muted;
font-style: italic;
margin: 0 0 0 2 * @jvi-spacing;
opacity: 0.5;
&.hidden {
display: none;
}
}