BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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