-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme.js
More file actions
1239 lines (1219 loc) · 43.6 KB
/
Copy paththeme.js
File metadata and controls
1239 lines (1219 loc) · 43.6 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
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// One module-level stylesheet rendered once at the app root as
// <style>{CSS}</style>. Style is via semantic `st-`-prefixed classNames;
// inline style={} is reserved for render-time dynamic values (the skeleton
// block dimensions, the installed-dot's update tint). App-driven variants
// (including every action button's state) ride is-* / variant classNames,
// never JS style helpers — the action buttons share the one canonical
// st-btn component so they're identical across the card and detail views.
// Shared chrome (root, segmented tabs, empty, sheet, buttons, toast) is
// fenced with mobius-ui markers so a
// future extraction into @mobius/ui is mechanical.
export const CSS = `
/* mobius-ui:Root v1 — keep in sync; library candidate. Diverge below the marker only. */
.st-root {
position: relative; /* anchor for scrims / sheets / toasts (absolute, not fixed) */
height: 100%; width: 100%; max-width: 100%; display: flex; flex-direction: column;
background: var(--bg); color: var(--text);
font-family: var(--font); overflow: hidden;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
}
.st-scroll {
flex: 1; min-height: 0;
overflow-y: auto; overflow-x: hidden;
padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
overscroll-behavior: contain;
word-break: break-word; overflow-wrap: anywhere;
}
/* /mobius-ui:Root */
/* mobius-ui:Scrollskin v2 — keep in sync; hidden by default, content stays scrollable. */
.st-scroll,
.st-sheet {
scrollbar-width: none;
-ms-overflow-style: none;
}
.st-scroll::-webkit-scrollbar,
.st-sheet::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
}
/* /mobius-ui:Scrollskin */
/* mobius-ui:Focus v1 — keep in sync; library candidate. A single
keyboard-focus ring for every interactive control, so no element can
ship without a visible focus indicator. .st-btn and .st-card already
declare matching rings below; this is the floor, not a doubled ring. */
:where(button, a, input, textarea, select, summary, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* /mobius-ui:Focus */
/* Honor reduced-motion: collapse every animation/transition to ~instant
so the skeleton pulse, card lift, and active-state scales don't move
for motion-sensitive users. */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* App-specific header — title + a segmented tab bar, not the canonical
brand-cluster header. Kept on the store's own values. */
.st-header {
padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
flex-shrink: 0;
border-bottom: 1px solid var(--border);
background: var(--bg);
}
/* Single header row: the brand icon sits left, the Browse / From URL
segmented control fills the rest of the same row (no second row). */
.st-title-row {
display: flex; align-items: center; gap: 12px;
}
.st-brand-icon {
width: 34px; height: 34px; border-radius: 8px;
object-fit: cover; flex-shrink: 0; display: block;
}
.st-brand-fallback {
width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
background: var(--accent); color: var(--accent-fg);
font-size: 22px; font-weight: 700; line-height: 1;
}
/* mobius-ui:Segmented v1 — keep in sync; library candidate. Diverge below the marker only. */
.st-seg {
display: inline-flex; gap: 2px; padding: 3px;
background: var(--surface2, var(--surface)); border: 1px solid var(--border); border-radius: 10px;
}
.st-seg-btn {
min-height: 44px; padding: 6px 14px; border: 0; border-radius: 7px;
background: transparent; color: var(--muted); font-family: var(--font);
font-size: 13px; font-weight: 650; cursor: pointer; transition: background 0.15s, color 0.15s;
touch-action: manipulation; user-select: none;
}
@media (hover: hover) {
.st-seg-btn:hover { color: var(--text); }
}
@media (prefers-reduced-motion: no-preference) {
.st-seg-btn:active { opacity: 0.75; }
}
.st-seg-btn.is-active { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.st-seg.is-accent .st-seg-btn.is-active { background: var(--accent-hover, var(--accent)); color: var(--accent-fg); box-shadow: none; }
/* /mobius-ui:Segmented */
/* The store's tab bar: segmented control shares the header row with the
brand icon, taking the remaining width with each button splitting it
equally. min-width:0 lets it shrink without overflowing on narrow phones. */
.st-tabs { display: flex; flex: 1; min-width: 0; gap: 4px; border-radius: 10px; }
.st-tabs .st-seg-btn { flex: 1; min-width: 0; }
/* Discovery controls: compact search + category chips. This is an
operational filter surface, not a hero — it sits in-flow above the grid and
keeps the direct install/update card actions visible. */
.st-discovery {
margin: 0 0 16px;
display: flex;
flex-direction: column;
gap: 10px;
}
.st-search-row {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.st-search-label {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.st-search-input {
flex: 1;
min-width: 0;
min-height: 44px;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
font-family: var(--font);
font-size: 14px;
outline: none;
transition: border-color 150ms, box-shadow 150ms, background 150ms;
}
.st-search-input::placeholder { color: color-mix(in srgb, var(--muted) 88%, var(--text)); }
.st-search-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}
.st-search-clear {
flex: 0 0 auto;
width: 44px;
height: 44px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--surface2, var(--surface));
color: var(--muted);
font-size: 18px;
line-height: 1;
font-family: var(--font);
cursor: pointer;
touch-action: manipulation;
user-select: none;
}
@media (hover: hover) {
.st-search-clear:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
}
@media (prefers-reduced-motion: no-preference) {
.st-search-clear:active { opacity: 0.75; transform: scale(0.97); }
}
.st-result-count {
flex-shrink: 0;
min-width: 48px;
text-align: right;
color: var(--muted);
font-size: 12px;
font-family: var(--mono, monospace);
}
.st-category-strip {
display: flex;
flex-wrap: wrap;
gap: 8px;
overflow: visible;
padding-bottom: 1px;
}
.st-category-strip::-webkit-scrollbar { display: none; width: 0; height: 0; }
.st-chip {
flex: 0 0 auto;
min-width: 44px;
min-height: 44px;
padding: 7px 12px;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--muted);
font-family: var(--font);
font-size: 13px;
font-weight: 600;
cursor: pointer;
touch-action: manipulation;
user-select: none;
transition: background 150ms, border-color 150ms, color 150ms;
display: inline-flex;
align-items: center;
gap: 6px;
}
.st-chip.is-active {
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 14%, var(--surface));
color: var(--text);
}
.st-chip-count {
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, var(--text) 12%, transparent);
color: var(--text);
font-size: 11px;
line-height: 1;
font-family: var(--mono, monospace);
}
@media (hover: hover) {
.st-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
}
.st-notice {
margin: 0 0 14px;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--surface2, var(--surface));
color: var(--muted);
font-size: 13px;
line-height: 1.4;
}
.st-notice.is-warning {
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
color: var(--text);
}
.st-notice-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.st-notice-row > span { min-width: 0; }
.st-notice-action {
flex: 0 0 auto;
}
@media (max-width: 720px) {
.st-category-strip {
flex-wrap: nowrap;
overflow-x: auto;
margin-right: -16px;
padding-right: 16px;
scrollbar-width: none;
-ms-overflow-style: none;
}
}
/* App-specific catalog grid + tiles. The vertical-tile card diverges
structurally from the canonical horizontal list Card, so it keeps the
store's own values + class names. State rides is-* modifier classes. */
.st-catalog-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 16px;
}
/* The card is a non-interactive container (not role=button). The open
affordance is a real <button class="st-card-open"> whose ::after overlay
stretches across the whole card, so hover/focus on it lifts the card and
a click anywhere outside the action button opens details. The action
button rides z-index:1 above that overlay. */
.st-card {
position: relative;
display: flex; flex-direction: column;
align-items: center; text-align: center;
padding: 16px 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
transition: border-color 150ms, transform 150ms, box-shadow 150ms, background 150ms;
min-height: 44px;
touch-action: manipulation; user-select: none;
}
.st-card.is-update {
background: color-mix(in srgb, var(--accent) 10%, var(--surface));
border-color: var(--accent);
}
.st-card.is-conflict {
background: color-mix(in srgb, var(--danger, #e5484d) 8%, var(--surface));
border-color: color-mix(in srgb, var(--danger, #e5484d) 70%, var(--border));
}
.st-card.is-unavailable {
background: color-mix(in srgb, var(--text) 4%, var(--surface));
border-color: color-mix(in srgb, var(--text) 22%, var(--border));
}
.st-card.is-installed {
background: color-mix(in srgb, var(--text) 5%, var(--surface));
border: 1px solid color-mix(in srgb, var(--text) 22%, var(--border));
}
.st-card.is-error {
border: 1px dashed var(--border);
}
/* The app name is the card's open affordance. Its ::after overlay covers
the whole card so the icon / name / version / desc all open details. */
.st-card-open {
position: static;
border: 0; background: transparent; padding: 0; margin: 0 0 4px;
font-family: var(--font); color: var(--text);
font-size: 14px; font-weight: 600; line-height: 1.25;
cursor: pointer;
min-height: 44px;
align-items: flex-start;
display: -webkit-box; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; overflow: hidden;
touch-action: manipulation; user-select: none;
}
.st-sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.st-card-open::after {
content: ""; position: absolute; inset: 0; border-radius: inherit;
}
.st-card-open:focus-visible { outline: none; }
.st-card-open:focus-visible::after {
outline: 2px solid var(--accent); outline-offset: 2px;
}
/* Interaction lift — gated on hover:hover so touch devices don't get stuck hover states. */
@media (hover: hover) {
.st-card:has(.st-card-open:hover) {
transform: translateY(-1px);
box-shadow: 0 4px 8px color-mix(in srgb, var(--accent) 14%, transparent);
border-color: var(--accent);
}
}
.st-card:has(.st-card-open:focus-visible) {
transform: translateY(-1px);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent);
border-color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
.st-card:has(.st-card-open:active) { transform: scale(0.98); opacity: 0.9; }
}
/* Icons float on the card with no tile or border — clean transparent
presentation. Almost every catalog repo ships a transparent glossy-3D PNG
(memory, reflection, news, atlas, notes, latex, …); the lone holdout still
shipping an opaque baked-in square is cuberun (pending an imagegen regen).
The slot only keeps overflow:hidden + the radius so that one opaque square
gets its corners clipped to match. The letter fallback (no icon / load
error) keeps a surface tile so an iconless app still reads as finished. */
.st-icon-wrap {
width: 96px; height: 96px; border-radius: 22px;
background: transparent;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0; overflow: hidden;
}
/* A relative anchor around the IconBox so the "installed" check dot can
sit at the icon's bottom-right corner without leaking out of
.st-icon-wrap's overflow: hidden. Spacing-below lives on this slot. */
.st-icon-slot { position: relative; margin-bottom: 12px; display: inline-block; }
.st-icon-img { width: 100%; height: 100%; object-fit: contain; }
/* Letter fallback (no icon / load error) gets a surface tile + border so the
initial reads as a recognisable icon slot — real icons float transparent,
but an iconless app still looks finished. */
.st-icon-wrap--letter {
background: var(--surface2);
border: 1px solid var(--border);
}
.st-icon-letter { font-size: 36px; font-weight: 700; color: var(--accent); }
/* A tiny check dot sits at the icon's bottom-right when the app is
already installed. Quicker to read than the pill text, lets the grid
double as an "at a glance" inventory. */
.st-installed-dot {
position: absolute;
bottom: -2px; right: -2px;
width: 22px; height: 22px; border-radius: 999px;
background: var(--surface);
border: 2px solid var(--surface);
display: flex; align-items: center; justify-content: center;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.st-installed-dot-inner {
width: 18px; height: 18px; border-radius: 999px;
background: color-mix(in srgb, var(--accent) 80%, var(--surface));
color: var(--accent-fg);
display: flex; align-items: center; justify-content: center;
font-size: 12px; font-weight: 700; line-height: 1;
}
.st-installed-dot-inner.is-update { background: var(--accent); }
.st-card-name {
font-size: 14px; font-weight: 600; line-height: 1.25;
margin-bottom: 4px;
display: -webkit-box; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; overflow: hidden;
}
.st-card-version {
font-size: 12px; color: var(--muted);
font-family: var(--mono, monospace);
margin-bottom: 5px;
display: flex; align-items: center; gap: 6px;
}
.st-card-state-line {
max-width: 100%;
min-height: 17px;
margin-bottom: 8px;
color: var(--muted);
font-size: 12px;
font-weight: 650;
line-height: 1.35;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.st-card-state-line.is-update { color: var(--accent); }
.st-card-state-line.is-conflict { color: var(--danger, #e5484d); }
.st-card-state-line.is-unavailable { color: var(--muted); }
.st-card-agent {
font-family: var(--font, inherit); font-weight: 600;
font-size: 12px; letter-spacing: 0;
color: var(--text);
background: color-mix(in srgb, var(--accent) 16%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
border-radius: 999px; padding: 1px 7px;
}
.st-card-desc {
font-size: 12px; color: var(--muted); line-height: 1.35;
margin-bottom: 12px;
display: -webkit-box; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; overflow: hidden;
text-align: center;
min-height: 33px;
}
/* Top-border separator between the description and the one card action.
Each card reads as exactly one state/action: Install, Installed, or Update.
z-index:1 lifts the action above the .st-card-open ::after overlay so it
stays independently clickable. */
.st-card-status-row {
position: relative;
z-index: 1;
width: 100%;
padding-top: 8px;
border-top: 1px solid var(--border);
margin-top: auto;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: center;
gap: 8px;
}
.st-card-action {
width: 100%;
min-height: 44px;
flex-shrink: 0;
border: 1px solid transparent;
border-radius: 7px;
padding: 5px 12px;
background: var(--accent-hover, var(--accent));
color: var(--accent-fg);
font-weight: 600;
font-size: 12px;
cursor: pointer;
font-family: var(--font);
touch-action: manipulation; user-select: none;
}
/* Install and Update share the accent primary look so the action button
reads identically across every card; the card-level border + checkmark
dot (see .st-card.is-update) carry the "update available" signal without
an off-brand second button colour. Installed = a muted, lower-emphasis
fill so the primary actions stay the eye-catchers in the grid. */
.st-card-action.is-update { background: var(--accent-hover, var(--accent)); }
.st-card-action.is-conflict {
background: var(--danger, #e5484d);
color: var(--accent-fg);
}
.st-card-action.is-unavailable {
background: color-mix(in srgb, var(--text) 9%, transparent);
color: var(--text);
border-color: color-mix(in srgb, var(--text) 18%, var(--border));
}
.st-card-action.is-installed {
background: color-mix(in srgb, var(--text) 9%, transparent);
color: var(--text);
border-color: color-mix(in srgb, var(--text) 18%, var(--border));
}
.st-card-action:disabled { opacity: 0.65; cursor: default; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
.st-card-action:not(:disabled):active { opacity: 0.8; transform: scale(0.97); }
}
.st-card-inline-error {
position: relative;
z-index: 2;
width: 100%;
margin-top: 8px;
padding: 8px;
border-radius: 8px;
background: color-mix(in srgb, var(--danger, #e5484d) 10%, transparent);
color: var(--danger);
font-size: 12px;
line-height: 1.35;
border: 1px solid color-mix(in srgb, var(--danger, #e5484d) 30%, transparent);
box-sizing: border-box;
}
.st-card-inline-error-text {
user-select: text;
cursor: text;
}
.st-card-inline-error-action {
width: 100%;
min-height: 38px;
margin-top: 8px;
padding: 7px 12px;
user-select: none;
}
.st-card-notice {
position: relative;
z-index: 1;
width: 100%;
margin-top: 8px;
padding: 10px;
border-radius: 8px;
background: var(--surface);
color: var(--text);
border: 1px solid var(--accent);
font-size: 12px;
line-height: 1.35;
text-align: left;
box-sizing: border-box;
}
.st-card-notice-actions {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 10px;
}
.st-card-notice-actions .st-big-btn,
.st-card-notice-actions .st-btn { width: 100%; }
/* Skeleton placeholder — same shape as a card so the grid doesn't reflow
when the real manifests arrive. Per-block width/height stay inline. */
.st-skeleton-card {
display: flex; flex-direction: column; align-items: center;
padding: 16px 12px;
background: var(--surface);
border: 1px solid var(--border); border-radius: 12px;
min-height: 44px;
opacity: 0.7;
}
.st-skeleton-block {
border-radius: 6px;
background: color-mix(in srgb, var(--text) 8%, transparent);
animation: mobius-store-pulse 1.4s ease-in-out infinite;
}
@keyframes mobius-store-pulse {
0%, 100% { opacity: 0.55; }
50% { opacity: 0.95; }
}
.st-card-error-body {
font-size: 12px; color: var(--muted); line-height: 1.4;
margin-top: 4px; margin-bottom: 12px;
text-align: center;
}
.st-card-retry {
padding: 6px 12px; border-radius: 8px;
border: 1px solid var(--border); background: transparent;
color: var(--text); font-size: 12px; font-weight: 600;
cursor: pointer; font-family: var(--font);
min-height: 44px;
transition: background 150ms;
touch-action: manipulation; user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
.st-card-retry:active { opacity: 0.75; }
}
/* App-specific "From URL" tab. */
.st-url-form {
background: var(--surface); border: 1px solid var(--border);
border-radius: 12px; padding: 16px;
}
.st-url-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: block; }
.st-url-hint { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.st-url-input {
width: 100%; padding: 12px;
background: var(--bg); color: var(--text);
border: 1px solid var(--border); border-radius: 8px;
font-size: 13px; font-family: var(--mono, monospace);
box-sizing: border-box;
margin-bottom: 12px;
min-height: 44px;
transition: border-color 150ms, box-shadow 150ms;
}
/* Focus ring — was JS focused state, now a real :focus pseudo-class.
Same accent ring the catalog cards use. The shared :focus-visible block
keeps a keyboard outline; this border+shadow is the always-on focus cue. */
.st-url-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}
/* Suppress the UA outline only for pointer focus; keyboard focus keeps the
shared :focus-visible accent ring on top of the border+shadow cue. */
.st-url-input:focus:not(:focus-visible) { outline: none; }
.st-primary-btn {
padding: 12px 20px; border-radius: 10px; border: none;
background: var(--accent-hover, var(--accent)); color: var(--accent-fg);
font-size: 14px; font-weight: 600; cursor: pointer;
font-family: var(--font);
min-height: 44px;
transition: background 150ms;
touch-action: manipulation; user-select: none;
width: 100%;
}
.st-primary-btn:disabled { pointer-events: none; opacity: 0.65; }
@media (hover: hover) {
.st-primary-btn:not(:disabled):hover { filter: brightness(0.94); }
}
@media (prefers-reduced-motion: no-preference) {
.st-primary-btn:not(:disabled):active { opacity: 0.82; transform: scale(0.98); }
}
/* Live host indicator below the URL input — switches between "trusted
source" (calm accent badge) and "unfamiliar host" (muted, not red —
a personal repo is legitimate; inform, don't alarm). State = is-*. */
.st-host-badge {
display: inline-flex; align-items: center; gap: 6px;
padding: 4px 10px; border-radius: 999px;
font-size: 12px; font-weight: 500;
font-family: var(--font);
background: color-mix(in srgb, var(--text) 6%, transparent);
color: var(--muted);
border: 1px solid var(--border);
margin-bottom: 12px;
}
.st-host-badge.is-trusted {
background: color-mix(in srgb, var(--accent) 12%, transparent);
color: var(--accent);
border-color: var(--accent);
}
.st-host-badge-dot {
width: 6px; height: 6px; border-radius: 999px;
background: color-mix(in srgb, var(--muted) 60%, transparent);
flex-shrink: 0;
}
.st-host-badge.is-trusted .st-host-badge-dot { background: var(--accent); }
.st-host-badge-host { font-family: var(--mono, monospace); font-size: 12px; }
.st-error-box {
background: color-mix(in srgb, var(--danger, #e5484d) 12%, transparent);
color: var(--danger); padding: 12px;
border-radius: 8px; font-size: 14px;
margin-top: 12px; line-height: 1.5;
border: 1px solid color-mix(in srgb, var(--danger, #e5484d) 40%, transparent);
}
/* App-specific detail view. */
.st-detail-header {
padding: 12px 16px; display: flex; align-items: center;
gap: 8px; border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.st-back-btn {
background: none; border: none; color: var(--accent);
font-size: 14px; cursor: pointer; padding: 8px 12px;
font-family: var(--font); font-weight: 500;
min-height: 44px;
display: inline-flex; align-items: center; gap: 4px;
margin: -8px -8px; /* compensate so the visible affordance still aligns */
border-radius: 8px;
transition: background 150ms;
touch-action: manipulation; user-select: none;
}
@media (hover: hover) {
.st-back-btn:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
}
@media (prefers-reduced-motion: no-preference) {
.st-back-btn:active { opacity: 0.75; }
}
.st-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.st-hero-text { flex: 1; min-width: 0; }
/* Detail-view hero icon — clean transparent, same as the grid (see
.st-icon-wrap); overflow-clip rounds the lone opaque (cuberun) icon. */
.st-hero-icon {
width: 80px; height: 80px; border-radius: 18px;
background: transparent;
display: flex;
align-items: center; justify-content: center;
flex-shrink: 0; overflow: hidden;
}
.st-hero-icon.is-letter { background: var(--surface2); border: 1px solid var(--border); }
.st-hero-icon-letter { font-size: 32px; font-weight: 700; color: var(--accent); }
.st-hero-name { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: 0; user-select: none; }
.st-hero-meta { font-size: 12px; color: var(--muted); font-family: var(--mono, monospace); user-select: none; }
.st-detail-desc { font-size: 14px; line-height: 1.55; color: var(--text); margin-bottom: 24px; }
.st-detail-section { margin-bottom: 24px; }
.st-section {
font-size: 13px; font-weight: 700; color: var(--text);
letter-spacing: 0; margin: 22px 0 14px;
user-select: none;
}
.st-scroll > .st-section:first-child { margin-top: 0; }
.st-section-label {
font-size: 12px; font-weight: 600; color: var(--muted);
letter-spacing: 0;
margin-bottom: 8px;
user-select: none;
}
.st-permission-row {
display: flex; gap: 12px;
padding: 12px; background: var(--surface);
border: 1px solid var(--border); border-radius: 8px;
margin-bottom: 8px; font-size: 14px; line-height: 1.5;
}
.st-perm-row-main { flex: 1; min-width: 0; }
.st-perm-label { font-weight: 600; color: var(--text); }
.st-perm-detail { color: var(--muted); }
.st-capability-state,
.st-capability-change {
padding: 12px;
color: var(--muted);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
font-size: 13px;
line-height: 1.45;
}
.st-capability-change { margin-bottom: 10px; color: var(--text); }
.st-capability-list { display: grid; gap: 8px; }
.st-perm-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
/* A short capability tag next to each permission row. State (read / write /
muted) rides is-* modifiers; 'no'/'none' both render muted. */
.st-perm-tag {
flex-shrink: 0;
padding: 2px 8px; border-radius: 999px;
font-size: 12px; font-weight: 600;
font-family: var(--font); letter-spacing: 0;
background: color-mix(in srgb, var(--accent) 22%, transparent);
color: var(--accent);
border: 1px solid var(--accent);
align-self: flex-start;
}
.st-perm-tag.is-read { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.st-perm-tag.is-muted {
background: color-mix(in srgb, var(--muted) 14%, transparent);
color: var(--muted);
border-color: var(--border);
}
.st-schedule-row {
padding: 12px; background: var(--surface);
border: 1px solid var(--border); border-radius: 8px;
font-size: 14px; line-height: 1.5;
}
.st-schedule-main { font-weight: 600; color: var(--text); }
.st-schedule-note { color: var(--muted); margin-top: 4px; font-size: 12px; }
.st-setup-card {
padding: 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
font-size: 14px;
line-height: 1.5;
}
.st-setup-main { font-weight: 650; color: var(--text); }
.st-setup-note { color: var(--muted); margin-top: 4px; }
.st-setup-bottom {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 10px;
}
.st-setup-meta {
display: inline-flex;
padding: 3px 8px;
border-radius: 999px;
background: color-mix(in srgb, var(--accent) 13%, transparent);
color: var(--accent);
font-size: 12px;
font-weight: 650;
}
.st-setup-action {
min-width: 0;
white-space: nowrap;
padding-inline: 12px;
}
@media (max-width: 520px) {
.st-setup-bottom {
align-items: flex-start;
flex-direction: column;
}
}
/* External-libs disclosure — a quiet note on a muted surface, dep list
mono-formatted (not an alarming panel). */
.st-esm-note {
padding: 12px; background: var(--surface);
border: 1px solid var(--border); border-radius: 8px;
font-size: 14px; line-height: 1.5;
color: var(--muted);
}
.st-esm-dep-list {
font-family: var(--mono, monospace);
font-size: 12px;
color: var(--text);
margin-top: 6px;
word-break: break-all;
}
.st-host-warn {
display: flex; gap: 12px; align-items: flex-start;
padding: 12px; margin-bottom: 12px;
background: var(--accent-dim, rgba(139, 108, 247, 0.15));
border: 1px solid var(--accent); border-radius: 8px;
font-size: 14px; line-height: 1.5;
}
.st-host-warn-icon { font-size: 16px; line-height: 1.2; color: var(--accent); flex-shrink: 0; }
.st-host-warn-host { font-weight: 600; color: var(--text); font-family: var(--mono, monospace); }
.st-host-warn-body { color: var(--muted); margin-top: 2px; }
.st-link { color: var(--accent); text-decoration: none; }
.st-installed-note { font-size: 14px; color: var(--muted); user-select: none; }
.st-detail-footer {
padding: 16px; border-top: 1px solid var(--border);
display: flex; flex-direction: column; gap: 10px;
flex-shrink: 0; background: var(--bg);
}
/* Footer CTAs: full-width canonical buttons. The shared .st-btn min-height
(44px) keeps the primary's height fixed across every label/busy state, so
"Open App" -> "Updating…" never shifts the row; the secondary "Uninstall"
sits below as a real, muted button (not an underlined text link) so both
actions read as one consistent control family. */
.st-detail-cta { width: 100%; font-size: 15px; }
/* Full-width solid accent button for the update-notice "Review in chat" /
"Resolve in chat" action. (The detail-footer CTA and modal confirm both
use the canonical st-btn now; this stays for the in-flow update notice.) */
.st-big-btn {
width: 100%; padding: 12px 16px; border-radius: 10px;
border: none; background: var(--accent-hover, var(--accent)); color: var(--accent-fg);
font-size: 14px; font-weight: 600; cursor: pointer;
font-family: var(--font);
min-height: 44px;
transition: background 150ms, transform 150ms;
touch-action: manipulation; user-select: none;
}
.st-big-btn:disabled { cursor: default; pointer-events: none; opacity: 0.65; }
@media (prefers-reduced-motion: no-preference) {
.st-big-btn:not(:disabled):active { opacity: 0.82; transform: scale(0.98); }
}
.st-danger-btn {
padding: 12px 16px; border-radius: 10px;
border: 1px solid var(--border); background: transparent;
color: var(--danger); font-size: 14px; font-weight: 600;
cursor: pointer; font-family: var(--font);
min-height: 44px;
touch-action: manipulation; user-select: none;
}
@media (hover: hover) {
.st-danger-btn:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); }
}
@media (prefers-reduced-motion: no-preference) {
.st-danger-btn:not(:disabled):active { opacity: 0.8; }
}
.st-danger-btn:disabled { pointer-events: none; opacity: 0.65; }
/* Update notice on the detail view (clean-merge / conflict). App-specific. */
.st-update-notice {
margin-top: 12px;
padding: 12px;
background: var(--surface);
border: 1px solid var(--accent);
border-radius: 10px;
font-size: 14px;
line-height: 1.45;
}
.st-update-notice-actions {
display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.st-update-notice-actions .st-btn { flex: 1 1 160px; min-width: 0; }
/* Self-update banner — the store checks for its own newer published
version and offers a one-tap update + reload. App-specific. */
.st-banner {
display: flex; align-items: center; gap: 12px;
margin: 0 0 16px; padding: 12px 16px;
background: color-mix(in srgb, var(--accent) 12%, var(--surface));
border: 1px solid var(--accent); border-radius: 12px;
font-size: 14px; line-height: 1.4;
}
.st-banner-msg { flex: 1; }
.st-banner-content { flex: 1; min-width: 0; }
.st-banner.is-reviewing { align-items: flex-start; }
.st-banner.is-reviewing .st-banner-msg { margin-bottom: 10px; }
.st-banner.is-reviewing .st-capability-list { gap: 6px; }
.st-banner.is-reviewing .st-permission-row { background: var(--bg); }
.st-banner-btn {
flex-shrink: 0; border: none; border-radius: 8px; padding: 8px 16px;
background: var(--accent-hover, var(--accent)); color: var(--accent-fg); font-weight: 600;
font-size: 13px; cursor: pointer; font-family: var(--font);
min-height: 44px;
touch-action: manipulation; user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
.st-banner-btn:not(:disabled):active { opacity: 0.8; transform: scale(0.97); }
}
/* mobius-ui:Empty v1 — keep in sync; library candidate. Diverge below the marker only. */
.st-empty {
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
max-width: 440px; margin: 0 auto; padding: 48px 24px; color: var(--muted);
}
.st-empty-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.st-empty-text { margin: 0; font-size: 14px; line-height: 1.6; }
/* /mobius-ui:Empty */
/* Read-only app-update review. Mirrors the platform updater's hierarchy: a
compact file summary first, full unified diff on demand, explicit apply. */
.st-update-review-scrim {
position: absolute; inset: 0; z-index: 150;
display: flex; align-items: center; justify-content: center;
padding: 16px;
background: rgba(0, 0, 0, 0.5);
overscroll-behavior: contain;
}
.st-update-review {
width: min(640px, 100%);
height: min(720px, calc(100% - 16px));
min-height: 0;
display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px;
padding: 18px;
border: 1px solid var(--border); border-radius: 16px;
background: var(--surface); color: var(--text);
overflow: hidden;
}
.st-update-review-head {
display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.st-update-review-title {
margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: 0;
}
.st-update-review-subtitle {
margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted);
}
.st-update-review-close {
flex: 0 0 auto; width: 36px; height: 36px; margin: -4px -4px 0 0;
display: grid; place-items: center;
border: 0; border-radius: 8px; background: transparent; color: var(--muted);
font: 400 22px/1 var(--font); cursor: pointer;
}
.st-update-review-close:disabled { opacity: 0.5; cursor: default; }
@media (hover: hover) {
.st-update-review-close:not(:disabled):hover { background: var(--surface2); color: var(--text); }
}
.st-update-review-body {
min-height: 0; overflow-y: auto; overflow-x: hidden;
display: flex; flex-direction: column; gap: 18px;
padding-right: 2px; overscroll-behavior: contain;
scrollbar-width: none;
}
.st-update-review-body::-webkit-scrollbar { display: none; }
.st-update-review-section { display: flex; flex-direction: column; gap: 9px; }
.st-update-review-section > h3,
.st-update-review-section-head h3 {
margin: 0; font-size: 12px; line-height: 1.4; font-weight: 650; color: var(--muted);
}
.st-update-review-section-head {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.st-update-review-total,
.st-update-review-stat {
display: inline-flex; align-items: baseline; gap: 8px;
font: 600 12px/1.3 var(--mono, monospace);
}
.st-update-review-total .is-add,
.st-update-review-stat .is-add { color: var(--green); }
.st-update-review-total .is-del,
.st-update-review-stat .is-del { color: var(--danger); }
.st-update-review-files {
list-style: none; margin: 0; padding: 0;
border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.st-update-review-file {
min-height: 44px; display: grid;
grid-template-columns: 24px minmax(0, 1fr) auto;
align-items: center; gap: 10px; padding: 8px 4px;
}
.st-update-review-file + .st-update-review-file { border-top: 1px solid var(--border); }
.st-update-review-badge {
width: 22px; height: 22px; display: grid; place-items: center;
border-radius: 6px;
background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted);
font: 700 11px/1 var(--mono, monospace);