-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor-primitives.css
More file actions
1559 lines (1504 loc) · 62 KB
/
Copy patheditor-primitives.css
File metadata and controls
1559 lines (1504 loc) · 62 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
/* editor-primitives.css — chrome for in-engine editors, inspectors, IDEs,
debug HUDs. All rules under .ds-247420 scope (build prefixes). Tokens
resolved from colors_and_type.css: --panel-{0..3}, --panel-text(-2/-3),
--accent, --accent-fg, --rule, --rule-strong, --r-1/-2, --ff-mono. */
/* ---------------------------------------------------------------
Docked panel — the engine-editor idiom: flush, square, dense,
full-height. Unlike the dashboard .panel card (rounded, margined,
shadowed) this docks edge-to-edge with a 1px --rule seam. Use for
inspector / hierarchy / apps / events columns inside an editor.
--------------------------------------------------------------- */
.ds-ep-panel {
display: flex; flex-direction: column;
min-height: 0; height: 100%;
margin: 0; border-radius: 0; box-shadow: none;
background: var(--panel-1);
color: var(--panel-text);
font: var(--fs-tiny, 12px)/var(--lh-base, 1.55) var(--ff-mono, monospace);
overflow: hidden;
}
.ds-ep-panel-head {
flex-shrink: 0;
display: flex; align-items: center; justify-content: space-between; gap: 8px;
padding: 6px 10px;
border-bottom: 1px solid var(--rule);
font-size: var(--fs-micro, 11px); font-weight: 600;
text-transform: uppercase; letter-spacing: 0.1em;
color: var(--panel-text-3);
white-space: nowrap;
}
.ds-ep-panel-head > :last-child {
font-weight: 500; letter-spacing: 0;
color: var(--panel-text-2);
overflow: hidden; text-overflow: ellipsis;
}
.ds-ep-panel-body {
flex: 1; min-height: 0; overflow: auto;
padding: 6px 8px;
}
.ds-ep-panel-body.flush { padding: 0; }
/* A sub-section divider inside a docked panel (e.g. app-prop mount). Only
shows its top seam when it actually has content — an empty section is
collapsed so no stray dashed rule floats over an empty inspector. */
.ds-ep-panel-section {
flex-shrink: 0;
border-top: 1px solid var(--rule);
overflow: auto;
}
.ds-ep-panel-section:empty { display: none; border-top: 0; }
/* Dense status strip for editor chrome — thin, flush, bordered top. */
.ds-ep-statusbar {
flex-shrink: 0;
display: flex; align-items: center; justify-content: space-between; gap: 8px;
min-height: 0; height: 26px;
padding: 0 10px;
border-top: 1px solid var(--rule);
background: var(--panel-1);
color: var(--panel-text-2);
font: var(--fs-micro, 11px)/1 var(--ff-mono, monospace);
}
.ds-ep-statusbar-left, .ds-ep-statusbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ds-ep-statusbar-left { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Buttons inside the dense strip shrink to fit the 26px band. */
.ds-ep-statusbar button {
min-height: 0; height: 20px; padding: 0 8px;
border-radius: var(--r-1, 4px);
font: var(--fs-micro, 11px)/1 var(--ff-mono, monospace);
}
/* Toolbar */
.ds-ep-toolbar {
display: flex; align-items: center; gap: 6px;
padding: 8px 10px;
background: var(--panel-1);
color: var(--panel-text);
border-bottom: 1px solid var(--rule);
font: var(--fs-tiny, 12px)/var(--lh-base, 1.55) var(--ff-mono, monospace);
}
.ds-ep-toolbar.dense { padding: 2px 4px; gap: 2px; }
.ds-ep-toolbar-leading,
.ds-ep-toolbar-center,
.ds-ep-toolbar-trailing { display: flex; align-items: center; gap: 4px; }
.ds-ep-toolbar-trailing { margin-left: auto; }
.ds-ep-toolbar-center { flex: 1; min-width: 0; }
/* ToolbarRow — flat wrapping action row, no slot structure. */
.ds-ep-toolbar-row {
display: flex; gap: var(--space-2, 8px); align-items: center; flex-wrap: wrap;
margin-bottom: var(--space-2-5, 10px);
}
.ds-ep-toolbar-row input,
.ds-ep-toolbar-row select,
.ds-ep-toolbar-row textarea {
background: var(--panel-2, var(--bg-2));
border: 1px solid var(--rule);
color: var(--panel-text, var(--fg));
padding: var(--space-1-5, 5px) var(--space-2-5, 10px);
border-radius: var(--r-1, 4px);
font-size: var(--fs-tiny, 12px);
font-family: inherit;
}
.ds-ep-toolbar-row input { flex: 1; min-width: 140px; }
.ds-ep-toolbar-row input:focus-visible,
.ds-ep-toolbar-row select:focus-visible,
.ds-ep-toolbar-row textarea:focus-visible {
outline: none; border-color: var(--accent);
}
/* Tabs */
.ds-ep-tabs { display: flex; flex-direction: column; min-height: 0; height: 100%; position: relative; }
.ds-ep-tabs-head {
display: flex; flex-shrink: 0; flex-wrap: nowrap;
overflow-x: auto; scroll-behavior: smooth;
background: var(--panel-1);
border-bottom: 1px solid var(--rule);
position: relative;
}
/* Sliding indicator — a single 2px bar under the active tab that animates its
left/width between tabs (webgeist's "expensive" underline-slide), instead of
each tab toggling its own static border. A REAL child element positioned by
the Tabs ref (inline left/width/top). It lives as a child of the OUTER
.ds-ep-tabs column (position:relative), NOT the .ds-ep-tabs-head, because an
absolutely-positioned child of a horizontal flex container mis-sizes to 0 in
Chromium; the outer column is a vertical flex, which sizes it correctly.
The ref sets top to the head's height so it sits on the head's bottom edge.
.has-slider gates the static per-tab border off (below). */
.ds-ep-tab-indicator {
/* Sized by left+right insets (set inline by positionSlider), NOT width — an
abspos element's `width` computes to 0 in some flex-sibling layouts in
Chromium, whereas insets size reliably. left+right at the same value
collapse it to 0 until positioned (no-JS: invisible). */
position: absolute; top: 0; left: 0; right: 100%; height: 2px;
background: var(--accent);
transition: left var(--dur-base, 160ms) var(--ease, ease),
right var(--dur-base, 160ms) var(--ease, ease);
pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
.ds-ep-tab-indicator { transition: none; }
}
.ds-ep-tab {
flex: 1; appearance: none; background: transparent; border: 0;
border-bottom: 2px solid transparent;
color: var(--panel-text-3);
padding: 8px 10px;
font: inherit; cursor: pointer;
transition: color var(--dur-snap, 80ms) var(--ease, ease), border-color var(--dur-snap, 80ms) var(--ease, ease);
}
.ds-ep-tab:hover { color: var(--panel-text-2); }
.ds-ep-tab.active {
color: var(--accent);
border-bottom-color: var(--accent);
}
/* When the JS slider is active, the active tab's own static border is
redundant (the sliding bar draws it) — hide it so they don't double up. */
.ds-ep-tabs-head.has-slider .ds-ep-tab.active { border-bottom-color: transparent; }
/* Flex column so a full-height docked child (e.g. an inspector panel) fills
the tab body instead of collapsing under a block container. */
.ds-ep-tabs-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
/* EventLog — dense console-style log rows (one event per line). */
.ds-ep-eventlog {
display: flex; flex-direction: column;
font: var(--fs-tiny, 12px)/1.4 var(--ff-mono, monospace);
color: var(--panel-text);
}
.ds-ep-eventrow {
display: flex; align-items: baseline; gap: 8px;
padding: 3px 8px;
border-bottom: 1px solid color-mix(in oklab, var(--rule) 50%, transparent);
}
.ds-ep-eventrow:hover { background: color-mix(in oklab, var(--accent) 6%, transparent); }
.ds-ep-eventrow-type { color: var(--panel-text); font-weight: 600; flex-shrink: 0; }
.ds-ep-eventrow-sub { color: var(--panel-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* TreeView / TreeItem */
.ds-ep-tree {
display: flex; flex-direction: column;
color: var(--panel-text);
font: var(--fs-tiny, 12px)/var(--lh-base, 1.55) var(--ff-mono, monospace);
overflow: auto;
}
.ds-ep-tree-item { display: flex; flex-direction: column; }
.ds-ep-tree-item:focus-visible { outline: var(--focus-w) solid var(--focus-color); outline-offset: var(--focus-offset); }
.ds-ep-tree-row {
display: flex; align-items: center; gap: 6px;
padding: 4px 8px 4px 0;
border-radius: var(--r-1, 10px);
cursor: pointer;
color: var(--panel-text-2);
transition: background var(--dur-snap, 80ms) var(--ease, ease), color var(--dur-snap, 80ms) var(--ease, ease);
}
.ds-ep-tree-row:hover {
background: color-mix(in oklab, var(--accent) 8%, transparent);
color: var(--panel-text);
}
.ds-ep-tree-item.selected > .ds-ep-tree-row {
background: color-mix(in oklab, var(--accent) 22%, transparent);
color: var(--accent);
}
.ds-ep-tree-twist {
width: 12px; flex-shrink: 0; text-align: center;
color: var(--panel-text-3);
transition: transform var(--dur-snap, 80ms) var(--ease, ease);
}
.ds-ep-tree-twist.open { transform: rotate(90deg); }
.ds-ep-tree-glyph { flex-shrink: 0; color: var(--panel-text-3); }
.ds-ep-tree-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-ep-tree-tag {
flex-shrink: 0; padding-left: 6px;
font-size: 0.85em; color: var(--panel-text-3);
}
.ds-ep-tree-children { display: flex; flex-direction: column; }
/* PropertyGrid / PropertyField */
.ds-ep-propgrid {
display: flex; flex-direction: column; gap: 6px;
padding: 8px;
color: var(--panel-text);
font: var(--fs-tiny, 12px)/var(--lh-base, 1.55) var(--ff-mono, monospace);
}
.ds-ep-propfield {
display: grid;
grid-template-columns: minmax(80px, 120px) 1fr;
gap: 4px 10px;
align-items: center;
}
.ds-ep-propfield.inline { display: flex; gap: 8px; }
.ds-ep-propfield-label {
color: var(--panel-text-3);
font-size: 0.85em;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.ds-ep-propfield-value {
color: var(--panel-text);
display: flex; align-items: center; gap: 4px; min-width: 0;
}
.ds-ep-propfield-value input,
.ds-ep-propfield-value select,
.ds-ep-propfield-value textarea {
appearance: none;
background: var(--panel-2);
color: var(--panel-text);
border: 1px solid var(--rule);
border-radius: var(--r-1, 10px);
padding: 4px 8px;
font: inherit;
min-width: 0; width: 100%;
}
.ds-ep-propfield-value input:focus-visible,
.ds-ep-propfield-value select:focus-visible,
.ds-ep-propfield-value textarea:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: var(--focus-ring-inset);
}
.ds-ep-propfield-hint {
grid-column: 1 / -1;
font-size: 0.8em;
color: var(--panel-text-3);
}
/* x/y/z packed on one row, each field equal width, no horizontal overflow. */
.ds-ep-vec3 {
display: flex; gap: 4px; width: 100%; min-width: 0;
}
.ds-ep-vec3 > * { flex: 1 1 0; min-width: 0; }
/* Each axis cell (axis letter + scrub input) must show its full 3-decimal value
without clipping. The axis letter is a fixed micro-glyph; the input flexes to
fill the rest with tight padding and centered text so 0.000 / -0.0 / 1.000 are
always legible even in the narrow 3-up layout. */
.ds-ep-vec3 > * {
display: flex; align-items: center; gap: 2px;
}
.ds-ep-vec3 .ds-ep-propfield-hint {
flex: 0 0 auto; width: 9px; text-align: center;
grid-column: auto; font-size: 0.8em; opacity: 0.7;
}
.ds-ep-vec3 .ds-input-bare {
flex: 1 1 auto; min-width: 0; width: auto;
padding: 2px 4px; text-align: center; text-overflow: clip;
}
/* Dense numeric inputs in the inspector — compact, tight radius, mono. */
.ds-ep-propfield-value input,
.ds-ep-propfield-value .ds-input-bare {
padding: 2px 6px;
border-radius: var(--r-1, 4px);
font: var(--fs-tiny, 12px)/1.3 var(--ff-mono, monospace);
}
.ds-input-bare {
appearance: none;
background: var(--panel-2);
color: var(--panel-text);
border: 1px solid var(--rule);
border-radius: var(--r-1, 4px);
padding: 2px 6px;
font: var(--fs-tiny, 12px)/1.3 var(--ff-mono, monospace);
min-width: 0;
}
.ds-input-bare:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring-inset); }
/* A property field whose control spans the full panel width (label above,
control below) — used for wide segmented controls that would clip in the
narrow value column. */
.ds-ep-propfield.block {
display: flex; flex-direction: column; align-items: stretch; gap: 4px;
}
.ds-ep-propfield.block > .ds-ep-propfield-value { width: 100%; }
.ds-ep-propfield.block .ds-ep-btngrp { width: 100%; }
.ds-ep-propfield.block .ds-ep-btngrp-btn { flex: 1 1 0; text-align: center; }
/* PropertyGridRow — bordered-row variant for a list of independently-editable
records (each record its own bottom-divided block, last one flush). */
.ds-ep-propgrid-row {
border-bottom: 1px solid var(--rule);
padding: var(--space-2, 8px) 0;
}
.ds-ep-propgrid-row:last-child { border-bottom: none; }
/* InlineEditableField — transparent-until-focus input, error state exposed
both visually (danger border) and semantically (aria-invalid, read by the
caller's own error text via aria-describedby if wired).
Specificity note: `.ds-ep-propfield-value input` (descendant combinator,
2 classes + 1 tag = (0,2,1) specificity) sets a visible border on every
input nested in a PropertyField -- the exact idiom InlineEditableField is
meant to be dropped into. A bare `input.ds-ep-inline-input` is only
(0,1,1) and loses; `:where(.ds-ep-propfield-value, .ds-ep-inline-standalone)`
is intentionally NOT used here because :where() has zero specificity and
would still lose. Instead the selector repeats .ds-ep-inline-input twice
(a valid, standard way to bump specificity by one class without adding an
ambient wrapper dependency) to reliably out-rank the PropertyField rule
regardless of nesting context. */
.ds-ep-inline-input.ds-ep-inline-input {
background: transparent;
border: 1px solid transparent;
color: inherit; font: inherit;
width: 100%;
border-radius: var(--r-1, 4px);
padding: var(--space-hair, 2px) var(--space-1, 4px);
}
.ds-ep-inline-input.ds-ep-inline-input:focus-visible {
outline: none;
border-color: var(--accent);
background: var(--panel-2, var(--bg-2));
}
.ds-ep-inline-input.ds-ep-inline-input.has-error,
.ds-ep-inline-input.ds-ep-inline-input[aria-invalid="true"] {
border-color: var(--danger);
}
/* Flush dense action bar docked at a panel bottom (inspector Edit/Delete etc.).
Compact buttons, square-ish, bordered top — not big floating pills. */
.ds-ep-actionbar {
flex-shrink: 0;
display: flex; align-items: center; gap: 6px;
padding: 6px 8px;
border-top: 1px solid var(--rule);
background: var(--panel-1);
}
.ds-ep-actionbar > * { flex: 1 1 0; }
.ds-ep-actionbar button {
width: 100%;
/* Snapped to --ctl-sm (was a lone 28px literal that happened to match). */
min-height: var(--ctl-sm); height: var(--ctl-sm); padding: 0 var(--space-2-5);
border-radius: var(--r-1, 4px);
font: var(--fs-tiny, 12px)/1 var(--ff-mono, monospace);
}
/* Inline buttons inside a tree row (e.g. app-list Place) and the editor toolbars
are compact — small, square-ish, not big pills. Excludes the segmented
IconButtonGroup which manages its own sizing. */
.ds-ep-tree-row button:not(.ds-ep-btngrp-btn),
.ds-ep-toolbar button:not(.ds-ep-btngrp-btn) {
min-height: 24px; height: 24px; padding: 0 8px;
border-radius: var(--r-1, 4px);
font: var(--fs-tiny, 12px)/1 var(--ff-mono, monospace);
}
@media (pointer: coarse) {
.ds-ep-tree-row button:not(.ds-ep-btngrp-btn),
.ds-ep-toolbar button:not(.ds-ep-btngrp-btn) { min-height: 36px; height: 36px; }
}
/* Pager */
.ds-ep-pager {
display: flex; align-items: center; gap: var(--space-1-75, 6px);
margin-top: var(--space-2, 8px);
font: var(--fs-tiny, 12px)/1 var(--ff-mono, monospace);
color: var(--panel-text-3, var(--fg-3));
}
.ds-ep-pager-btn {
appearance: none; cursor: pointer;
background: var(--panel-2, var(--bg-2));
border: 1px solid var(--rule);
color: var(--panel-text, var(--fg));
padding: var(--space-half, 3px) var(--space-2-5, 10px);
border-radius: var(--r-1, 4px);
font: inherit;
}
.ds-ep-pager-btn:hover:not([disabled]) { background: color-mix(in oklab, var(--accent) 10%, transparent); }
.ds-ep-pager-btn:disabled { opacity: 0.4; cursor: default; }
.ds-ep-pager-label { white-space: nowrap; }
.ds-ep-pager-numbered { flex-wrap: wrap; }
.ds-ep-pager-num {
appearance: none; cursor: pointer;
background: var(--panel-2, var(--bg-2));
border: 1px solid var(--rule);
color: var(--panel-text, var(--fg));
min-width: 1.75em;
padding: var(--space-half, 3px) var(--space-1, 5px);
border-radius: var(--r-1, 4px);
font: inherit;
text-align: center;
}
.ds-ep-pager-num:hover { background: color-mix(in oklab, var(--accent) 10%, transparent); }
.ds-ep-pager-num.is-current {
background: var(--accent);
color: var(--accent-ink);
border-color: var(--accent);
}
.ds-ep-pager-ellipsis { padding: 0 var(--space-hair, 2px); opacity: 0.6; }
.ds-ep-pager-total { white-space: nowrap; margin-left: auto; }
/* Grid / GridItem — 24-column responsive layout. GridItem's flex-basis is
set per-tier via --xs-basis/--sm-basis/--md-basis/--lg-basis/--xl-basis
custom properties (computed in JS from a 1-24 span); each @media tier
below picks up whichever property is set for that breakpoint, cascading
down from xs as the mobile-first default. Mirrors BP_SM/MD/LG/XL. */
.ds-ep-grid {
display: flex; flex-wrap: wrap;
gap: var(--space-2, 8px);
}
.ds-ep-grid-item {
box-sizing: border-box;
flex-grow: var(--xs-grow, 1);
flex-basis: var(--xs-basis, 100%);
max-width: var(--xs-basis, 100%);
display: var(--xs-display, inherit);
}
@media (min-width: 480px) {
.ds-ep-grid-item[style*="--sm-basis"] {
flex-grow: var(--sm-grow, 1);
flex-basis: var(--sm-basis, 100%);
max-width: var(--sm-basis, 100%);
display: var(--sm-display, inherit);
}
}
@media (min-width: 768px) {
.ds-ep-grid-item[style*="--md-basis"] {
flex-grow: var(--md-grow, 1);
flex-basis: var(--md-basis, 100%);
max-width: var(--md-basis, 100%);
display: var(--md-display, inherit);
}
}
@media (min-width: 1024px) {
.ds-ep-grid-item[style*="--lg-basis"] {
flex-grow: var(--lg-grow, 1);
flex-basis: var(--lg-basis, 100%);
max-width: var(--lg-basis, 100%);
display: var(--lg-display, inherit);
}
}
@media (min-width: 1440px) {
.ds-ep-grid-item[style*="--xl-basis"] {
flex-grow: var(--xl-grow, 1);
flex-basis: var(--xl-basis, 100%);
max-width: var(--xl-basis, 100%);
display: var(--xl-display, inherit);
}
}
/* JsonViewer */
.ds-ep-json {
font-size: var(--fs-tiny, 12px);
font-family: var(--ff-mono, ui-monospace, Consolas, monospace);
white-space: pre-wrap; word-break: break-all;
background: var(--panel-2, var(--bg-2));
color: var(--panel-text, var(--fg));
padding: var(--space-2, 8px);
border-radius: var(--r-1, var(--r-2, 4px));
max-height: 300px;
overflow-y: auto;
margin: 0;
}
.ds-ep-json-empty {
color: var(--panel-text-3, var(--fg-3));
white-space: normal;
text-align: center;
}
/* JsonViewer syntax tokens (mode:'highlight'/'tree') — semantic theme tokens
only (retuned per-theme in colors_and_type.css); fallbacks chain to
coarser tokens, never a raw literal, so standalone kits stay themed. */
.ds-ep-json-k { color: var(--sky, var(--accent)); }
.ds-ep-json-s { color: var(--green-2, var(--green)); }
.ds-ep-json-n { color: var(--flame, var(--warn)); }
.ds-ep-json-b { color: var(--purple-2, var(--purple)); }
.ds-ep-json-z { color: var(--panel-text-3, var(--fg-3)); font-style: italic; }
/* Collapsible tree mode — native details/summary, indent guides on children. */
.ds-ep-json-tree { white-space: normal; }
.ds-ep-json-kids {
padding-left: var(--space-3-5, 14px);
margin-left: var(--space-1, 4px);
border-left: 1px solid var(--rule);
}
.ds-ep-json-sum {
cursor: pointer; user-select: none;
list-style: none;
border-radius: var(--r-1, 4px);
}
.ds-ep-json-sum::-webkit-details-marker { display: none; }
.ds-ep-json-sum::before {
content: '+';
display: inline-block; width: var(--space-3, 12px);
color: var(--panel-text-3, var(--fg-3));
}
.ds-ep-json-node[open] > .ds-ep-json-sum::before { content: '-'; }
.ds-ep-json-sum:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.ds-ep-json-sum:focus-visible {
outline: var(--focus-w) solid var(--focus-color);
outline-offset: calc(var(--focus-offset) * -1);
}
.ds-ep-json-tag {
margin-left: var(--space-1, 4px);
font-size: var(--fs-micro, 11px);
color: var(--panel-text-3, var(--fg-3));
}
.ds-ep-json-leaf { padding-left: var(--space-3, 12px); word-break: break-all; }
/* Copy affordance (copyable:true) — floats over the viewer's top-right. */
.ds-ep-json-wrap { position: relative; }
.ds-ep-json-copy {
position: absolute; top: var(--space-1-75, 6px); right: var(--space-1-75, 6px); z-index: 1;
appearance: none; cursor: pointer;
background: var(--panel-1, var(--bg-1));
border: 1px solid var(--rule);
color: var(--panel-text-2, var(--fg-2));
font: var(--fs-micro, 11px)/1 var(--ff-mono, monospace);
padding: var(--space-half, 3px) var(--space-2, 8px);
border-radius: var(--r-1, 4px);
opacity: 0.75;
}
.ds-ep-json-copy:hover { opacity: 1; border-color: var(--accent); }
.ds-ep-json-copy.copied { color: var(--green-2, var(--green)); border-color: var(--green-2, var(--green)); opacity: 1; }
.ds-ep-json-copy:focus-visible {
outline: var(--focus-w) solid var(--focus-color);
outline-offset: var(--focus-offset);
opacity: 1;
}
/* Dock — 3x3 grid for in-engine overlay (canvas pass-through center) */
.ds-ep-dock {
display: grid;
grid-template-areas:
"top top top"
"left center right"
"bottom bottom bottom";
grid-template-rows: auto 1fr auto;
grid-template-columns: auto 1fr auto;
height: 100%; width: 100%;
color: var(--panel-text);
}
.ds-ep-dock-top { grid-area: top; background: var(--panel-1); border-bottom: 1px solid var(--rule); }
.ds-ep-dock-bottom { grid-area: bottom; background: var(--panel-1); border-top: 1px solid var(--rule); }
.ds-ep-dock-left { grid-area: left; background: var(--panel-1); border-right: 1px solid var(--rule); overflow: auto; }
.ds-ep-dock-right { grid-area: right; background: var(--panel-1); border-left: 1px solid var(--rule); overflow: auto; }
.ds-ep-dock-center {
grid-area: center;
background: transparent;
pointer-events: none;
position: relative;
}
.ds-ep-dock-center > * { pointer-events: auto; }
/* Mobile — stack dock regions vertically instead of the 3x3 grid */
@media (max-width: 600px) {
.ds-ep-dock {
display: flex;
flex-direction: column;
}
}
/* IconButtonGroup */
.ds-ep-btngrp {
display: inline-flex;
border: 1px solid var(--rule);
border-radius: var(--r-1, 10px);
overflow: hidden;
background: var(--panel-2);
}
.ds-ep-btngrp.dense .ds-ep-btngrp-btn { padding: 2px 6px; min-width: 22px; }
.ds-ep-btngrp-btn {
appearance: none; border: 0;
background: transparent;
color: var(--panel-text-2);
padding: 4px 10px;
font: inherit; cursor: pointer;
border-right: 1px solid var(--rule);
transition: background var(--dur-snap, 80ms) var(--ease, ease), color var(--dur-snap, 80ms) var(--ease, ease);
}
.ds-ep-btngrp-btn:last-child { border-right: 0; }
.ds-ep-btngrp-btn:hover:not([disabled]) {
background: color-mix(in oklab, var(--accent) 10%, transparent);
color: var(--panel-text);
}
.ds-ep-btngrp-btn.active {
background: var(--accent);
color: var(--accent-fg);
}
.ds-ep-btngrp-btn[disabled] {
opacity: 0.45;
cursor: not-allowed;
}
/* Breakpoint custom property mirrors (consumers can use var()) */
:root {
--bp-sm: 480px;
--bp-md: 768px;
--bp-lg: 1024px;
--bp-xl: 1440px;
}
/* ---------------------------------------------------------------
ResizeHandle / SplitPanel
--------------------------------------------------------------- */
.ds-ep-resize {
background: var(--rule);
flex: 0 0 auto;
touch-action: none;
user-select: none;
transition: background 120ms ease;
}
.ds-ep-resize:hover, .ds-ep-resize:focus-visible {
background: var(--accent);
}
.ds-ep-resize.axis-h { width: 6px; cursor: col-resize; align-self: stretch; }
.ds-ep-resize.axis-v { height: 6px; cursor: row-resize; }
.ds-ep-split { display: flex; width: 100%; height: 100%; }
.ds-ep-split.horiz { flex-direction: row; }
.ds-ep-split.vert { flex-direction: column; }
.ds-ep-split-pane { overflow: auto; }
.ds-ep-split.horiz > .ds-ep-split-pane:not(.grow) { width: var(--split-size); }
.ds-ep-split.vert > .ds-ep-split-pane:not(.grow) { height: var(--split-size); }
.ds-ep-split-pane.grow { flex: 1 1 0; }
/* ---------------------------------------------------------------
ContextMenu
--------------------------------------------------------------- */
.ds-ep-ctxmenu-backdrop {
position: fixed; inset: 0; z-index: 9000;
}
.ds-ep-ctxmenu {
position: absolute;
min-width: 180px;
max-width: calc(100vw - 8px);
max-height: calc(100vh - 8px);
max-height: calc(100dvh - 8px);
overflow-y: auto;
overscroll-behavior: contain;
background: var(--panel-1, var(--panel-bg));
color: var(--panel-text, var(--fg-text));
border: 1px solid var(--rule);
border-radius: var(--r-2, 8px);
box-shadow: var(--shadow-2);
padding: 4px;
display: flex; flex-direction: column;
outline: none;
}
.ds-ep-ctxmenu-item {
display: flex; align-items: center; gap: 8px;
padding: 8px 10px;
background: transparent; border: 0;
color: inherit; font: inherit; text-align: left;
border-radius: var(--r-1, 4px);
cursor: pointer;
}
.ds-ep-ctxmenu-item:hover:not(.disabled),
.ds-ep-ctxmenu-item:focus-visible {
background: var(--panel-2, var(--rule));
}
.ds-ep-ctxmenu-item.danger { color: var(--danger); }
.ds-ep-ctxmenu-item.disabled { opacity: 0.45; cursor: not-allowed; }
.ds-ep-ctxmenu-icon { width: 16px; display: inline-flex; justify-content: center; }
.ds-ep-ctxmenu-sep { height: 1px; background: var(--rule); margin: 4px 6px; }
/* ---------------------------------------------------------------
Drawer
--------------------------------------------------------------- */
.ds-ep-drawer-backdrop {
position: fixed; inset: 0; z-index: 8500;
background: var(--scrim);
}
.ds-ep-drawer {
position: absolute;
background: var(--panel-1, var(--panel-bg));
color: var(--panel-text, var(--fg-text));
box-shadow: var(--shadow-overlay);
outline: none;
transition: transform 180ms ease;
padding: 12px;
padding-top: max(12px, env(safe-area-inset-top));
padding-bottom: max(12px, env(safe-area-inset-bottom));
padding-left: max(12px, env(safe-area-inset-left));
padding-right: max(12px, env(safe-area-inset-right));
}
.ds-ep-drawer.side-left { left: 0; top: 0; bottom: 0; width: 86vw; max-width: 320px; }
.ds-ep-drawer.side-right { right: 0; top: 0; bottom: 0; width: 86vw; max-width: 320px; }
.ds-ep-drawer.side-bottom { left: 0; right: 0; bottom: 0; max-height: 80vh; max-height: 80dvh; border-top-left-radius: 12px; border-top-right-radius: 12px; }
@media (min-width: 768px) {
.ds-ep-drawer.side-left, .ds-ep-drawer.side-right { width: 360px; max-width: 360px; }
}
/* ---------------------------------------------------------------
Dialog
--------------------------------------------------------------- */
.ds-ep-dialog-backdrop {
position: fixed; inset: 0; z-index: 9500;
background: var(--scrim-strong);
display: flex; align-items: center; justify-content: center;
padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.ds-ep-dialog {
background: var(--panel-1, var(--panel-bg));
color: var(--panel-text, var(--fg-text));
border: 1px solid var(--rule);
border-radius: var(--r-2, 10px);
box-shadow: var(--shadow-overlay);
min-width: 280px; max-width: min(560px, 100%);
max-height: 90vh;
max-height: min(90dvh, calc(100dvh - 32px));
overflow: auto;
display: flex; flex-direction: column;
outline: none;
}
/* Padding tokenized to the --space-* scale (was raw 14/16/10/6) and shaved to
app density — a dialog is working chrome, not a marketing card. */
.ds-ep-dialog-head { padding: var(--space-2-75) var(--space-3) var(--space-1-5); border-bottom: 1px solid var(--rule); }
.ds-ep-dialog-title { margin: 0; font-size: var(--fs-body); font-weight: 600; }
.ds-ep-dialog-body { padding: var(--space-2-75) var(--space-3); }
.ds-ep-dialog-actions {
display: flex; gap: var(--space-2); justify-content: flex-end;
padding: var(--space-2) var(--space-2-75); border-top: 1px solid var(--rule);
}
.ds-ep-dialog-btn {
/* Snapped to the --ctl-sm rung + tokenized padding (was 8px 14px). */
min-height: var(--ctl-sm); padding: 0 var(--space-3);
display: inline-flex; align-items: center; justify-content: center;
border: 1px solid var(--rule);
border-radius: var(--r-1, 6px);
background: var(--panel-2, transparent);
color: inherit; font: inherit; cursor: pointer;
}
.ds-ep-dialog-btn:hover { background: var(--panel-3, var(--bg-3)); }
.ds-ep-dialog-btn.kind-primary {
background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
}
.ds-ep-dialog-btn.kind-primary:hover { filter: brightness(0.92); }
.ds-ep-dialog-btn.kind-danger {
background: var(--danger); color: var(--on-accent); border-color: var(--danger);
}
.ds-ep-dialog-btn.kind-danger:hover { filter: brightness(0.92); }
/* ---------------------------------------------------------------
Toast
--------------------------------------------------------------- */
.ds-ep-toast-host {
position: fixed;
top: max(16px, env(safe-area-inset-top));
right: max(16px, env(safe-area-inset-right));
z-index: 9800;
display: flex; flex-direction: column; gap: 8px;
pointer-events: none;
}
.ds-ep-toast {
pointer-events: auto;
background: var(--panel-1, var(--panel-bg));
color: var(--panel-text, var(--fg-text));
border: 1px solid var(--rule);
border-left: 3px solid var(--accent);
border-radius: var(--r-1, 6px);
padding: var(--space-2) var(--space-2-75);
box-shadow: var(--shadow-3);
min-width: 220px; max-width: 360px;
opacity: 1;
transition: opacity 180ms ease, transform 180ms ease;
}
.ds-ep-toast.kind-success { border-left-color: var(--success); }
.ds-ep-toast.kind-warn { border-left-color: var(--warn); }
.ds-ep-toast.kind-error { border-left-color: var(--danger); }
.ds-ep-toast.leaving { opacity: 0; transform: translateY(-6px); }
@media (max-width: 480px) {
.ds-ep-toast-host { left: 16px; right: 16px; align-items: center; }
.ds-ep-toast { width: 100%; max-width: 100%; }
}
/* ---------------------------------------------------------------
Focus-visible across interactive primitives
--------------------------------------------------------------- */
.ds-ep-tab:focus-visible,
.ds-ep-tree-row:focus-visible,
.ds-ep-btngrp-btn:focus-visible,
.ds-ep-ctxmenu-item:focus-visible,
.ds-ep-resize:focus-visible,
.ds-ep-dialog-btn:focus-visible,
.ds-ep-pager-btn:focus-visible {
outline: var(--focus-w) solid var(--focus-color);
outline-offset: var(--focus-offset);
}
/* ---------------------------------------------------------------
Coarse pointer — bump tap targets to 44px
--------------------------------------------------------------- */
@media (pointer: coarse) {
.ds-ep-tab,
.ds-ep-btngrp-btn,
.ds-ep-ctxmenu-item,
.ds-ep-dialog-btn,
.ds-ep-tree-row,
.ds-ep-pager-btn {
min-height: 44px;
padding-top: 10px;
padding-bottom: 10px;
}
.ds-ep-resize.axis-h { width: 14px; }
.ds-ep-resize.axis-v { height: 14px; }
}
/* ---------------------------------------------------------------
Reduced motion — disable transitions on transient surfaces
--------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
.ds-ep-drawer,
.ds-ep-dialog,
.ds-ep-toast,
.ds-ep-resize {
transition: none !important;
}
/* Catch the transitions on tabs, tree rows, and primitive buttons that weren't
previously wrapped — vestibular users get a static UI. */
.ds-ep-tab,
.ds-ep-tree-row,
.ds-ep-tree-twist,
.ds-ep-toolbar button,
.ds-ep-iconbtn,
.ds-ep-iconbtn-group button {
transition: none !important;
animation: none !important;
}
}
/* ---------- focus-visible on editor-primitive interactive elements ---------- */
.ds-ep-tab:focus-visible,
.ds-ep-tree-row:focus-visible,
.ds-ep-toolbar button:focus-visible,
.ds-ep-iconbtn:focus-visible,
.ds-ep-iconbtn-group button:focus-visible,
.ds-ep-resize:focus-visible {
outline: var(--focus-w) solid var(--focus-color);
outline-offset: var(--focus-offset);
border-radius: var(--r-1);
}
/* ---------------------------------------------------------------
Form primitives — Checkbox, Radio, RadioGroup, Toggle, Field
See also .ds-check-box in app-shell.css — a separate CSS-drawn
multi-select checkbox family for FileRow/FileCell/SessionCard
row selection; intentionally distinct rendering (CSS-drawn vs
native), do not let one drift toward the other by accident.
--------------------------------------------------------------- */
.ds-check-row,
.ds-radio-row,
.ds-toggle-row {
display: inline-flex; align-items: center; gap: var(--space-2, 8px);
/* Desktop density: ~30px rows, not the 44px touch target (which stacked a
lot of dead vertical space in inspector/settings forms). The full 44px
target is restored under pointer:coarse below. */
min-height: 30px;
padding: var(--space-1, 4px) var(--space-2, 8px);
cursor: pointer;
color: var(--fg);
font: inherit;
}
.ds-check-row:has(input:disabled),
.ds-radio-row:has(input:disabled),
.ds-toggle-row:has(button:disabled) { opacity: 0.5; cursor: not-allowed; }
/* Touch devices: restore the 44px minimum tap target. */
@media (pointer: coarse) {
.ds-check-row, .ds-radio-row, .ds-toggle-row { min-height: 44px; }
}
.ds-check, .ds-radio {
width: 18px; height: 18px;
accent-color: var(--accent, var(--fg));
flex-shrink: 0;
cursor: inherit;
}
.ds-check:focus-visible, .ds-radio:focus-visible {
outline: var(--focus-w) solid var(--focus-color);
outline-offset: var(--focus-offset);
}
.ds-check-label, .ds-radio-label, .ds-toggle-label {
color: var(--fg);
font-size: var(--fs-sm, 14px);
}
.ds-radio-group {
border: 0; padding: 0; margin: 0;
display: flex; flex-direction: column; gap: var(--space-1, 4px);
}
.ds-radio-group.horiz { flex-direction: row; flex-wrap: wrap; gap: var(--space-3, 16px); }
.ds-radio-group > legend { padding: 0 0 var(--space-1, 4px); }
.ds-toggle {
appearance: none; border: 0;
width: 44px; height: 24px;
border-radius: var(--r-pill, 999px);
background: var(--panel-2, var(--bg-2));
border: 1px solid var(--rule);
position: relative;
cursor: pointer;
padding: 0;
flex-shrink: 0;
}
.ds-toggle:hover { border-color: var(--rule-strong, var(--fg-3)); }
.ds-toggle-knob {
position: absolute;
top: 1px; left: 1px;
width: 20px; height: 20px;
border-radius: 50%;
background: var(--fg);
transform: translateX(0);
}
.ds-toggle[aria-checked="true"] {
background: var(--accent);
border-color: var(--accent);
}
.ds-toggle[aria-checked="true"] .ds-toggle-knob {
background: var(--accent-fg);
transform: translateX(20px);
}
.ds-toggle:focus-visible {
outline: var(--focus-w) solid var(--focus-color);
outline-offset: var(--focus-offset);
}
.ds-toggle:disabled { cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) {
.ds-toggle { transition: background var(--dur-base, 160ms) var(--ease), border-color var(--dur-base, 160ms) var(--ease); }
.ds-toggle-knob { transition: transform var(--dur-base, 160ms) var(--ease), background var(--dur-base, 160ms) var(--ease); }
}
.ds-field-wrap {
display: flex; flex-direction: column; gap: var(--space-1, 4px);
margin-bottom: var(--space-2, 8px);
}
.ds-field-label {
color: var(--fg-2, var(--fg));
font-size: var(--fs-sm, 14px);
font-weight: 500;
}
.ds-field-required {
color: var(--danger);
font-weight: 700;
margin-left: 2px;
}
.ds-field-hint {
color: var(--fg-3, var(--fg-2));
font-size: var(--fs-tiny, 12px);
}
.ds-field-error {
color: var(--danger);
font-size: var(--fs-tiny, 12px);
font-weight: 500;
}
.ds-field-wrap [aria-invalid="true"] {
border-color: var(--danger) !important;
}
.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;
}
@media (prefers-reduced-motion: reduce) {
.ds-toggle, .ds-toggle-knob { transition: none !important; }
}
/* ---------------------------------------------------------------
Tooltip
--------------------------------------------------------------- */
.ds-tooltip {
position: fixed;
left: 0; top: 0;
z-index: 9700;
background: var(--panel-1, var(--panel-bg));
color: var(--panel-text, var(--fg-text));
border: 1px solid var(--rule);
border-radius: var(--r-1, 6px);
padding: var(--space-1-75) var(--space-2-5);