BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

fix transfer bar
timfa Tim Falken · pushed by timfa · 5 months ago
d5e89988 History
style.css 33.3 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:disabled,
188input:disabled,
189select:disabled {
190 opacity: 0.55;
191 cursor: not-allowed;
192}
193
194button.danger.admin-update-highlight {
195 animation: admin-update-pulse 0.9s ease-in-out 2;
196}
197
198@keyframes admin-update-pulse {
199 0% {
200 box-shadow: 0 0 0 0 rgba(211, 49, 49, 0.55);
201 transform: scale(1);
202 }
203
204 50% {
205 box-shadow: 0 0 0 10px rgba(211, 49, 49, 0);
206 transform: scale(1.02);
207 }
208
209 100% {
210 box-shadow: 0 0 0 0 rgba(211, 49, 49, 0);
211 transform: scale(1);
212 }
213}
214
215/* =========================================================
216 TOP BAR
217 ========================================================= */
218#app {
219 display: flex;
220 flex-direction: column;
221 height: 100vh;
222}
223
224#topbar {
225 height: var(--topbar-h);
226 background: var(--surface);
227 border-bottom: 1px solid var(--border);
228 display: flex;
229 align-items: center;
230 padding: 0 1rem;
231 gap: 0.5rem;
232 flex-shrink: 0;
233}
234
235#topbar>#btn-refresh {
236 flex: 0 0 auto;
237}
238
239#breadcrumb-wrap {
240 flex: 1;
241 min-width: 0;
242}
243
244#breadcrumb {
245 display: flex;
246 align-items: center;
247 flex-wrap: wrap;
248 gap: 0.1rem;
249 font-size: 0.9rem;
250 white-space: nowrap;
251 overflow: hidden;
252}
253
254#breadcrumb .crumb {
255 color: var(--text-muted);
256 background: none;
257 padding: 0.2rem 0.35rem;
258 border-radius: 4px;
259 text-decoration: none;
260 cursor: pointer;
261}
262
263#breadcrumb .crumb:hover {
264 color: var(--text);
265 background: var(--surface2);
266}
267
268#breadcrumb .crumb.active {
269 color: var(--text);
270 cursor: default;
271}
272
273#breadcrumb .sep {
274 color: var(--border);
275 user-select: none;
276}
277
278#topbar-actions {
279 display: flex;
280 align-items: center;
281 gap: 0.25rem;
282 flex-shrink: 0;
283 position: relative;
284}
285
286.topbar-dropdown {
287 position: relative;
288}
289
290.topbar-dropdown-menu {
291 position: absolute;
292 top: calc(100% + 0.4rem);
293 left: 0;
294 min-width: 180px;
295 background: var(--surface);
296 border: 1px solid var(--border);
297 border-radius: var(--radius);
298 box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
299 padding: 0.35rem;
300 z-index: 140;
301 display: none;
302}
303
304.topbar-dropdown-menu--right {
305 left: auto;
306 right: 0;
307}
308
309.topbar-dropdown.open .topbar-dropdown-menu {
310 display: flex;
311 flex-direction: column;
312 gap: 0.2rem;
313}
314
315.topbar-menu-item {
316 display: flex;
317 align-items: center;
318 gap: 0.48rem;
319 width: 100%;
320 background: transparent;
321 color: var(--text-muted);
322 border-radius: 6px;
323 padding: 0.45rem 0.55rem;
324 text-align: left;
325 position: relative;
326}
327
328.topbar-menu-item svg {
329 width: 16px;
330 height: 16px;
331 flex: 0 0 auto;
332}
333
334.topbar-menu-item:hover {
335 background: var(--surface2);
336 color: var(--text);
337}
338
339.topbar-menu-item .topbar-badge {
340 top: -0.24rem;
341 right: -0.22rem;
342}
343
344.top-search {
345 display: flex;
346 align-items: center;
347 gap: 0.35rem;
348 margin-right: 0.2rem;
349}
350
351.top-search input {
352 width: min(34vw, 300px);
353 min-width: 150px;
354 background: var(--bg);
355 border: 1px solid var(--border);
356 border-radius: 6px;
357 color: var(--text);
358 font-size: 0.88rem;
359 padding: 0.42rem 0.6rem;
360 outline: none;
361}
362
363.top-search input:focus {
364 border-color: var(--accent);
365}
366
367#btn-search {
368 padding: 0.36rem 0.62rem;
369}
370
371.global-favicon-preview {
372 width: 18px;
373 height: 18px;
374 display: inline-flex;
375 align-items: center;
376 justify-content: center;
377 border-radius: 4px;
378 overflow: hidden;
379 color: #fff;
380}
381
382.global-favicon-preview svg,
383.global-favicon-preview img {
384 width: 100%;
385 height: 100%;
386 display: block;
387 object-fit: cover;
388}
389
390.icon-btn.icon-only {
391 width: 2rem;
392 height: 2rem;
393 padding: 0;
394 justify-content: center;
395}
396
397/* =========================================================
398 MAIN + SIDEBAR LAYOUT
399 ========================================================= */
400#main-content {
401 flex: 1;
402 overflow-y: auto;
403 padding: 1.25rem;
404 position: relative;
405}
406
407#folder-stats {
408 margin-bottom: 0.8rem;
409 font-size: 0.85rem;
410}
411
412/* Drop overlay */
413#drop-overlay {
414 position: absolute;
415 inset: 0;
416 background: rgba(91, 127, 255, 0.12);
417 border: 3px dashed var(--accent);
418 border-radius: var(--radius);
419 display: flex;
420 align-items: center;
421 justify-content: center;
422 z-index: 10;
423 font-size: 1.4rem;
424 color: var(--accent);
425 pointer-events: none;
426}
427
428/* When sidebar is open, shrink main content */
429#app.sidebar-open #main-content {
430 margin-right: var(--sidebar-w);
431}
432
433/* =========================================================
434 FILE GRID
435 ========================================================= */
436#file-grid {
437 display: grid;
438 grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
439 gap: 0.75rem;
440}
441
442.file-group-separator {
443 grid-column: 1 / -1;
444 display: flex;
445 align-items: center;
446 gap: 0.55rem;
447 margin-top: 0.1rem;
448 margin-bottom: 0.1rem;
449 color: var(--text-muted);
450 font-size: 0.76rem;
451 letter-spacing: 0.02em;
452}
453
454.file-group-separator::before,
455.file-group-separator::after {
456 content: '';
457 height: 1px;
458 background: var(--border);
459 flex: 1;
460}
461
462.file-group-separator span {
463 padding: 0.12rem 0.45rem;
464 border: 1px solid var(--border);
465 border-radius: 999px;
466 background: rgba(255, 255, 255, 0.02);
467 white-space: nowrap;
468}
469
470.file-item {
471 display: flex;
472 flex-direction: column;
473 align-items: center;
474 padding: 0.9rem 0.5rem 0.7rem;
475 border-radius: var(--radius);
476 border: 1px solid transparent;
477 cursor: pointer;
478 user-select: none;
479 transition: background var(--transition), border-color var(--transition);
480 text-align: center;
481 gap: 0.4rem;
482 position: relative;
483 touch-action: manipulation;
484}
485
486.file-item:hover {
487 background: var(--surface);
488 border-color: var(--border);
489}
490
491.file-item.file-item--preview-placeholder {
492 visibility: hidden;
493 pointer-events: none;
494}
495
496.file-item.selected {
497 background: var(--surface2);
498 border-color: var(--accent);
499}
500
501.file-item .icon {
502 width: 52px;
503 height: 52px;
504 display: flex;
505 align-items: center;
506 justify-content: center;
507 position: relative;
508}
509
510.file-item .icon.thumb-pending::after {
511 content: '';
512 position: absolute;
513 width: 14px;
514 height: 14px;
515 left: 50%;
516 top: 50%;
517 border: 2px solid rgba(232, 234, 240, 0.35);
518 border-top-color: var(--accent);
519 border-radius: 50%;
520 animation: icon-thumb-spin 0.75s linear infinite;
521 background: rgba(15, 17, 23, 0.85);
522}
523
524@keyframes icon-thumb-spin {
525 from {
526 transform: translate(-50%, -50%) rotate(0deg);
527 }
528
529 to {
530 transform: translate(-50%, -50%) rotate(360deg);
531 }
532}
533
534.file-item .icon svg {
535 width: 100%;
536 height: 100%;
537}
538
539.file-item .icon .watched-overlay {
540 position: absolute;
541 left: 50%;
542 top: 50%;
543 width: 28px;
544 height: 28px;
545 transform: translate(-50%, -50%);
546 display: flex;
547 align-items: center;
548 justify-content: center;
549 pointer-events: none;
550 border-radius: 50%;
551 background: rgba(15, 17, 23, 0.45);
552}
553
554.file-item .icon .watched-overlay--partway {
555 width: 16.8px;
556 height: 16.8px;
557}
558
559.file-item .icon .watched-overlay--partway path {
560 fill: #8f98a5;
561}
562
563.file-item .icon .watched-overlay-svg {
564 width: 100%;
565 height: 100%;
566}
567
568.file-item .name {
569 font-size: 0.8rem;
570 word-break: normal;
571 overflow-wrap: anywhere;
572 max-width: 100%;
573 line-height: 1.3;
574 color: var(--text);
575 white-space: normal;
576 overflow: hidden;
577 text-overflow: ellipsis;
578 max-height: calc(1.3em * 4);
579 display: -webkit-box;
580 -webkit-box-orient: vertical;
581 -webkit-line-clamp: 4;
582 line-clamp: 4;
583}
584
585/* =========================================================
586 SIDEBAR
587 ========================================================= */
588#sidebar {
589 position: fixed;
590 top: var(--topbar-h);
591 right: 0;
592 bottom: 0;
593 width: var(--sidebar-w);
594 background: var(--surface);
595 border-left: 1px solid var(--border);
596 padding: 1.25rem;
597 overflow-y: auto;
598 z-index: 20;
599 display: flex;
600 flex-direction: column;
601 gap: 0.75rem;
602}
603
604#sidebar-close {
605 display: none;
606 align-items: center;
607 justify-content: center;
608 width: 1.7rem;
609 height: 1.7rem;
610 border: 1px solid transparent;
611 border-radius: 999px;
612 background: transparent;
613 color: var(--text-muted);
614 font-size: 1rem;
615 line-height: 1;
616}
617
618#sidebar-close:hover {
619 background: var(--surface2);
620 color: var(--text);
621}
622
623#sidebar-icon {
624 display: flex;
625 justify-content: center;
626}
627
628#sidebar-icon svg {
629 width: 64px;
630 height: 64px;
631}
632
633#sidebar-name {
634 font-size: 1rem;
635 word-break: break-all;
636 text-align: center;
637}
638
639#sidebar-meta {
640 display: grid;
641 grid-template-columns: auto 1fr;
642 gap: 0.3rem 0.75rem;
643}
644
645#sidebar-meta dt {
646 color: var(--text-muted);
647 font-size: 0.8rem;
648 font-weight: 600;
649}
650
651#sidebar-meta dd {
652 font-size: 0.8rem;
653 word-break: break-all;
654}
655
656#sidebar-meta .root-access-list {
657 margin: 0;
658 padding-left: 1rem;
659}
660
661#sidebar-meta .root-access-list li {
662 margin: 0.12rem 0;
663}
664
665#sidebar-actions {
666 display: flex;
667 flex-direction: column;
668 gap: 0.5rem;
669 margin-top: 0.5rem;
670}
671
672#sidebar-actions button {
673 background: var(--surface2);
674 color: var(--text);
675 padding: 0.5rem 0.8rem;
676 text-align: left;
677}
678
679#sidebar-actions button:hover {
680 background: var(--border);
681}
682
683#sidebar-actions button.danger {
684 color: var(--danger);
685}
686
687.sidebar-view-options {
688 display: flex;
689 flex-direction: column;
690 gap: 0.5rem;
691 border-top: 1px solid var(--border);
692 padding-top: 0.7rem;
693 margin-top: 0.2rem;
694}
695
696.sidebar-view-options h3 {
697 margin: 0;
698 font-size: 0.82rem;
699 color: var(--text-muted);
700 text-transform: uppercase;
701 letter-spacing: 0.04em;
702}
703
704.sidebar-view-option-label {
705 display: flex;
706 flex-direction: column;
707 gap: 0.28rem;
708 font-size: 0.8rem;
709 color: var(--text-muted);
710}
711
712.sidebar-view-option-control {
713 width: 100%;
714 background: var(--surface2);
715 border: 1px solid var(--border);
716 border-radius: var(--radius);
717 color: var(--text);
718 padding: 0.42rem 0.5rem;
719}
720
721.sidebar-view-toggle {
722 display: flex;
723 align-items: center;
724 gap: 0.45rem;
725 font-size: 0.8rem;
726 color: var(--text);
727}
728
729.custom-context-menu {
730 position: fixed;
731 min-width: 220px;
732 max-width: min(320px, calc(100vw - 12px));
733 background: var(--surface);
734 border: 1px solid var(--border);
735 border-radius: var(--radius);
736 box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
737 padding: 0.35rem;
738 z-index: 12000;
739}
740
741.custom-context-menu button,
742.custom-context-menu .custom-context-menu-item {
743 display: flex;
744 align-items: center;
745 justify-content: space-between;
746 width: 100%;
747 background: transparent;
748 color: var(--text);
749 padding: 0.45rem 0.55rem;
750 text-align: left;
751 border-radius: 6px;
752}
753
754.custom-context-menu button:hover,
755.custom-context-menu .custom-context-menu-item:hover {
756 background: var(--surface2);
757}
758
759.custom-context-menu button.danger,
760.custom-context-menu .custom-context-menu-item.danger {
761 color: var(--danger);
762}
763
764.custom-context-menu-separator {
765 height: 1px;
766 background: var(--border);
767 margin: 0.32rem 0;
768}
769
770.custom-context-menu-row {
771 position: relative;
772}
773
774.custom-context-submenu {
775 position: absolute;
776 top: 0;
777 left: calc(100% + 0.3rem);
778 min-width: 210px;
779 background: var(--surface);
780 border: 1px solid var(--border);
781 border-radius: var(--radius);
782 box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
783 padding: 0.35rem;
784 display: none;
785}
786
787.custom-context-menu-row:hover>.custom-context-submenu,
788.custom-context-menu-row:focus-within>.custom-context-submenu {
789 display: block;
790}
791
792/* ─── Duplicates panel ─────────────────────────────────── */
793#sidebar-duplicates {
794 margin-top: 1rem;
795 border-top: 1px solid var(--border);
796 padding-top: 0.75rem;
797}
798
799.sidebar-duplicates-heading {
800 font-size: 0.75rem;
801 font-weight: 600;
802 text-transform: uppercase;
803 letter-spacing: 0.05em;
804 color: var(--text-muted, #888);
805 margin: 0 0 0.4rem;
806}
807
808.sidebar-duplicates-list {
809 list-style: none;
810 margin: 0;
811 padding: 0;
812 display: flex;
813 flex-direction: column;
814 gap: 0.25rem;
815}
816
817.sidebar-duplicate-entry {
818 display: block;
819 width: 100%;
820 background: var(--surface2);
821 color: var(--text);
822 padding: 0.35rem 0.6rem;
823 text-align: left;
824 font-size: 0.8rem;
825 white-space: nowrap;
826 overflow: hidden;
827 text-overflow: ellipsis;
828 border-radius: var(--radius);
829 cursor: pointer;
830}
831
832.sidebar-duplicate-entry:hover {
833 background: var(--border);
834}
835
836.admin-size-feedback {
837 font-size: 0.82rem;
838 margin: 0.25rem 0 0.5rem;
839 padding: 0.25rem 0.5rem;
840 border-radius: var(--radius);
841}
842
843.admin-size-feedback.ok {
844 color: var(--accent);
845}
846
847.admin-size-feedback.err {
848 color: #e55;
849}
850
851/* =========================================================
852 MODALS
853 ========================================================= */
854.modal-overlay {
855 position: fixed;
856 inset: 0;
857 background: rgba(0, 0, 0, 0.65);
858 display: flex;
859 align-items: center;
860 justify-content: center;
861 z-index: 11000;
862}
863
864#file-conflict-modal,
865#overwrite-modal {
866 z-index: 11150;
867}
868
869.modal {
870 background: var(--surface);
871 border: 1px solid var(--border);
872 border-radius: var(--radius);
873 padding: 2rem;
874 width: min(560px, 94vw);
875 max-height: 90vh;
876 overflow-y: auto;
877 position: relative;
878}
879
880.modal.small {
881 width: min(340px, 94vw);
882}
883
884#confirm-modal .modal.confirm-modal-wide {
885 width: min(760px, 94vw);
886}
887
888.modal h2 {
889 font-size: 1.3rem;
890 margin-bottom: 1.25rem;
891}
892
893.modal h3 {
894 font-size: 1rem;
895 color: var(--text-muted);
896 margin: 1rem 0 0.5rem;
897}
898
899.modal-close {
900 position: absolute;
901 top: 0.75rem;
902 right: 0.75rem;
903 background: none;
904 color: var(--text-muted);
905 font-size: 1.1rem;
906 padding: 0.25rem 0.5rem;
907}
908
909.modal-close:hover {
910 color: var(--text);
911}
912
913.update-commit-list {
914 max-height: min(48vh, 420px);
915 overflow: auto;
916 border: 1px solid var(--border);
917 border-radius: 10px;
918 background: var(--bg);
919 padding: 0.6rem 0.8rem;
920}
921
922.update-commit-item+.update-commit-item {
923 margin-top: 0.9rem;
924 padding-top: 0.9rem;
925 border-top: 1px solid var(--border);
926}
927
928.update-commit-item h3 {
929 margin: 0;
930 font-size: 1.06rem;
931 font-weight: 700;
932 color: var(--text);
933}
934
935.update-commit-hash {
936 color: var(--text-muted);
937 font-weight: 600;
938 font-size: 0.9rem;
939}
940
941.update-commit-subject {
942 color: var(--text);
943}
944
945.update-commit-body {
946 margin: 0.45rem 0 0;
947 font-size: 0.94rem;
948 color: var(--text-muted);
949 line-height: 1.45;
950}
951
952/* =========================================================
953 FOLDER ICON PICKER
954 ========================================================= */
955.folder-icon-modal {
956 width: min(680px, 94vw);
957 max-height: 90vh;
958 display: flex;
959 flex-direction: column;
960 gap: 0.75rem;
961 overflow: hidden;
962}
963
964.folder-icon-grid {
965 display: grid;
966 grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
967 gap: 0.5rem;
968 max-height: 50vh;
969 overflow-y: auto;
970 padding: 0.25rem;
971 background: var(--bg);
972 border: 1px solid var(--border);
973 border-radius: var(--radius);
974}
975
976.folder-icon-filter {
977 width: 100%;
978 background: var(--bg);
979 border: 1px solid var(--border);
980 border-radius: 6px;
981 color: var(--text);
982 font-size: 0.9rem;
983 padding: 0.48rem 0.68rem;
984 outline: none;
985}
986
987.folder-icon-filter:focus {
988 border-color: var(--accent);
989}
990
991.debug-modal {
992 width: min(980px, 96vw);
993 max-height: 92vh;
994}
995
996.debug-toolbar {
997 display: flex;
998 justify-content: space-between;
999 align-items: center;
1000 gap: 0.8rem;
1001 margin: 0.75rem 0 1rem;
1002}
1003
1004.debug-section-head {
1005 display: flex;
1006 align-items: center;
1007 justify-content: space-between;
1008 gap: 0.8rem;
1009}
1010
1011.debug-copy-btn {
1012 padding: 0.3rem 0.55rem;
1013 border-radius: 7px;
1014 font-size: 0.78rem;
1015 border: 1px solid var(--border);
1016 background: var(--bg);
1017 color: var(--text-muted);
1018}
1019
1020.debug-copy-btn:hover {
1021 color: var(--text);
1022 border-color: var(--accent);
1023}
1024
1025.debug-summary-grid {
1026 display: grid;
1027 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
1028 gap: 0.6rem;
1029 margin-bottom: 0.8rem;
1030}
1031
1032.debug-summary-item {
1033 background: var(--bg);
1034 border: 1px solid var(--border);
1035 border-radius: 10px;
1036 padding: 0.55rem 0.7rem;
1037}
1038
1039.debug-summary-item .k {
1040 display: block;
1041 color: var(--text-muted);
1042 font-size: 0.82rem;
1043}
1044
1045.debug-summary-item .v {
1046 display: block;
1047 color: var(--text);
1048 font-weight: 650;
1049 margin-top: 0.12rem;
1050}
1051
1052.debug-chips {
1053 display: flex;
1054 flex-wrap: wrap;
1055 gap: 0.45rem;
1056}
1057
1058.debug-chip {
1059 border: 1px solid var(--border);
1060 border-radius: 999px;
1061 padding: 0.22rem 0.6rem;
1062 background: var(--bg);
1063 font-size: 0.82rem;
1064}
1065
1066.debug-table-wrap {
1067 border: 1px solid var(--border);
1068 border-radius: 10px;
1069 overflow: auto;
1070 background: var(--bg);
1071}
1072
1073.debug-table {
1074 width: 100%;
1075 border-collapse: collapse;
1076 font-size: 0.85rem;
1077}
1078
1079.debug-table th,
1080.debug-table td {
1081 border-bottom: 1px solid var(--border);
1082 text-align: left;
1083 vertical-align: top;
1084 padding: 0.45rem 0.55rem;
1085}
1086
1087.debug-table thead th {
1088 position: sticky;
1089 top: 0;
1090 z-index: 1;
1091 background: var(--surface);
1092}
1093
1094.debug-table tr:last-child td {
1095 border-bottom: 0;
1096}
1097
1098.debug-path {
1099 font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1100 word-break: break-word;
1101}
1102
1103.folder-icon-cell {
1104 display: flex;
1105 flex-direction: column;
1106 align-items: center;
1107 gap: 0.3rem;
1108 padding: 0.4rem;
1109 border-radius: var(--radius);
1110 border: 2px solid transparent;
1111 cursor: pointer;
1112 transition: border-color var(--transition), background var(--transition);
1113}
1114
1115.folder-icon-cell:hover {
1116 background: var(--surface2);
1117}
1118
1119.folder-icon-cell.selected {
1120 border-color: var(--accent);
1121 background: rgba(91, 127, 255, 0.12);
1122}
1123
1124.folder-icon-thumb {
1125 width: 60px;
1126 height: 60px;
1127 object-fit: cover;
1128 border-radius: 4px;
1129 background: var(--surface2);
1130}
1131
1132.folder-icon-label {
1133 font-size: 0.68rem;
1134 color: var(--text-muted);
1135 word-break: break-all;
1136 text-align: center;
1137 max-width: 72px;
1138 overflow: hidden;
1139 display: -webkit-box;
1140 -webkit-line-clamp: 2;
1141 -webkit-box-orient: vertical;
1142}
1143
1144.vjs-text-track-cue>div {
1145 background: transparent !important;
1146 text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black,
1147 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
1148}
1149
1150/* Admin path list */
1151.path-row {
1152 display: flex;
1153 align-items: center;
1154 gap: 0.5rem;
1155 padding: 0.4rem 0;
1156 border-bottom: 1px solid var(--border);
1157 font-size: 0.88rem;
1158}
1159
1160.path-row span {
1161 flex: 1;
1162 word-break: break-all;
1163}
1164
1165.path-row button {
1166 background: none;
1167 color: var(--danger);
1168 padding: 0.2rem 0.5rem;
1169}
1170
1171.path-add-row {
1172 display: flex;
1173 gap: 0.5rem;
1174 margin: 0.5rem 0;
1175}
1176
1177.path-add-row input {
1178 flex: 1;
1179 background: var(--bg);
1180 border: 1px solid var(--border);
1181 border-radius: 6px;
1182 padding: 0.45rem 0.7rem;
1183 color: var(--text);
1184 font-size: 0.9rem;
1185 outline: none;
1186}
1187
1188.path-add-row input:focus {
1189 border-color: var(--accent);
1190}
1191
1192.path-add-row button {
1193 background: var(--surface2);
1194 color: var(--text);
1195 padding: 0.45rem 0.9rem;
1196}
1197
1198.path-add-row button:hover {
1199 background: var(--border);
1200}
1201
1202.admin-favicon-row {
1203 display: flex;
1204 align-items: center;
1205 justify-content: space-between;
1206 margin: 0.35rem 0 0.6rem;
1207 font-size: 0.88rem;
1208 color: var(--text-muted);
1209}
1210
1211.admin-favicon-row .icon-btn {
1212 color: var(--text);
1213 background: var(--surface2);
1214}
1215
1216.admin-favicon-row .icon-btn:hover {
1217 background: var(--border);
1218}
1219
1220.admin-scheduled-restart {
1221 margin: 0.4rem 0 0.8rem;
1222 padding: 0.6rem;
1223 border: 1px solid var(--border);
1224 border-radius: var(--radius);
1225 background: var(--bg);
1226}
1227
1228.admin-scheduled-restart.admin-scheduled-restart--disabled {
1229 opacity: 0.7;
1230}
1231
1232.admin-scheduled-restart-toggle {
1233 margin-bottom: 0.5rem;
1234}
1235
1236.admin-scheduled-restart-grid {
1237 display: grid;
1238 grid-template-columns: 1fr 1fr;
1239 gap: 0.6rem;
1240}
1241
1242.admin-scheduled-restart-grid label {
1243 display: flex;
1244 flex-direction: column;
1245 gap: 0.28rem;
1246 font-size: 0.82rem;
1247 color: var(--text-muted);
1248}
1249
1250.admin-scheduled-restart-grid input,
1251.admin-scheduled-restart-grid select {
1252 background: var(--surface2);
1253 border: 1px solid var(--border);
1254 border-radius: 6px;
1255 color: var(--text);
1256 padding: 0.4rem 0.55rem;
1257}
1258
1259/* User list */
1260.user-row {
1261 display: flex;
1262 align-items: center;
1263 gap: 0.6rem;
1264 padding: 0.5rem 0;
1265 border-bottom: 1px solid var(--border);
1266}
1267
1268.user-row .user-name {
1269 flex: 1;
1270 font-weight: 600;
1271 font-size: 0.9rem;
1272}
1273
1274.user-row .user-admin-badge {
1275 font-size: 0.72rem;
1276 background: var(--accent);
1277 color: #fff;
1278 border-radius: 4px;
1279 padding: 0.1rem 0.4rem;
1280}
1281
1282.user-row button {
1283 background: none;
1284 color: var(--text-muted);
1285 padding: 0.2rem 0.5rem;
1286 font-size: 0.85rem;
1287}
1288
1289.user-row button:hover {
1290 color: var(--text);
1291}
1292
1293.user-row button.danger {
1294 color: var(--danger);
1295}
1296
1297#admin-orphan-userfolders-section {
1298 margin-top: 1rem;
1299 padding-top: 0.55rem;
1300 border-top: 1px solid var(--border);
1301}
1302
1303#admin-orphan-userfolders-section h4 {
1304 margin: 0 0 0.35rem;
1305 font-size: 0.86rem;
1306 color: var(--text);
1307}
1308
1309.orphan-folder-row .orphan-folder-meta {
1310 font-size: 0.8rem;
1311 color: var(--text-muted);
1312}
1313
1314/* User form permissions */
1315#user-permissions {
1316 margin-top: 0.75rem;
1317}
1318
1319#user-permissions h4 {
1320 font-size: 0.85rem;
1321 color: var(--text-muted);
1322 margin-bottom: 0.4rem;
1323}
1324
1325.perm-row {
1326 display: flex;
1327 align-items: center;
1328 gap: 0.75rem;
1329 flex-wrap: wrap;
1330 font-size: 0.85rem;
1331 margin-bottom: 0.4rem;
1332}
1333
1334.perm-row .perm-label {
1335 min-width: 130px;
1336 color: var(--text);
1337}
1338
1339.checkbox-label {
1340 display: flex;
1341 align-items: center;
1342 gap: 0.5rem;
1343 font-size: 0.9rem;
1344 margin-bottom: 0.5rem;
1345}
1346
1347.checkbox-label input[type="checkbox"] {
1348 width: 16px;
1349 height: 16px;
1350 accent-color: var(--accent);
1351}
1352
1353/* Form labels in modals */
1354.modal form label {
1355 display: flex;
1356 flex-direction: column;
1357 gap: 0.3rem;
1358 font-size: 0.85rem;
1359 color: var(--text-muted);
1360 margin-bottom: 0.9rem;
1361}
1362
1363.modal form input[type="text"],
1364.modal form input[type="password"] {
1365 background: var(--bg);
1366 border: 1px solid var(--border);
1367 border-radius: 6px;
1368 padding: 0.5rem 0.75rem;
1369 color: var(--text);
1370 font-size: 0.95rem;
1371 outline: none;
1372 transition: border-color var(--transition);
1373}
1374
1375.modal form input:focus {
1376 border-color: var(--accent);
1377}
1378
1379/* Admin user-folder controls use the same visual language as modal forms. */
1380#admin-userfolder-section label {
1381 display: flex;
1382 flex-direction: column;
1383 gap: 0.3rem;
1384 font-size: 0.85rem;
1385 color: var(--text-muted);
1386 margin-bottom: 0.9rem;
1387}
1388
1389#admin-userfolder-section input[type="text"] {
1390 background: var(--bg);
1391 border: 1px solid var(--border);
1392 border-radius: 6px;
1393 padding: 0.5rem 0.75rem;
1394 color: var(--text);
1395 font-size: 0.95rem;
1396 outline: none;
1397 transition: border-color var(--transition);
1398}
1399
1400#admin-userfolder-section input[type="text"]:focus {
1401 border-color: var(--accent);
1402}
1403
1404/* =========================================================
1405 FILE PREVIEW — SHARED MEDIA STYLES
1406 ========================================================= */
1407.preview-media {
1408 max-width: 100%;
1409 max-height: 100%;
1410 width: auto;
1411 height: auto;
1412 object-fit: contain;
1413}
1414
1415.preview-frame {
1416 width: 100%;
1417 height: 100%;
1418 border: none;
1419 border-radius: 8px;
1420 background: #fff;
1421}
1422
1423.preview-audio {
1424 width: min(640px, 95%);
1425}
1426
1427.preview-model-wrap {
1428 width: 100%;
1429 height: 100%;
1430 min-height: 240px;
1431 border: 1px solid var(--border);
1432 border-radius: 8px;
1433 background: #0d111a;
1434 display: flex;
1435 flex-direction: column;
1436 align-items: stretch;
1437 justify-content: stretch;
1438 overflow: hidden;
1439}
1440
1441.preview-model-canvas {
1442 flex: 1 1 auto;
1443 width: 100%;
1444 min-height: 180px;
1445 display: block;
1446 cursor: grab;
1447}
1448
1449.preview-model-canvas:active {
1450 cursor: grabbing;
1451}
1452
1453.preview-model-hint {
1454 margin: 0;
1455 padding: 0.45rem 0.7rem;
1456 border-top: 1px solid rgba(120, 128, 160, 0.35);
1457 color: #b8c4e8;
1458 font-size: 0.78rem;
1459 text-align: center;
1460}
1461
1462.preview-text {
1463 width: 100%;
1464 min-height: 100%;
1465 color: #dce4ff;
1466 background: #0d111a;
1467 border: 1px solid var(--border);
1468 border-radius: 8px;
1469 padding: 0.9rem;
1470 font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1471 overflow: auto;
1472 white-space: pre;
1473 text-align: left;
1474}
1475
1476.preview-code .tok-comment {
1477 color: #6f7f9a;
1478}
1479
1480.preview-code .tok-string {
1481 color: #9ee37d;
1482}
1483
1484.preview-code .tok-number {
1485 color: #f8c46a;
1486}
1487
1488.preview-code .tok-keyword {
1489 color: #8bb4ff;
1490 font-weight: 600;
1491}
1492
1493.preview-code .tok-key {
1494 color: #59c8ff;
1495}
1496
1497.preview-unsupported {
1498 color: var(--text-muted);
1499 font-size: 0.95rem;
1500 max-width: 56ch;
1501 text-align: center;
1502}
1503
1504.preview-footer {
1505 border-top: 1px solid var(--border);
1506 padding: 0.8rem 1rem;
1507 display: flex;
1508 justify-content: flex-end;
1509}
1510
1511.preview-footer .primary {
1512 width: auto;
1513 margin-top: 0;
1514 min-width: 8rem;
1515}
1516
1517
1518
1519/* =========================================================
1520
1521.toast-msg {
1522 background: var(--surface2);
1523 border: 1px solid var(--border);
1524 border-radius: 8px;
1525 padding: 0.6rem 1.25rem;
1526 font-size: 0.9rem;
1527 animation: slideup 0.25s ease;
1528}
1529
1530.toast-msg.err {
1531 border-color: var(--danger);
1532 color: var(--danger);
1533}
1534
1535.toast-msg.ok {
1536 border-color: var(--success);
1537 color: var(--success);
1538}
1539
1540@keyframes slideup {
1541 from {
1542 opacity: 0;
1543 transform: translateY(12px);
1544 }
1545
1546 to {
1547 opacity: 1;
1548 transform: translateY(0);
1549 }
1550}
1551
1552/* =========================================================
1553 UPLOAD PROGRESS
1554 ========================================================= */
1555.upload-bar-wrap {
1556 position: fixed;
1557 bottom: 0;
1558 left: 0;
1559 right: 0;
1560 background: var(--surface);
1561 border-top: 1px solid var(--border);
1562 padding: 0.5rem 1rem;
1563 z-index: 80;
1564 font-size: 0.85rem;
1565}
1566
1567.upload-bar-row {
1568 display: flex;
1569 align-items: center;
1570 justify-content: space-between;
1571 gap: 0.75rem;
1572}
1573
1574.upload-abort-btn {
1575 flex: 0 0 auto;
1576 border: 1px solid var(--border);
1577 border-radius: 4px;
1578 background: transparent;
1579 color: var(--text);
1580 padding: 0.25rem 0.55rem;
1581 font: inherit;
1582 cursor: pointer;
1583}
1584
1585.upload-abort-btn:hover:not(:disabled),
1586.upload-abort-btn:focus-visible:not(:disabled) {
1587 border-color: var(--accent);
1588 color: var(--accent);
1589}
1590
1591.upload-abort-btn:disabled {
1592 cursor: default;
1593 opacity: 0.55;
1594}
1595
1596.upload-bar-track {
1597 height: 6px;
1598 background: var(--border);
1599 border-radius: 3px;
1600 margin-top: 0.3rem;
1601}
1602
1603.upload-bar-fill {
1604 height: 100%;
1605 background: var(--accent);
1606 border-radius: 3px;
1607 transition: width 0.2s linear;
1608}
1609
1610/* =========================================================
1611 RESPONSIVE — narrow screens
1612 ========================================================= */
1613@media (max-width: 600px) {
1614 #topbar {
1615 height: auto;
1616 min-height: var(--topbar-h);
1617 padding: 0.5rem 0.6rem;
1618 align-items: flex-start;
1619 flex-direction: column;
1620 }
1621
1622 #topbar>#btn-refresh {
1623 align-self: flex-start;
1624 }
1625
1626 #breadcrumb-wrap {
1627 width: 100%;
1628 }
1629
1630 #topbar-actions {
1631 width: 100%;
1632 flex-wrap: wrap;
1633 gap: 0.15rem;
1634 }
1635
1636 .top-search {
1637 order: -1;
1638 width: 100%;
1639 margin-right: 0;
1640 }
1641
1642 .top-search input {
1643 flex: 1;
1644 min-width: 0;
1645 width: auto;
1646 }
1647
1648 .topbar-dropdown-menu {
1649 position: fixed;
1650 top: calc(var(--topbar-h) + 0.35rem);
1651 left: 0.6rem;
1652 right: 0.6rem;
1653 min-width: 0;
1654 }
1655
1656 .topbar-dropdown-menu--right {
1657 left: 0.6rem;
1658 right: 0.6rem;
1659 }
1660
1661 .icon-btn {
1662 padding: 0.4rem 0.55rem;
1663 font-size: 0.82rem;
1664 }
1665
1666 #main-content {
1667 padding: 0.9rem;
1668 }
1669
1670 #file-grid {
1671 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
1672 }
1673
1674 #app.sidebar-open #main-content {
1675 margin-right: 0;
1676 }
1677
1678 #sidebar {
1679 top: auto;
1680 right: 0;
1681 bottom: 0;
1682 left: 0;
1683 height: auto;
1684 max-height: min(68vh, calc(100vh - 0.5rem));
1685 padding: 0.9rem 0.9rem 1rem;
1686 border-left: none;
1687 border-top: 1px solid var(--border);
1688 width: 100%;
1689 border-radius: 14px 14px 0 0;
1690 box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.34);
1691 gap: 0.55rem;
1692 }
1693
1694 #sidebar-close {
1695 display: inline-flex;
1696 position: absolute;
1697 top: 0.45rem;
1698 right: 0.45rem;
1699 border-color: var(--border);
1700 background: var(--surface2);
1701 }
1702
1703 #sidebar-name {
1704 padding-right: 2rem;
1705 }
1706
1707 #sidebar-icon svg {
1708 width: 54px;
1709 height: 54px;
1710 }
1711
1712 #sidebar-actions {
1713 margin-top: 0.2rem;
1714 }
1715
1716 .modal {
1717 padding: 1.25rem;
1718 }
1719
1720 .preview-overlay {
1721 padding: 0.8rem;
1722 }
1723
1724 .preview-sheet {
1725 width: 100%;
1726 height: 92vh;
1727 }
1728
1729 .preview-fold {
1730 width: 54px;
1731 height: 54px;
1732 }
1733
1734 .preview-close {
1735 top: 5px;
1736 right: 5px;
1737 }
1738}
1739
1740/* =========================================================
1741 DIALOG MODALS (confirm / prompt / overwrite)
1742 ========================================================= */
1743.dialog-message {
1744 color: var(--text-muted);
1745 font-size: 0.93rem;
1746 margin: 0 0 1.5rem;
1747 line-height: 1.5;
1748 word-break: break-word;
1749}
1750
1751.dialog-actions {
1752 display: flex;
1753 gap: 0.6rem;
1754 justify-content: flex-end;
1755 flex-wrap: wrap;
1756}
1757
1758.dialog-actions--overwrite {
1759 justify-content: space-between;
1760}
1761
1762.dialog-actions button {
1763 min-width: 5rem;
1764 background: var(--surface2);
1765 color: var(--text);
1766 padding: 0.5rem 1rem;
1767}
1768
1769.dialog-actions button:hover {
1770 background: var(--border);
1771}
1772
1773/* Override .primary full-width inside dialog rows */
1774.dialog-actions button.primary {
1775 width: auto;
1776 margin-top: 0;
1777}