BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

style.css 24.4 KiB Download Raw
1/* =========================================================
2 RESET & CUSTOM PROPERTIES
3 ========================================================= */
4*,
5*::before,
6*::after {
7 box-sizing: border-box;
8 margin: 0;
9 padding: 0;
10}
11
12:root {
13 --bg: #0f1117;
14 --surface: #1a1d27;
15 --surface2: #21242f;
16 --border: #2e3247;
17 --accent: #5b7fff;
18 --accent-hover: #7b9fff;
19 --text: #e8eaf0;
20 --text-muted: #7880a0;
21 --danger: #e05c6e;
22 --success: #3fcf8e;
23 --radius: 10px;
24 --topbar-h: 56px;
25 --sidebar-w: 300px;
26 --transition: 0.18s ease;
27}
28
29html,
30body {
31 height: 100%;
32 font-family: system-ui, -apple-system, sans-serif;
33}
34
35body {
36 background: var(--bg);
37 color: var(--text);
38 overflow: hidden;
39}
40
41.hidden {
42 display: none !important;
43}
44
45.muted {
46 color: var(--text-muted);
47}
48
49.error {
50 color: var(--danger);
51 font-size: 0.85rem;
52 margin-top: 0.3rem;
53}
54
55/* =========================================================
56 AUTH OVERLAY
57 ========================================================= */
58.overlay {
59 position: fixed;
60 inset: 0;
61 background: var(--bg);
62 display: flex;
63 align-items: center;
64 justify-content: center;
65 z-index: 100;
66}
67
68.auth-card {
69 background: var(--surface);
70 border: 1px solid var(--border);
71 border-radius: var(--radius);
72 padding: 2.5rem 2rem;
73 width: min(420px, 92vw);
74}
75
76.auth-card h1 {
77 font-size: 1.6rem;
78 margin-bottom: 0.5rem;
79}
80
81.auth-subtitle {
82 font-size: 0.88rem;
83 color: var(--text-muted);
84 margin-bottom: 1.2rem;
85}
86
87#auth-form label {
88 display: flex;
89 flex-direction: column;
90 gap: 0.3rem;
91 font-size: 0.85rem;
92 color: var(--text-muted);
93 margin-bottom: 1rem;
94}
95
96#auth-form input {
97 background: var(--bg);
98 border: 1px solid var(--border);
99 border-radius: 6px;
100 padding: 0.55rem 0.75rem;
101 color: var(--text);
102 font-size: 1rem;
103 outline: none;
104 transition: border-color var(--transition);
105}
106
107#auth-form input:focus {
108 border-color: var(--accent);
109}
110
111/* =========================================================
112 BUTTONS
113 ========================================================= */
114button {
115 cursor: pointer;
116 border: none;
117 border-radius: 6px;
118 font-size: 0.9rem;
119 transition: background var(--transition), color var(--transition);
120}
121
122.icon-btn {
123 display: flex;
124 align-items: center;
125 gap: 0.4rem;
126 background: transparent;
127 color: var(--text-muted);
128 padding: 0.4rem 0.7rem;
129 border-radius: 6px;
130 position: relative;
131}
132
133.icon-btn:hover {
134 background: var(--surface2);
135 color: var(--text);
136}
137
138.icon-btn svg {
139 width: 18px;
140 height: 18px;
141}
142
143.topbar-badge {
144 position: absolute;
145 top: -0.25rem;
146 right: -0.3rem;
147 min-width: 1.1rem;
148 height: 1.1rem;
149 padding: 0 0.28rem;
150 border-radius: 999px;
151 background: #d33131;
152 color: #fff;
153 font-size: 0.68rem;
154 font-weight: 700;
155 line-height: 1.1rem;
156 text-align: center;
157 border: 1px solid var(--surface);
158}
159
160button[type="submit"],
161.primary {
162 background: var(--accent);
163 color: #fff;
164 padding: 0.55rem 1.2rem;
165 font-weight: 600;
166 width: 100%;
167 margin-top: 0.5rem;
168}
169
170button[type="submit"]:hover,
171.primary:hover {
172 background: var(--accent-hover);
173}
174
175button.danger {
176 background: var(--surface2);
177 color: var(--danger);
178 padding: 0.55rem 1.2rem;
179 width: 100%;
180 margin-top: 0.5rem;
181}
182
183button.danger:hover {
184 background: var(--border);
185}
186
187button.danger.admin-update-highlight {
188 animation: admin-update-pulse 0.9s ease-in-out 2;
189}
190
191@keyframes admin-update-pulse {
192 0% {
193 box-shadow: 0 0 0 0 rgba(211, 49, 49, 0.55);
194 transform: scale(1);
195 }
196
197 50% {
198 box-shadow: 0 0 0 10px rgba(211, 49, 49, 0);
199 transform: scale(1.02);
200 }
201
202 100% {
203 box-shadow: 0 0 0 0 rgba(211, 49, 49, 0);
204 transform: scale(1);
205 }
206}
207
208/* =========================================================
209 TOP BAR
210 ========================================================= */
211#app {
212 display: flex;
213 flex-direction: column;
214 height: 100vh;
215}
216
217#topbar {
218 height: var(--topbar-h);
219 background: var(--surface);
220 border-bottom: 1px solid var(--border);
221 display: flex;
222 align-items: center;
223 padding: 0 1rem;
224 gap: 0.5rem;
225 flex-shrink: 0;
226}
227
228#breadcrumb-wrap {
229 flex: 1;
230 min-width: 0;
231}
232
233#breadcrumb {
234 display: flex;
235 align-items: center;
236 flex-wrap: wrap;
237 gap: 0.1rem;
238 font-size: 0.9rem;
239 white-space: nowrap;
240 overflow: hidden;
241}
242
243#breadcrumb .crumb {
244 color: var(--text-muted);
245 background: none;
246 padding: 0.2rem 0.35rem;
247 border-radius: 4px;
248 text-decoration: none;
249 cursor: pointer;
250}
251
252#breadcrumb .crumb:hover {
253 color: var(--text);
254 background: var(--surface2);
255}
256
257#breadcrumb .crumb.active {
258 color: var(--text);
259 cursor: default;
260}
261
262#breadcrumb .sep {
263 color: var(--border);
264 user-select: none;
265}
266
267#topbar-actions {
268 display: flex;
269 align-items: center;
270 gap: 0.25rem;
271 flex-shrink: 0;
272}
273
274.top-search {
275 display: flex;
276 align-items: center;
277 gap: 0.35rem;
278 margin-right: 0.2rem;
279}
280
281.top-search input {
282 width: min(34vw, 300px);
283 min-width: 150px;
284 background: var(--bg);
285 border: 1px solid var(--border);
286 border-radius: 6px;
287 color: var(--text);
288 font-size: 0.88rem;
289 padding: 0.42rem 0.6rem;
290 outline: none;
291}
292
293.top-search input:focus {
294 border-color: var(--accent);
295}
296
297#btn-search {
298 padding: 0.36rem 0.62rem;
299}
300
301.global-favicon-preview {
302 width: 18px;
303 height: 18px;
304 display: inline-flex;
305 align-items: center;
306 justify-content: center;
307 border-radius: 4px;
308 overflow: hidden;
309 color: #fff;
310}
311
312.global-favicon-preview svg,
313.global-favicon-preview img {
314 width: 100%;
315 height: 100%;
316 display: block;
317 object-fit: cover;
318}
319
320.icon-btn.icon-only {
321 width: 2rem;
322 height: 2rem;
323 padding: 0;
324 justify-content: center;
325}
326
327/* =========================================================
328 MAIN + SIDEBAR LAYOUT
329 ========================================================= */
330#main-content {
331 flex: 1;
332 overflow-y: auto;
333 padding: 1.25rem;
334 position: relative;
335}
336
337#folder-stats {
338 margin-bottom: 0.8rem;
339 font-size: 0.85rem;
340}
341
342/* Drop overlay */
343#drop-overlay {
344 position: absolute;
345 inset: 0;
346 background: rgba(91, 127, 255, 0.12);
347 border: 3px dashed var(--accent);
348 border-radius: var(--radius);
349 display: flex;
350 align-items: center;
351 justify-content: center;
352 z-index: 10;
353 font-size: 1.4rem;
354 color: var(--accent);
355 pointer-events: none;
356}
357
358/* When sidebar is open, shrink main content */
359#app.sidebar-open #main-content {
360 margin-right: var(--sidebar-w);
361}
362
363/* =========================================================
364 FILE GRID
365 ========================================================= */
366#file-grid {
367 display: grid;
368 grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
369 gap: 0.75rem;
370}
371
372.file-item {
373 display: flex;
374 flex-direction: column;
375 align-items: center;
376 padding: 0.9rem 0.5rem 0.7rem;
377 border-radius: var(--radius);
378 border: 1px solid transparent;
379 cursor: pointer;
380 user-select: none;
381 transition: background var(--transition), border-color var(--transition);
382 text-align: center;
383 gap: 0.4rem;
384 position: relative;
385 touch-action: manipulation;
386}
387
388.file-item:hover {
389 background: var(--surface);
390 border-color: var(--border);
391}
392
393.file-item.file-item--preview-placeholder {
394 visibility: hidden;
395 pointer-events: none;
396}
397
398.file-item.selected {
399 background: var(--surface2);
400 border-color: var(--accent);
401}
402
403.file-item .icon {
404 width: 52px;
405 height: 52px;
406 display: flex;
407 align-items: center;
408 justify-content: center;
409 position: relative;
410}
411
412.file-item .icon.thumb-pending::after {
413 content: '';
414 position: absolute;
415 width: 14px;
416 height: 14px;
417 left: 50%;
418 top: 50%;
419 border: 2px solid rgba(232, 234, 240, 0.35);
420 border-top-color: var(--accent);
421 border-radius: 50%;
422 animation: icon-thumb-spin 0.75s linear infinite;
423 background: rgba(15, 17, 23, 0.85);
424}
425
426@keyframes icon-thumb-spin {
427 from {
428 transform: translate(-50%, -50%) rotate(0deg);
429 }
430
431 to {
432 transform: translate(-50%, -50%) rotate(360deg);
433 }
434}
435
436.file-item .icon svg {
437 width: 100%;
438 height: 100%;
439}
440
441.file-item .icon .watched-overlay {
442 position: absolute;
443 left: 50%;
444 top: 50%;
445 width: 28px;
446 height: 28px;
447 transform: translate(-50%, -50%);
448 display: flex;
449 align-items: center;
450 justify-content: center;
451 pointer-events: none;
452 border-radius: 50%;
453 background: rgba(15, 17, 23, 0.45);
454}
455
456.file-item .icon .watched-overlay--partway {
457 width: 16.8px;
458 height: 16.8px;
459}
460
461.file-item .icon .watched-overlay--partway path {
462 fill: #8f98a5;
463}
464
465.file-item .icon .watched-overlay-svg {
466 width: 100%;
467 height: 100%;
468}
469
470.file-item .name {
471 font-size: 0.8rem;
472 word-break: break-all;
473 max-width: 100%;
474 line-height: 1.3;
475 color: var(--text);
476}
477
478/* =========================================================
479 SIDEBAR
480 ========================================================= */
481#sidebar {
482 position: fixed;
483 top: var(--topbar-h);
484 right: 0;
485 bottom: 0;
486 width: var(--sidebar-w);
487 background: var(--surface);
488 border-left: 1px solid var(--border);
489 padding: 1.25rem;
490 overflow-y: auto;
491 z-index: 20;
492 display: flex;
493 flex-direction: column;
494 gap: 0.75rem;
495}
496
497#sidebar-close {
498 display: none;
499 align-items: center;
500 justify-content: center;
501 width: 1.7rem;
502 height: 1.7rem;
503 border: 1px solid transparent;
504 border-radius: 999px;
505 background: transparent;
506 color: var(--text-muted);
507 font-size: 1rem;
508 line-height: 1;
509}
510
511#sidebar-close:hover {
512 background: var(--surface2);
513 color: var(--text);
514}
515
516#sidebar-icon {
517 display: flex;
518 justify-content: center;
519}
520
521#sidebar-icon svg {
522 width: 64px;
523 height: 64px;
524}
525
526#sidebar-name {
527 font-size: 1rem;
528 word-break: break-all;
529 text-align: center;
530}
531
532#sidebar-meta {
533 display: grid;
534 grid-template-columns: auto 1fr;
535 gap: 0.3rem 0.75rem;
536}
537
538#sidebar-meta dt {
539 color: var(--text-muted);
540 font-size: 0.8rem;
541 font-weight: 600;
542}
543
544#sidebar-meta dd {
545 font-size: 0.8rem;
546 word-break: break-all;
547}
548
549#sidebar-meta .root-access-list {
550 margin: 0;
551 padding-left: 1rem;
552}
553
554#sidebar-meta .root-access-list li {
555 margin: 0.12rem 0;
556}
557
558#sidebar-actions {
559 display: flex;
560 flex-direction: column;
561 gap: 0.5rem;
562 margin-top: 0.5rem;
563}
564
565#sidebar-actions button {
566 background: var(--surface2);
567 color: var(--text);
568 padding: 0.5rem 0.8rem;
569 text-align: left;
570}
571
572#sidebar-actions button:hover {
573 background: var(--border);
574}
575
576#sidebar-actions button.danger {
577 color: var(--danger);
578}
579
580/* ─── Duplicates panel ─────────────────────────────────── */
581#sidebar-duplicates {
582 margin-top: 1rem;
583 border-top: 1px solid var(--border);
584 padding-top: 0.75rem;
585}
586
587.sidebar-duplicates-heading {
588 font-size: 0.75rem;
589 font-weight: 600;
590 text-transform: uppercase;
591 letter-spacing: 0.05em;
592 color: var(--text-muted, #888);
593 margin: 0 0 0.4rem;
594}
595
596.sidebar-duplicates-list {
597 list-style: none;
598 margin: 0;
599 padding: 0;
600 display: flex;
601 flex-direction: column;
602 gap: 0.25rem;
603}
604
605.sidebar-duplicate-entry {
606 display: block;
607 width: 100%;
608 background: var(--surface2);
609 color: var(--text);
610 padding: 0.35rem 0.6rem;
611 text-align: left;
612 font-size: 0.8rem;
613 white-space: nowrap;
614 overflow: hidden;
615 text-overflow: ellipsis;
616 border-radius: var(--radius);
617 cursor: pointer;
618}
619
620.sidebar-duplicate-entry:hover {
621 background: var(--border);
622}
623
624.admin-size-feedback {
625 font-size: 0.82rem;
626 margin: 0.25rem 0 0.5rem;
627 padding: 0.25rem 0.5rem;
628 border-radius: var(--radius);
629}
630
631.admin-size-feedback.ok {
632 color: var(--accent);
633}
634
635.admin-size-feedback.err {
636 color: #e55;
637}
638
639/* =========================================================
640 MODALS
641 ========================================================= */
642.modal-overlay {
643 position: fixed;
644 inset: 0;
645 background: rgba(0, 0, 0, 0.65);
646 display: flex;
647 align-items: center;
648 justify-content: center;
649 z-index: 11000;
650}
651
652#file-conflict-modal,
653#overwrite-modal {
654 z-index: 11150;
655}
656
657.modal {
658 background: var(--surface);
659 border: 1px solid var(--border);
660 border-radius: var(--radius);
661 padding: 2rem;
662 width: min(560px, 94vw);
663 max-height: 90vh;
664 overflow-y: auto;
665 position: relative;
666}
667
668.modal.small {
669 width: min(340px, 94vw);
670}
671
672.modal h2 {
673 font-size: 1.3rem;
674 margin-bottom: 1.25rem;
675}
676
677.modal h3 {
678 font-size: 1rem;
679 color: var(--text-muted);
680 margin: 1rem 0 0.5rem;
681}
682
683.modal-close {
684 position: absolute;
685 top: 0.75rem;
686 right: 0.75rem;
687 background: none;
688 color: var(--text-muted);
689 font-size: 1.1rem;
690 padding: 0.25rem 0.5rem;
691}
692
693.modal-close:hover {
694 color: var(--text);
695}
696
697/* =========================================================
698 FOLDER ICON PICKER
699 ========================================================= */
700.folder-icon-modal {
701 width: min(680px, 94vw);
702 max-height: 90vh;
703 display: flex;
704 flex-direction: column;
705 gap: 0.75rem;
706 overflow: hidden;
707}
708
709.folder-icon-grid {
710 display: grid;
711 grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
712 gap: 0.5rem;
713 max-height: 50vh;
714 overflow-y: auto;
715 padding: 0.25rem;
716 background: var(--bg);
717 border: 1px solid var(--border);
718 border-radius: var(--radius);
719}
720
721.folder-icon-filter {
722 width: 100%;
723 background: var(--bg);
724 border: 1px solid var(--border);
725 border-radius: 6px;
726 color: var(--text);
727 font-size: 0.9rem;
728 padding: 0.48rem 0.68rem;
729 outline: none;
730}
731
732.folder-icon-filter:focus {
733 border-color: var(--accent);
734}
735
736.folder-icon-cell {
737 display: flex;
738 flex-direction: column;
739 align-items: center;
740 gap: 0.3rem;
741 padding: 0.4rem;
742 border-radius: var(--radius);
743 border: 2px solid transparent;
744 cursor: pointer;
745 transition: border-color var(--transition), background var(--transition);
746}
747
748.folder-icon-cell:hover {
749 background: var(--surface2);
750}
751
752.folder-icon-cell.selected {
753 border-color: var(--accent);
754 background: rgba(91, 127, 255, 0.12);
755}
756
757.folder-icon-thumb {
758 width: 60px;
759 height: 60px;
760 object-fit: cover;
761 border-radius: 4px;
762 background: var(--surface2);
763}
764
765.folder-icon-label {
766 font-size: 0.68rem;
767 color: var(--text-muted);
768 word-break: break-all;
769 text-align: center;
770 max-width: 72px;
771 overflow: hidden;
772 display: -webkit-box;
773 -webkit-line-clamp: 2;
774 -webkit-box-orient: vertical;
775}
776
777.vjs-text-track-cue>div {
778 background: transparent !important;
779 text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black,
780 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
781}
782
783/* Admin path list */
784.path-row {
785 display: flex;
786 align-items: center;
787 gap: 0.5rem;
788 padding: 0.4rem 0;
789 border-bottom: 1px solid var(--border);
790 font-size: 0.88rem;
791}
792
793.path-row span {
794 flex: 1;
795 word-break: break-all;
796}
797
798.path-row button {
799 background: none;
800 color: var(--danger);
801 padding: 0.2rem 0.5rem;
802}
803
804.path-add-row {
805 display: flex;
806 gap: 0.5rem;
807 margin: 0.5rem 0;
808}
809
810.path-add-row input {
811 flex: 1;
812 background: var(--bg);
813 border: 1px solid var(--border);
814 border-radius: 6px;
815 padding: 0.45rem 0.7rem;
816 color: var(--text);
817 font-size: 0.9rem;
818 outline: none;
819}
820
821.path-add-row input:focus {
822 border-color: var(--accent);
823}
824
825.path-add-row button {
826 background: var(--surface2);
827 color: var(--text);
828 padding: 0.45rem 0.9rem;
829}
830
831.path-add-row button:hover {
832 background: var(--border);
833}
834
835.admin-favicon-row {
836 display: flex;
837 align-items: center;
838 justify-content: space-between;
839 margin: 0.35rem 0 0.6rem;
840 font-size: 0.88rem;
841 color: var(--text-muted);
842}
843
844.admin-favicon-row .icon-btn {
845 color: var(--text);
846 background: var(--surface2);
847}
848
849.admin-favicon-row .icon-btn:hover {
850 background: var(--border);
851}
852
853/* User list */
854.user-row {
855 display: flex;
856 align-items: center;
857 gap: 0.6rem;
858 padding: 0.5rem 0;
859 border-bottom: 1px solid var(--border);
860}
861
862.user-row .user-name {
863 flex: 1;
864 font-weight: 600;
865 font-size: 0.9rem;
866}
867
868.user-row .user-admin-badge {
869 font-size: 0.72rem;
870 background: var(--accent);
871 color: #fff;
872 border-radius: 4px;
873 padding: 0.1rem 0.4rem;
874}
875
876.user-row button {
877 background: none;
878 color: var(--text-muted);
879 padding: 0.2rem 0.5rem;
880 font-size: 0.85rem;
881}
882
883.user-row button:hover {
884 color: var(--text);
885}
886
887.user-row button.danger {
888 color: var(--danger);
889}
890
891/* User form permissions */
892#user-permissions {
893 margin-top: 0.75rem;
894}
895
896#user-permissions h4 {
897 font-size: 0.85rem;
898 color: var(--text-muted);
899 margin-bottom: 0.4rem;
900}
901
902.perm-row {
903 display: flex;
904 align-items: center;
905 gap: 0.75rem;
906 flex-wrap: wrap;
907 font-size: 0.85rem;
908 margin-bottom: 0.4rem;
909}
910
911.perm-row .perm-label {
912 min-width: 130px;
913 color: var(--text);
914}
915
916.checkbox-label {
917 display: flex;
918 align-items: center;
919 gap: 0.5rem;
920 font-size: 0.9rem;
921 margin-bottom: 0.5rem;
922}
923
924.checkbox-label input[type="checkbox"] {
925 width: 16px;
926 height: 16px;
927 accent-color: var(--accent);
928}
929
930/* Form labels in modals */
931.modal form label {
932 display: flex;
933 flex-direction: column;
934 gap: 0.3rem;
935 font-size: 0.85rem;
936 color: var(--text-muted);
937 margin-bottom: 0.9rem;
938}
939
940.modal form input[type="text"],
941.modal form input[type="password"] {
942 background: var(--bg);
943 border: 1px solid var(--border);
944 border-radius: 6px;
945 padding: 0.5rem 0.75rem;
946 color: var(--text);
947 font-size: 0.95rem;
948 outline: none;
949 transition: border-color var(--transition);
950}
951
952.modal form input:focus {
953 border-color: var(--accent);
954}
955
956/* Admin user-folder controls use the same visual language as modal forms. */
957#admin-userfolder-section label {
958 display: flex;
959 flex-direction: column;
960 gap: 0.3rem;
961 font-size: 0.85rem;
962 color: var(--text-muted);
963 margin-bottom: 0.9rem;
964}
965
966#admin-userfolder-section input[type="text"] {
967 background: var(--bg);
968 border: 1px solid var(--border);
969 border-radius: 6px;
970 padding: 0.5rem 0.75rem;
971 color: var(--text);
972 font-size: 0.95rem;
973 outline: none;
974 transition: border-color var(--transition);
975}
976
977#admin-userfolder-section input[type="text"]:focus {
978 border-color: var(--accent);
979}
980
981/* =========================================================
982 FILE PREVIEW — SHARED MEDIA STYLES
983 ========================================================= */
984.preview-media {
985 max-width: 100%;
986 max-height: 100%;
987 width: auto;
988 height: auto;
989 object-fit: contain;
990}
991
992.preview-frame {
993 width: 100%;
994 height: 100%;
995 border: none;
996 border-radius: 8px;
997 background: #fff;
998}
999
1000.preview-audio {
1001 width: min(640px, 95%);
1002}
1003
1004.preview-model-wrap {
1005 width: 100%;
1006 height: 100%;
1007 min-height: 240px;
1008 border: 1px solid var(--border);
1009 border-radius: 8px;
1010 background: #0d111a;
1011 display: flex;
1012 flex-direction: column;
1013 align-items: stretch;
1014 justify-content: stretch;
1015 overflow: hidden;
1016}
1017
1018.preview-model-canvas {
1019 flex: 1 1 auto;
1020 width: 100%;
1021 min-height: 180px;
1022 display: block;
1023 cursor: grab;
1024}
1025
1026.preview-model-canvas:active {
1027 cursor: grabbing;
1028}
1029
1030.preview-model-hint {
1031 margin: 0;
1032 padding: 0.45rem 0.7rem;
1033 border-top: 1px solid rgba(120, 128, 160, 0.35);
1034 color: #b8c4e8;
1035 font-size: 0.78rem;
1036 text-align: center;
1037}
1038
1039.preview-text {
1040 width: 100%;
1041 min-height: 100%;
1042 color: #dce4ff;
1043 background: #0d111a;
1044 border: 1px solid var(--border);
1045 border-radius: 8px;
1046 padding: 0.9rem;
1047 font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1048 overflow: auto;
1049 white-space: pre;
1050 text-align: left;
1051}
1052
1053.preview-code .tok-comment {
1054 color: #6f7f9a;
1055}
1056
1057.preview-code .tok-string {
1058 color: #9ee37d;
1059}
1060
1061.preview-code .tok-number {
1062 color: #f8c46a;
1063}
1064
1065.preview-code .tok-keyword {
1066 color: #8bb4ff;
1067 font-weight: 600;
1068}
1069
1070.preview-code .tok-key {
1071 color: #59c8ff;
1072}
1073
1074.preview-unsupported {
1075 color: var(--text-muted);
1076 font-size: 0.95rem;
1077 max-width: 56ch;
1078 text-align: center;
1079}
1080
1081.preview-footer {
1082 border-top: 1px solid var(--border);
1083 padding: 0.8rem 1rem;
1084 display: flex;
1085 justify-content: flex-end;
1086}
1087
1088.preview-footer .primary {
1089 width: auto;
1090 margin-top: 0;
1091 min-width: 8rem;
1092}
1093
1094
1095
1096/* =========================================================
1097
1098.toast-msg {
1099 background: var(--surface2);
1100 border: 1px solid var(--border);
1101 border-radius: 8px;
1102 padding: 0.6rem 1.25rem;
1103 font-size: 0.9rem;
1104 animation: slideup 0.25s ease;
1105}
1106
1107.toast-msg.err {
1108 border-color: var(--danger);
1109 color: var(--danger);
1110}
1111
1112.toast-msg.ok {
1113 border-color: var(--success);
1114 color: var(--success);
1115}
1116
1117@keyframes slideup {
1118 from {
1119 opacity: 0;
1120 transform: translateY(12px);
1121 }
1122
1123 to {
1124 opacity: 1;
1125 transform: translateY(0);
1126 }
1127}
1128
1129/* =========================================================
1130 UPLOAD PROGRESS
1131 ========================================================= */
1132.upload-bar-wrap {
1133 position: fixed;
1134 bottom: 0;
1135 left: 0;
1136 right: 0;
1137 background: var(--surface);
1138 border-top: 1px solid var(--border);
1139 padding: 0.5rem 1rem;
1140 z-index: 80;
1141 font-size: 0.85rem;
1142}
1143
1144.upload-bar-track {
1145 height: 6px;
1146 background: var(--border);
1147 border-radius: 3px;
1148 margin-top: 0.3rem;
1149}
1150
1151.upload-bar-fill {
1152 height: 100%;
1153 background: var(--accent);
1154 border-radius: 3px;
1155 transition: width 0.2s linear;
1156}
1157
1158/* =========================================================
1159 RESPONSIVE — narrow screens
1160 ========================================================= */
1161@media (max-width: 600px) {
1162 #topbar {
1163 height: auto;
1164 min-height: var(--topbar-h);
1165 padding: 0.5rem 0.6rem;
1166 align-items: flex-start;
1167 flex-direction: column;
1168 }
1169
1170 #breadcrumb-wrap {
1171 width: 100%;
1172 }
1173
1174 #topbar-actions {
1175 width: 100%;
1176 flex-wrap: wrap;
1177 gap: 0.15rem;
1178 }
1179
1180 .top-search {
1181 order: -1;
1182 width: 100%;
1183 margin-right: 0;
1184 }
1185
1186 .top-search input {
1187 flex: 1;
1188 min-width: 0;
1189 width: auto;
1190 }
1191
1192 .icon-btn {
1193 padding: 0.4rem 0.55rem;
1194 font-size: 0.82rem;
1195 }
1196
1197 #main-content {
1198 padding: 0.9rem;
1199 }
1200
1201 #file-grid {
1202 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
1203 }
1204
1205 #app.sidebar-open #main-content {
1206 margin-right: 0;
1207 }
1208
1209 #sidebar {
1210 top: auto;
1211 right: 0;
1212 bottom: 0;
1213 left: 0;
1214 height: auto;
1215 max-height: min(68vh, calc(100vh - 0.5rem));
1216 padding: 0.9rem 0.9rem 1rem;
1217 border-left: none;
1218 border-top: 1px solid var(--border);
1219 width: 100%;
1220 border-radius: 14px 14px 0 0;
1221 box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.34);
1222 gap: 0.55rem;
1223 }
1224
1225 #sidebar-close {
1226 display: inline-flex;
1227 position: absolute;
1228 top: 0.45rem;
1229 right: 0.45rem;
1230 border-color: var(--border);
1231 background: var(--surface2);
1232 }
1233
1234 #sidebar-name {
1235 padding-right: 2rem;
1236 }
1237
1238 #sidebar-icon svg {
1239 width: 54px;
1240 height: 54px;
1241 }
1242
1243 #sidebar-actions {
1244 margin-top: 0.2rem;
1245 }
1246
1247 .modal {
1248 padding: 1.25rem;
1249 }
1250
1251 .preview-overlay {
1252 padding: 0.8rem;
1253 }
1254
1255 .preview-sheet {
1256 width: 100%;
1257 height: 92vh;
1258 }
1259
1260 .preview-fold {
1261 width: 54px;
1262 height: 54px;
1263 }
1264
1265 .preview-close {
1266 top: 5px;
1267 right: 5px;
1268 }
1269}
1270
1271/* =========================================================
1272 DIALOG MODALS (confirm / prompt / overwrite)
1273 ========================================================= */
1274.dialog-message {
1275 color: var(--text-muted);
1276 font-size: 0.93rem;
1277 margin: 0 0 1.5rem;
1278 line-height: 1.5;
1279 word-break: break-word;
1280}
1281
1282.dialog-actions {
1283 display: flex;
1284 gap: 0.6rem;
1285 justify-content: flex-end;
1286 flex-wrap: wrap;
1287}
1288
1289.dialog-actions--overwrite {
1290 justify-content: space-between;
1291}
1292
1293.dialog-actions button {
1294 min-width: 5rem;
1295 background: var(--surface2);
1296 color: var(--text);
1297 padding: 0.5rem 1rem;
1298}
1299
1300.dialog-actions button:hover {
1301 background: var(--border);
1302}
1303
1304/* Override .primary full-width inside dialog rows */
1305.dialog-actions button.primary {
1306 width: auto;
1307 margin-top: 0;
1308}