-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
838 lines (727 loc) · 18.8 KB
/
Copy pathstyle.css
File metadata and controls
838 lines (727 loc) · 18.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
/* ================================================================
MTG Proxy Builder — Design System
Inspired by shadcn/ui theming with custom colour palette.
Uses CSS custom properties (OKLCH) + semantic tokens.
================================================================ */
/* ── Colour Palette ──────────────────────────────────────── */
:root {
/* Mauve — primary accent */
--mauve-50: oklch(93.91% 0.037 306.42);
--mauve-100: oklch(88.14% 0.074 306.26);
--mauve-200: oklch(76.63% 0.149 304.80);
--mauve-300: oklch(65.96% 0.220 302.08);
--mauve-400: oklch(57.39% 0.272 297.96);
--mauve-500: oklch(52.08% 0.293 290.98);
--mauve-600: oklch(44.15% 0.248 291.47);
--mauve-700: oklch(35.85% 0.200 292.27);
--mauve-800: oklch(27.17% 0.150 294.52);
--mauve-900: oklch(17.60% 0.095 298.87);
--mauve-950: oklch(14.56% 0.077 301.86);
/* Lavender Purple — secondary */
--lavender-purple-50: oklch(95.25% 0.012 291.29);
--lavender-purple-100: oklch(90.49% 0.023 294.03);
--lavender-purple-200: oklch(80.63% 0.051 294.15);
--lavender-purple-300: oklch(70.73% 0.077 292.97);
--lavender-purple-400: oklch(60.41% 0.108 291.09);
--lavender-purple-500: oklch(50.25% 0.137 288.76);
--lavender-purple-600: oklch(42.96% 0.115 288.90);
--lavender-purple-700: oklch(35.57% 0.089 289.75);
--lavender-purple-800: oklch(27.54% 0.065 290.42);
--lavender-purple-900: oklch(19.07% 0.034 290.91);
--lavender-purple-950: oklch(16.35% 0.025 291.01);
/* Deep Sky Blue — accent / highlights */
--deep-sky-blue-50: oklch(96.32% 0.022 230.54);
--deep-sky-blue-100: oklch(93% 0.042 229.44);
--deep-sky-blue-200: oklch(86.41% 0.083 230.61);
--deep-sky-blue-300: oklch(80.39% 0.119 232.69);
--deep-sky-blue-400: oklch(75.13% 0.148 236.31);
--deep-sky-blue-500: oklch(70.72% 0.168 242.04);
--deep-sky-blue-600: oklch(59.98% 0.141 241.55);
--deep-sky-blue-700: oklch(48.74% 0.113 240.76);
--deep-sky-blue-800: oklch(36.80% 0.083 239.21);
--deep-sky-blue-900: oklch(23.78% 0.050 235);
--deep-sky-blue-950: oklch(19.63% 0.040 231.93);
/* Taupe — neutral base */
--taupe-50: oklch(96.16% 0.002 67.80);
--taupe-100: oklch(92.37% 0.004 56.37);
--taupe-200: oklch(84.53% 0.007 53.43);
--taupe-300: oklch(76.56% 0.012 54.45);
--taupe-400: oklch(68.32% 0.015 53.25);
--taupe-500: oklch(59.69% 0.020 48.36);
--taupe-600: oklch(51.07% 0.016 53.13);
--taupe-700: oklch(41.91% 0.014 54.22);
--taupe-800: oklch(32.13% 0.009 53.17);
--taupe-900: oklch(21.61% 0.006 56.04);
--taupe-950: oklch(17.96% 0.004 48.50);
/* Charcoal Brown — card / sidebar surfaces */
--charcoal-brown-50: oklch(96.31% 0.002 145.56);
--charcoal-brown-100: oklch(92.39% 0.002 145.56);
--charcoal-brown-200: oklch(84.79% 0.006 137.78);
--charcoal-brown-300: oklch(76.92% 0.008 132.43);
--charcoal-brown-400: oklch(68.77% 0.010 134.90);
--charcoal-brown-500: oklch(60.36% 0.012 136.59);
--charcoal-brown-600: oklch(51.54% 0.010 134.93);
--charcoal-brown-700: oklch(42.32% 0.009 132.52);
--charcoal-brown-800: oklch(32.46% 0.008 137.81);
--charcoal-brown-900: oklch(21.63% 0.002 145.49);
--charcoal-brown-950: oklch(18.18% 0.002 106.60);
/* ── Semantic Tokens (shadcn-style) ───────────────────── */
--background: var(--taupe-950);
--foreground: var(--taupe-100);
--card: var(--charcoal-brown-900);
--card-foreground: var(--taupe-100);
--popover: var(--charcoal-brown-900);
--popover-foreground: var(--taupe-100);
--primary: var(--mauve-500);
--primary-foreground: var(--mauve-50);
--secondary: var(--lavender-purple-800);
--secondary-foreground: var(--lavender-purple-100);
--muted: var(--taupe-800);
--muted-foreground: var(--taupe-400);
--accent: var(--deep-sky-blue-700);
--accent-foreground: var(--deep-sky-blue-50);
--destructive: var(--mauve-600);
--destructive-foreground: var(--mauve-50);
--border: var(--taupe-800);
--input: var(--taupe-800);
--ring: var(--mauve-500);
--radius: 0.5rem;
/* ── Derived helpers ──────────────────────────────────── */
--sidebar-bg: var(--charcoal-brown-900);
--sidebar-border: var(--taupe-800);
}
/* ===== Reset & Base ===== */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Helvetica, Arial, sans-serif;
background: var(--background);
color: var(--foreground);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ===== Layout ===== */
.app {
display: flex;
flex-direction: column;
min-height: 100vh;
}
header {
background: var(--sidebar-bg);
border-bottom: 1px solid var(--border);
padding: 16px 24px;
display: flex;
align-items: center;
gap: 12px;
}
header h1 {
font-size: 1.25rem;
font-weight: 600;
color: var(--primary);
letter-spacing: 0.5px;
}
header .subtitle {
font-size: 0.8rem;
color: var(--muted-foreground);
}
.main-content {
display: flex;
flex: 1;
overflow: hidden;
}
/* ===== Sidebar (Input & Settings) ===== */
.sidebar {
width: 340px;
min-width: 340px;
background: var(--sidebar-bg);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow-y: auto;
}
.sidebar-section {
padding: 16px;
border-bottom: 1px solid var(--border);
}
.sidebar-section h3 {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--muted-foreground);
margin-bottom: 10px;
}
/* ===== Card List Input ===== */
textarea#cardList {
width: 100%;
height: 140px;
background: var(--background);
border: 1px solid var(--input);
border-radius: var(--radius);
color: var(--foreground);
font-family: 'Consolas', 'Fira Code', monospace;
font-size: 0.85rem;
padding: 10px;
resize: vertical;
line-height: 1.5;
transition: border-color 0.15s, box-shadow 0.15s;
}
textarea#cardList::placeholder {
color: var(--taupe-600);
}
textarea#cardList:focus {
outline: none;
border-color: var(--ring);
box-shadow: 0 0 0 2px oklch(52.08% 0.293 290.98 / 0.2);
}
.input-help {
font-size: 0.72rem;
color: var(--taupe-600);
margin-top: 6px;
line-height: 1.4;
}
/* ===== Settings Controls ===== */
.setting-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.setting-row:last-child {
margin-bottom: 0;
}
.setting-row label {
font-size: 0.82rem;
color: var(--taupe-200);
}
.setting-row select,
.setting-row input[type="color"],
.setting-row input[type="range"] {
background: var(--background);
border: 1px solid var(--input);
color: var(--foreground);
border-radius: calc(var(--radius) - 2px);
padding: 4px 8px;
font-size: 0.8rem;
}
.setting-row select {
min-width: 130px;
cursor: pointer;
}
.setting-row select:focus {
outline: none;
border-color: var(--ring);
}
.setting-row input[type="color"] {
width: 36px;
height: 28px;
padding: 2px;
cursor: pointer;
border-radius: calc(var(--radius) - 2px);
}
.setting-row input[type="range"] {
width: 100px;
cursor: pointer;
accent-color: var(--primary);
}
.range-value {
font-size: 0.75rem;
color: var(--muted-foreground);
min-width: 36px;
text-align: right;
}
/* ===== Buttons ===== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
border: none;
border-radius: var(--radius);
padding: 10px 18px;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, opacity 0.15s;
width: 100%;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: var(--primary);
color: var(--primary-foreground);
}
.btn-primary:hover:not(:disabled) {
background: var(--mauve-600);
}
.btn-download {
background: var(--secondary);
color: var(--secondary-foreground);
border: 1px solid var(--lavender-purple-700);
}
.btn-download:hover:not(:disabled) {
background: var(--lavender-purple-700);
}
.btn-clear {
background: transparent;
color: var(--muted-foreground);
border: 1px solid var(--border);
margin-top: 8px;
}
.btn-clear:hover:not(:disabled) {
background: var(--muted);
color: var(--taupe-200);
}
/* ===== Progress ===== */
.progress-container {
margin-top: 12px;
display: none;
}
.progress-container.active {
display: block;
}
.progress-bar-track {
width: 100%;
height: 6px;
background: var(--muted);
border-radius: 3px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: var(--primary);
border-radius: 3px;
width: 0%;
transition: width 0.2s ease;
}
.progress-text {
font-size: 0.75rem;
color: var(--muted-foreground);
margin-top: 4px;
}
/* ===== Error Log ===== */
.error-log {
margin-top: 10px;
}
.error-item {
background: oklch(52.08% 0.293 290.98 / 0.1);
border-left: 3px solid var(--primary);
padding: 6px 10px;
margin-bottom: 4px;
font-size: 0.75rem;
color: var(--mauve-400);
border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0;
}
/* ===== Preview Area ===== */
.preview-area {
flex: 1;
overflow-y: auto;
padding: 24px;
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
/* ===== Stats Bar ===== */
.stats-bar {
display: flex;
align-items: center;
gap: 24px;
background: var(--card);
padding: 12px 20px;
border-radius: var(--radius);
border: 1px solid var(--border);
width: 100%;
max-width: 960px;
}
.stat {
display: flex;
flex-direction: column;
align-items: center;
}
.stat-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
}
.stat-label {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--muted-foreground);
}
.stats-bar .divider {
width: 1px;
height: 32px;
background: var(--border);
}
/* ===== Page Previews ===== */
.page-preview-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
width: 100%;
max-width: 700px;
}
.page-wrapper {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.page-label {
font-size: 0.75rem;
color: var(--muted-foreground);
margin-bottom: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.page-canvas {
background: #fff;
border-radius: calc(var(--radius) - 2px);
box-shadow: 0 4px 24px oklch(0% 0 0 / 0.5);
max-width: 100%;
height: auto;
}
/* ===== Empty State ===== */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
color: var(--taupe-600);
gap: 12px;
text-align: center;
padding: 40px;
}
.empty-state .icon {
font-size: 3rem;
opacity: 0.3;
}
.empty-state p {
font-size: 0.9rem;
max-width: 320px;
line-height: 1.5;
}
/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--taupe-800); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--taupe-700); }
/* ===== Database Status Footer ===== */
.sidebar-footer {
margin-top: auto;
border-top: 1px solid var(--border);
border-bottom: none;
}
.db-status {
font-size: 0.7rem;
color: var(--taupe-600);
text-align: center;
line-height: 1.4;
}
/* ===== Responsive ===== */
@media (max-width: 800px) {
.main-content {
flex-direction: column;
}
.sidebar {
width: 100%;
min-width: unset;
max-height: 50vh;
border-right: none;
border-bottom: 1px solid var(--border);
}
}
/* ================================================================
Card List Panel — Variant Selection View
================================================================ */
.card-list-panel {
flex-direction: column;
align-items: center;
width: 100%;
max-width: 960px;
gap: 12px;
}
/* ── Stats summary row ── */
.cl-stats {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.82rem;
color: var(--muted-foreground);
padding: 10px 14px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
width: 100%;
}
.cl-stats strong {
color: var(--foreground);
}
.cl-stats-sep {
color: var(--taupe-600);
}
/* ── Card list container ── */
.cl-container {
display: grid;
grid-template-columns: repeat(3, minmax(300px, 1fr));
gap: 15px;
width: 100%;
}
@media (max-width: 900px) {
.cl-container {
grid-template-columns: repeat(2, minmax(300px, 1fr));
}
}
@media (max-width: 600px) {
.cl-container {
grid-template-columns: minmax(300px, 1fr);
}
}
/* ── Individual card row ── */
.cl-row {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 14px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
position: relative;
transition: border-color 0.15s;
}
.cl-row:hover {
border-color: var(--taupe-700);
}
.cl-row-error {
border-color: var(--mauve-700);
opacity: 0.7;
}
/* ── Thumbnail wrapper ── */
.cl-thumb-wrap {
position: relative;
width: 100%;
cursor: pointer;
border-radius: calc(var(--radius) - 2px);
overflow: visible;
}
.cl-thumb {
width: 100%;
height: auto;
aspect-ratio: 488 / 680;
object-fit: cover;
border-radius: calc(var(--radius) - 2px);
display: block;
background: var(--muted);
}
.cl-variant-btn {
position: absolute;
bottom: -4px;
left: 50%;
transform: translateX(-50%);
background: var(--primary);
color: var(--primary-foreground);
border: none;
border-radius: 10px;
font-size: 0.62rem;
font-weight: 600;
padding: 1px 6px;
cursor: pointer;
white-space: nowrap;
transition: background 0.15s;
line-height: 1.4;
}
.cl-variant-btn:hover {
background: var(--mauve-600);
}
/* ── Row info ── */
.cl-row-info {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
width: 100%;
min-width: 0;
flex-wrap: wrap;
}
.cl-qty {
font-weight: 700;
font-size: 0.9rem;
color: var(--primary);
min-width: 28px;
}
.cl-name {
font-size: 0.82rem;
color: var(--foreground);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
text-align: center;
}
.cl-set {
font-size: 0.7rem;
color: var(--muted-foreground);
background: var(--muted);
padding: 1px 6px;
border-radius: 8px;
white-space: nowrap;
}
.cl-dfc-badge {
font-size: 0.62rem;
font-weight: 600;
color: var(--deep-sky-blue-300);
background: oklch(48.74% 0.113 240.76 / 0.15);
padding: 1px 5px;
border-radius: 6px;
}
.cl-error-badge {
font-size: 0.7rem;
font-weight: 600;
color: var(--mauve-400);
background: oklch(52.08% 0.293 290.98 / 0.1);
padding: 1px 6px;
border-radius: 6px;
}
/* ================================================================
Variant Popover
================================================================ */
.variant-popover {
position: absolute;
top: 100%;
left: 0;
z-index: 100;
margin-top: 6px;
background: var(--popover);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 8px 32px oklch(0% 0 0 / 0.5);
min-width: 280px;
max-width: 420px;
max-height: 360px;
overflow: hidden;
display: flex;
flex-direction: column;
animation: popoverIn 0.12s ease-out;
}
@keyframes popoverIn {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.vp-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
}
.vp-title {
font-size: 0.82rem;
font-weight: 600;
color: var(--foreground);
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.vp-count {
font-size: 0.7rem;
color: var(--muted-foreground);
white-space: nowrap;
}
.vp-close {
background: none;
border: none;
color: var(--muted-foreground);
font-size: 1.2rem;
cursor: pointer;
padding: 0 4px;
line-height: 1;
transition: color 0.15s;
}
.vp-close:hover {
color: var(--foreground);
}
/* ── Variant Grid ── */
.vp-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 8px;
padding: 10px;
overflow-y: auto;
max-height: 300px;
}
.vp-option {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
cursor: pointer;
padding: 6px;
border: 2px solid transparent;
border-radius: calc(var(--radius) - 1px);
transition: border-color 0.15s, background 0.15s;
}
.vp-option:hover {
background: var(--muted);
border-color: var(--taupe-700);
}
.vp-option-selected {
border-color: var(--primary);
background: oklch(52.08% 0.293 290.98 / 0.08);
}
.vp-thumb {
width: 70px;
height: 98px;
object-fit: cover;
border-radius: calc(var(--radius) - 2px);
background: var(--muted);
display: block;
}
.vp-label {
font-size: 0.62rem;
color: var(--muted-foreground);
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
/* ================================================================
Preview Panel
================================================================ */
.preview-panel {
flex-direction: column;
align-items: center;
width: 100%;
}
/* ── Secondary button (Back to Cards) ── */
.btn-secondary {
background: transparent;
color: var(--muted-foreground);
border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
background: var(--muted);
color: var(--foreground);
}
/* ── Button spacing within actions section ── */
.sidebar-section .btn + .btn {
margin-top: 8px;
}