-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjsonviewer.css
More file actions
94 lines (93 loc) · 2.16 KB
/
jsonviewer.css
File metadata and controls
94 lines (93 loc) · 2.16 KB
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
/* MIT License - 2023 Neknaj - Bem130 */
/* https://github.com/neknaj/jsonviewer */
.jsonviewer {
padding: 10px;
font-size: 80%;
overflow: scroll;
display: inline;
position: relative;
width: 100%;
}
.jsonviewer summary {
color: rgb(139, 174, 255);
width: fit-content;
}
.jsonviewer details {
border: 1px solid rgba(255, 255, 255, 0);
padding: 2px;
padding-left: 10px;
display: inline-block;
position: relative;
}
.jsonviewer details[open] {
box-shadow: inset 1px 0px 0px 0px rgba(255, 255, 255, 0.511);
}
.jsonviewer details:hover {
border: 1px solid rgba(255, 255, 255, 0.308);
background-color: rgba(48, 171, 212, 0.08);
}
.jsonviewer>details:hover {
border: 1px solid rgba(255, 255, 255, 0);
}
.jsonviewer details>summary {
font-size: 90%;
}
.jsonviewer details[open]>summary {
color: rgb(85, 97, 123);
font-size: 80%;
}
.jsonviewer details span {
vertical-align: top;
padding-left: 0.05em;
padding-right: 0.05em;
display: inline-block;
}
.jsonviewer details>p>span:nth-child(1) {
min-width: 3em;
}
.jsonviewer details.object>summary>span:nth-child(2) {
font-size: 70%;
}
.jsonviewer details.array>summary>span:nth-child(3) {
font-size: 70%;
vertical-align: bottom;
}
.jsonviewer details.object>summary>.summary_content,
.jsonviewer details.array>summary>.summary_content {
max-width: 200px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
vertical-align: bottom;
}
.jsonviewer span.string span {
color: rgb(221, 136, 0);
}
.jsonviewer span.string span:nth-child(2) {
color: rgb(255, 200, 0);
}
.jsonviewer span.number {
color: rgb(183, 255, 0);
}
.jsonviewer span.boolean {
color: rgb(255, 87, 230);
}
.jsonviewer details span.array_index {
color: rgb(100, 234, 255);
}
.jsonviewer details span.string.object_key span {
color: rgb(0, 144, 221);
}
.jsonviewer details span.string.object_key span:nth-child(2) {
color: rgb(100, 255, 237);
}
.jsonviewer details>p>span:nth-child(2) {
padding-right: 10px;
}
.jsonviewer p {
margin: 1px;
width: fit-content;
}
.jsonviewer details span.comma {
vertical-align: bottom;
}