/
app.scss
467 lines (395 loc) · 12.8 KB
/
app.scss
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
@tailwind base;
@tailwind components;
@tailwind utilities;
@import './loader.scss';
html.dark {
color-scheme: dark
}
.log-item {
@apply bg-white dark:bg-gray-800 transition duration-200 cursor-pointer;
&.success {
&:hover > td, &.active > td {
@apply bg-emerald-50 dark:bg-emerald-800 dark:bg-opacity-40;
}
.log-level-indicator {
@apply bg-emerald-700 dark:bg-emerald-500;
}
.log-level {
@apply text-emerald-700 dark:text-emerald-500;
}
}
&.info {
&:hover > td, &.active > td {
@apply bg-sky-50 dark:bg-sky-800 dark:bg-opacity-40;
}
.log-level-indicator {
@apply bg-sky-700 dark:bg-sky-500;
}
.log-level {
@apply text-sky-700 dark:text-sky-500;
}
}
&.warning {
&:hover > td, &.active > td {
@apply bg-amber-50 dark:bg-amber-800 dark:bg-opacity-40;
}
.log-level-indicator {
@apply bg-amber-700 dark:bg-amber-400;
}
.log-level {
@apply text-amber-700 dark:text-amber-400;
}
}
&.danger {
&:hover > td, &.active > td {
@apply bg-rose-50 dark:bg-rose-800 dark:bg-opacity-40;
}
.log-level-indicator {
@apply bg-rose-700 dark:bg-rose-400;
}
.log-level {
@apply text-rose-700 dark:text-rose-400;
}
}
&.none {
&:hover > td, &.active > td {
@apply bg-gray-50 dark:bg-gray-800 dark:bg-opacity-40;
}
.log-level-indicator {
@apply bg-gray-700 dark:bg-gray-400;
}
.log-level {
@apply text-gray-700 dark:text-gray-400;
}
}
}
/** Level Badges **/
.badge {
@apply inline-flex items-center text-sm cursor-pointer px-3 py-1 rounded-md mr-2 mt-1 transition duration-200;
&.success {
@apply border border-emerald-200 bg-emerald-50 text-gray-600
dark:border-emerald-800 dark:bg-emerald-900 dark:bg-opacity-40 dark:text-gray-400;
&:hover {
@apply bg-emerald-100
dark:bg-emerald-900 dark:bg-opacity-75;
}
.checkmark {
@apply border-emerald-200
dark:border-emerald-800;
}
&.active {
@apply border-emerald-700 bg-emerald-600 text-white
dark:border-emerald-600 dark:bg-emerald-700;
&:hover {
@apply bg-emerald-500
dark:bg-emerald-800;
}
.checkmark {
@apply border-emerald-600
dark:border-emerald-700 dark:bg-emerald-100;
}
.checkmark > svg {
@apply text-emerald-600
dark:text-emerald-700;
}
}
}
&.info {
@apply border border-sky-200 bg-sky-50 text-gray-600
dark:border-sky-800 dark:bg-sky-900 dark:bg-opacity-40 dark:text-gray-400;
&:hover {
@apply bg-sky-100
dark:bg-sky-900 dark:bg-opacity-75;
}
.checkmark {
@apply border-sky-200
dark:border-sky-800;
}
&.active {
@apply border-sky-700 bg-sky-600 text-white
dark:border-sky-600 dark:bg-sky-700;
&:hover {
@apply bg-sky-500
dark:bg-sky-800;
}
.checkmark {
@apply border-sky-600
dark:border-sky-700 dark:bg-sky-100;
}
.checkmark > svg {
@apply text-sky-600
dark:text-sky-700;
}
}
}
&.warning {
@apply border border-amber-200 bg-amber-50 text-gray-600
dark:border-amber-800 dark:bg-amber-900 dark:bg-opacity-40 dark:text-gray-400;
&:hover {
@apply bg-amber-100
dark:bg-amber-900 dark:bg-opacity-75;
}
& .checkmark {
@apply border-amber-200
dark:border-amber-800;
}
&.active {
@apply border-amber-700 bg-amber-600 text-white
dark:border-amber-600 dark:bg-amber-700;
&:hover {
@apply bg-amber-500
dark:bg-amber-800;
}
& .checkmark {
@apply border-amber-600
dark:border-amber-700 dark:bg-amber-100;
}
& .checkmark > svg {
@apply text-amber-600
dark:text-amber-700;
}
}
}
&.danger {
@apply border border-rose-200 bg-rose-50 text-gray-600
dark:border-rose-800 dark:bg-rose-900 dark:bg-opacity-40 dark:text-gray-400;
&:hover {
@apply bg-rose-100
dark:bg-rose-900 dark:bg-opacity-75;
}
& .checkmark {
@apply border-rose-200
dark:border-rose-800;
}
&.active {
@apply border-rose-700 bg-rose-600 text-white
dark:border-rose-600 dark:bg-rose-700;
&:hover {
@apply bg-rose-500
dark:bg-rose-800;
}
& .checkmark {
@apply border-rose-600
dark:border-rose-700 dark:bg-rose-100;
}
& .checkmark > svg {
@apply text-rose-600
dark:text-rose-700;
}
}
}
&.none {
@apply border border-gray-200 bg-gray-50 text-gray-600
dark:border-gray-800 dark:bg-gray-900 dark:bg-opacity-40 dark:text-gray-400;
&:hover {
@apply bg-gray-100
dark:bg-gray-900 dark:bg-opacity-75;
}
& .checkmark {
@apply border-gray-200
dark:border-gray-800;
}
&.active {
@apply border-gray-700 bg-gray-600 text-white
dark:border-gray-600 dark:bg-gray-700;
&:hover {
@apply bg-gray-500
dark:bg-gray-800;
}
& .checkmark {
@apply border-gray-600
dark:border-gray-700 dark:bg-gray-100;
}
& .checkmark > svg {
@apply text-gray-600
dark:text-gray-700;
}
}
}
}
.log-list {
table > thead th {
@apply sticky top-0 z-10 bg-gray-100 dark:bg-gray-900 py-2 px-2 text-left text-sm font-semibold text-gray-500 dark:text-gray-400;
}
.log-group {
@apply bg-white dark:bg-gray-800 dark:text-gray-200 relative;
.log-item > td {
@apply border-t border-gray-200 dark:border-gray-700 px-2 py-2 text-sm;
}
.log-item > td.log-level-icon {
@apply whitespace-nowrap border-t border-gray-200 dark:border-gray-700 py-2 pl-4 pr-2 sm:pl-6 lg:pl-8;
& > svg {
@apply opacity-75 h-5 w-5;
}
}
&.first {
.log-item > td,
.log-item > td.log-level-icon {
@apply border-t-transparent;
}
}
.log-stack {
@apply px-4 py-2 sm:px-6 lg:px-8 border-gray-200 dark:border-gray-700 text-xs whitespace-pre-wrap break-all;
}
.log-link {
@apply flex items-center w-full;
min-width: 68px;
& > svg {
@apply h-4 w-4 ml-1 transition duration-200;
}
}
code, mark {
@apply bg-amber-200 text-gray-900 px-1 py-0.5 rounded
dark:bg-yellow-800 dark:text-white;
}
}
}
.pagination {
@apply mt-2 px-4 w-full flex items-center justify-center sm:px-0;
.previous {
@apply -mt-px w-0 flex-1 flex justify-end;
button {
@apply border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm font-medium text-gray-500 dark:text-gray-400;
&:hover {
@apply text-gray-700 border-gray-300
dark:text-gray-300 border-gray-400;
}
svg {
@apply mx-3 h-5 w-5 text-current;
}
}
}
.next {
@apply -mt-px w-0 flex-1 flex justify-start;
button {
@apply border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm font-medium text-gray-500 dark:text-gray-400;
&:hover {
@apply text-gray-700 border-gray-300
dark:text-gray-300 border-gray-400;
}
svg {
@apply mx-3 h-5 w-5 text-current;
}
}
}
.pages {
@apply hidden md:-mt-px md:flex;
span {
@apply border-transparent text-gray-500 dark:text-gray-400 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium;
}
button {
@apply border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium;
}
}
}
.search {
input {
@apply border rounded-md pl-3 pr-10 py-2 text-sm w-full dark:bg-gray-800 border-gray-300 dark:border-gray-600 dark:text-gray-100 ring-2 ring-transparent transition duration-200;
&:focus {
@apply outline-none ring-emerald-500 dark:ring-emerald-700 border-transparent;
}
}
&.has-error input {
@apply border-red-600;
&:focus {
@apply outline-red-500 border-transparent;
}
}
.clear-search {
@apply absolute top-0 right-0 p-1.5;
button {
@apply text-gray-500 dark:text-gray-400 p-1;
&:hover { @apply text-gray-600 dark:text-gray-300; }
& > svg { @apply h-5 w-5; }
}
}
}
.dropdown {
@apply absolute top-full z-40 right-1 -mt-1 overflow-hidden text-gray-900 dark:text-gray-200 rounded-md bg-white border-gray-200 dark:bg-gray-800 border dark:border-gray-700 shadow-md;
transform-origin: top right !important;
&.up {
transform-origin: bottom right !important;
}
&.up {
@apply top-auto bottom-full mt-0 -mb-1;
}
button, a {
@apply block flex items-center w-full px-4 py-2 text-left text-sm outline-emerald-500 dark:outline-emerald-800;
& > svg {
@apply w-4 h-4 mr-3 text-gray-400;
&.spin {
// Spinner is slightly dimmer by default, especially because it's constantly spinning
// and it's also a little smaller in size
@apply text-gray-600;
}
}
}
button:hover, a:hover {
@apply bg-gray-50 dark:bg-gray-700;
}
.divider {
@apply w-full border-t my-2 dark:border-t-gray-700;
}
.label {
@apply text-xs font-semibold text-gray-400 ml-4 my-1;
}
}
// Dark border: border-emerald-800
// Dark border (hover): border-emerald-700
.file-list {
@apply relative h-full overflow-y-auto pt-6 pb-6 pr-4;
.file-item-container,
.folder-item-container {
@apply relative mt-2 text-gray-800 dark:text-gray-200 rounded-md bg-white dark:bg-gray-800;
.file-item {
@apply relative flex justify-between items-center pl-4 pr-10 py-2 rounded-md border cursor-pointer border-transparent transition duration-100;
.file-icon {
@apply mr-2 text-gray-400 dark:text-gray-500;
&>svg {
@apply w-4 h-4;
}
}
.file-name {
@apply text-sm mr-3 w-full;
}
.file-size {
@apply text-xs text-gray-500 dark:text-gray-300 dark:opacity-90 whitespace-nowrap;
}
}
&.active .file-item {
@apply border-emerald-500 dark:border-emerald-900 bg-emerald-50 dark:bg-emerald-900 dark:bg-opacity-40;
}
&:hover .file-item {
@apply border-emerald-600 dark:border-emerald-800;
}
.file-dropdown-toggle {
@apply absolute top-0 right-0 bottom-0 w-8 flex rounded-r-md items-center justify-center border-l border-transparent text-gray-500 dark:text-gray-400 outline-emerald-500 dark:outline-emerald-700 transition duration-200;
&:hover {
@apply border-emerald-600 bg-emerald-50 dark:border-emerald-800 dark:bg-emerald-900;
}
& > svg {
@apply h-4 w-4;
}
}
}
.folder-container {
.folder-item-container {
&.sticky {
position: -webkit-sticky;
position: sticky;
}
& > .file-item {
@apply pr-4;
}
}
}
}
.menu-button {
@apply relative p-2 text-gray-400 rounded-md outline-emerald-500 cursor-pointer transition duration-200;
&:hover {
@apply text-gray-500 dark:text-gray-300;
}
&:focus {
@apply outline-none ring-2 ring-emerald-500 dark:ring-emerald-700;
}
}