-
-
Notifications
You must be signed in to change notification settings - Fork 322
Expand file tree
/
Copy pathjson-validator.css
More file actions
120 lines (100 loc) · 1.96 KB
/
Copy pathjson-validator.css
File metadata and controls
120 lines (100 loc) · 1.96 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*********
** Main layout
*********/
#content {
max-width: 100%;
}
#output {
padding: 10px;
overflow: auto;
}
#output table td {
font-family: monospace;
}
#output table tr th,
#output table tr td {
padding: 0 0.75rem;
white-space: pre-wrap;
}
/*********
** Code block
*********/
#code {
max-width: calc(
100vw
- 10px /* #output padding */
- 1em /* #content padding */
- 1px /* #content border */
- 10em /* #content-column position */
- 3em /* scrollbar */
);
overflow-x: scroll;
}
@media (min-width: 1020px) and (max-width: 1199px) {
#code {
max-width: calc(100vw - 10px - 1em - 1px - 7em - 3em); /* #content-column reduced to 7em */
}
}
@media (max-width: 1019px) {
#code {
max-width: calc(100vw - 10px - 1em - 1px - 0em - 2em); /* #content-column moved to 0em */
}
}
/*********
** Result banner
*********/
.banner {
border: 2px solid gray;
border-radius: 5px;
margin-top: 1em;
padding: 1em;
}
.banner.success {
border-color: green;
background: var(--ok-bg);
}
.banner.error {
border-color: red;
background: var(--error-bg);
}
.save-metadata {
margin-top: 1em;
font-size: 0.8em;
opacity: 0.3;
}
/*********
** Validation results
*********/
.table {
border-bottom: 1px dashed var(--border-strong);
margin-bottom: 5px;
}
#metadata th, #metadata td {
text-align: left;
padding-right: 0.7em;
}
.table {
border: 1px solid var(--surface-border);
background: var(--surface);
border-radius: 5px;
border-spacing: 1px;
overflow: hidden;
cursor: default;
box-shadow: 1px 1px 1px 1px var(--border);
}
.table tr {
background: var(--surface-alt);
}
.table tr:nth-child(even) {
background: var(--surface);
}
#output div.sunlight-line-highlight-active {
background-color: var(--warn-bg);
}
.footer-tip {
color: gray;
font-size: 0.9em;
}
.footer-tip a {
color: gray;
}