-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
113 lines (98 loc) · 2.08 KB
/
styles.css
File metadata and controls
113 lines (98 loc) · 2.08 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
/* Estilos para el contenedor del JSON formateado (<pre>) */
.jsonable pre {
background-color: #282c34;
color: #abb2bf;
font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
font-size: 14px;
padding: 15px;
border-radius: 8px;
white-space: pre-wrap;
word-wrap: break-word;
overflow: auto;
margin-top: 0;
}
/* Controles y botones */
.json-controls {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.jsonable button {
padding: 5px 10px;
border: 1px solid #abb2bf;
border-radius: 4px;
background-color: #3a3f4b;
color: #abb2bf;
cursor: pointer;
transition: background-color 0.2s, border-color 0.2s;
}
.jsonable button:hover {
background-color: #4b5160;
}
.jsonable button.copied {
background-color: #28a745;
border-color: #28a745;
color: #ffffff;
}
/* Estilos para Árbol Plegable */
.collapsible {
position: relative;
}
.collapsible > .content {
padding-left: 20px;
border-left: 1px dotted #5c6370;
margin-left: 7px;
}
.toggler {
cursor: pointer;
display: inline-block;
user-select: none;
width: 1em;
}
.toggler::before {
content: '▼';
display: inline-block;
transition: transform 0.1s ease-in-out;
color: #5c6370;
}
.ellipsis {
display: none;
margin: 0 5px;
color: #5c6370;
font-style: italic;
}
.json-size {
color: #5c6370;
font-style: italic;
margin-left: 10px;
}
/* Estilos para el estado plegado */
.collapsible.collapsed > .toggler::before {
content: '►';
transform: translateY(-1px);
}
.collapsible.collapsed > .content,
.collapsible.collapsed > .json-size {
display: none;
}
.collapsible.collapsed > .ellipsis {
display: inline;
}
/* Estilos para mensaje de error */
.json-error-message {
padding: 15px;
border-radius: 8px;
border: 1px solid #f5c6cb;
background-color: #f8d7da;
color: #721c24;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 14px;
line-height: 1.5;
white-space: pre-wrap;
}
/* Resaltado de sintaxis */
.json-key { color: #d19a66; }
.json-string { color: #98c379; }
.json-number { color: #61afef; }
.json-boolean { color: #c678dd; }
.json-null { color: #abb2bf; }