-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
63 lines (61 loc) · 1.05 KB
/
styles.css
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
/* https://codepen.io/WartClaes/pen/QGGPJL */
.json {
font-family: 'Source Code Pro', monospace;
font-size: 16px;
}
.json > .json__item {
display: block;
}
.json__item {
display: none;
margin-top: 10px;
padding-left: 20px;
user-select: none;
}
.json__item--collapsible {
cursor: pointer;
overflow: hidden;
position: relative;
}
.json__item--collapsible::before {
content: '+';
position: absolute;
left: 5px;
}
.json__item--collapsible::after {
background-color: lightgrey;
content: '';
height: 100%;
left: 9px;
position: absolute;
top: 26px;
width: 1px;
}
.json__item--collapsible:hover > .json__key, .json__item--collapsible:hover > .json__value {
text-decoration: underline;
}
.json__toggle {
display: none;
}
.json__toggle:checked ~ .json__item {
display: block;
}
.json__key {
color: darkblue;
display: inline;
}
.json__key::after {
content: ': ';
}
.json__value {
display: inline;
}
.json__value--string {
color: green;
}
.json__value--number {
color: blue;
}
.json__value--boolean {
color: red;
}