@erclx/canon 5.53.0 → 5.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +10 -9
  3. package/claude/.claude-plugin/plugin.json +1 -1
  4. package/claude/skills/canon-cli/SKILL.md +5 -5
  5. package/claude/skills/design-identity/REQUIREMENT.md +2 -2
  6. package/claude/skills/design-identity/SKILL.md +6 -6
  7. package/claude/skills/design-record/REQUIREMENT.md +2 -2
  8. package/claude/skills/design-record/SKILL.md +4 -4
  9. package/claude/skills/design-record/references/folder.md +1 -1
  10. package/claude/skills/design-taste/REQUIREMENT.md +1 -1
  11. package/claude/skills/draw-figure/REQUIREMENT.md +1 -1
  12. package/claude/skills/draw-figure/SKILL.md +1 -1
  13. package/claude/skills/pick-by-eye/REQUIREMENT.md +4 -4
  14. package/claude/skills/pick-by-eye/SKILL.md +34 -41
  15. package/claude/skills/pick-by-eye/references/board.md +42 -0
  16. package/claude/skills/pick-by-eye/references/live-arms.md +3 -3
  17. package/claude/skills/plan-groundwork/SKILL.md +1 -1
  18. package/claude/skills/teach-craft/REQUIREMENT.md +1 -1
  19. package/claude/skills/teach-craft/SKILL.md +32 -1
  20. package/claude/skills/teach-craft/references/adopted.md +113 -0
  21. package/claude/skills/teach-craft/references/lesson-craft.md +10 -2
  22. package/claude/skills/teach-craft/references/pedagogy.md +29 -2
  23. package/docs/agents/install-and-sync.md +0 -8
  24. package/docs/target/migrations.md +8 -3
  25. package/docs/target/projects.md +1 -1
  26. package/docs/workflow/skill-map.md +0 -1
  27. package/docs/workflow/visual-design-workflow.md +1 -4
  28. package/governance/detect.toml +1 -6
  29. package/governance/renames.toml +0 -1
  30. package/package.json +2 -5
  31. package/src/claude/cases/misc.ts +0 -5
  32. package/src/claude/skills-audit.ts +1 -0
  33. package/src/cli/help.ts +0 -3
  34. package/src/cli.ts +0 -2
  35. package/src/commands/design.ts +16 -315
  36. package/src/commands/sync.ts +4 -5
  37. package/src/design/regen.ts +5 -32
  38. package/src/design/render.ts +1 -1
  39. package/src/design/tokens.ts +3 -2
  40. package/src/gate/stages.ts +4 -10
  41. package/src/gov/audit.ts +1 -6
  42. package/src/markdown/scope.ts +2 -4
  43. package/src/shipped/references.ts +1 -2
  44. package/src/sync/check.ts +4 -29
  45. package/src/sync/stamp.ts +6 -6
  46. package/src/sync/target.ts +1 -4
  47. package/tooling/claude/reference.md +1 -1
  48. package/tooling/claude/seeds/canon/DESIGN.md +1 -1
  49. package/claude/skills/canvas-board/REQUIREMENT.md +0 -35
  50. package/claude/skills/canvas-board/SKILL.md +0 -143
  51. package/claude/skills/canvas-board/references/canvas.md +0 -170
  52. package/governance/rules/ui/canvas.md +0 -13
  53. package/src/canvas/address.ts +0 -227
  54. package/src/canvas/arrange.ts +0 -66
  55. package/src/canvas/capture.ts +0 -391
  56. package/src/canvas/client/app.tsx +0 -188
  57. package/src/canvas/client/inspector/align-grid.tsx +0 -162
  58. package/src/canvas/client/inspector/color-field.tsx +0 -398
  59. package/src/canvas/client/inspector/color-inputs.tsx +0 -139
  60. package/src/canvas/client/inspector/color-picker.tsx +0 -668
  61. package/src/canvas/client/inspector/color-space.ts +0 -240
  62. package/src/canvas/client/inspector/field.tsx +0 -263
  63. package/src/canvas/client/inspector/fields.css +0 -763
  64. package/src/canvas/client/inspector/section.tsx +0 -27
  65. package/src/canvas/client/inspector/size-field.tsx +0 -69
  66. package/src/canvas/client/inspector/token-select.tsx +0 -109
  67. package/src/canvas/client/inspector/values.ts +0 -297
  68. package/src/canvas/client/inspector.tsx +0 -692
  69. package/src/canvas/client/keys.ts +0 -71
  70. package/src/canvas/client/layers.tsx +0 -118
  71. package/src/canvas/client/main.tsx +0 -71
  72. package/src/canvas/client/pages-panel.tsx +0 -212
  73. package/src/canvas/client/panel-handle.tsx +0 -90
  74. package/src/canvas/client/selection.tsx +0 -199
  75. package/src/canvas/client/shell.css +0 -762
  76. package/src/canvas/client/state.ts +0 -792
  77. package/src/canvas/client/surface.tsx +0 -803
  78. package/src/canvas/client/theme-panel.tsx +0 -55
  79. package/src/canvas/client/tools.tsx +0 -153
  80. package/src/canvas/content.ts +0 -781
  81. package/src/canvas/edit.ts +0 -575
  82. package/src/canvas/editing.ts +0 -203
  83. package/src/canvas/fit.ts +0 -238
  84. package/src/canvas/global.d.ts +0 -15
  85. package/src/canvas/history.ts +0 -116
  86. package/src/canvas/index.html +0 -20
  87. package/src/canvas/server.ts +0 -766
  88. package/src/canvas/tokens.ts +0 -221
  89. package/src/commands/canvas.ts +0 -1097
  90. package/src/design/adapter.ts +0 -59
  91. package/src/design/base.css +0 -203
  92. package/src/design/brand-favicon.ts +0 -18
  93. package/src/design/neutral.ts +0 -127
  94. package/src/design/project-fonts.ts +0 -392
@@ -1,763 +0,0 @@
1
- /*
2
- * The inspector's own rules. Every value reads a chrome token, the same set
3
- * shell.css reads. Each field's glyph sits inside its box, so two fields share
4
- * a row without a label column eating the width.
5
- *
6
- * These rules share one class namespace with shell.css, where the Theme tab
7
- * owns `.token`, so a new class here takes its own prefix, as `.token-option`
8
- * does.
9
- */
10
-
11
- .inspector-section {
12
- margin-top: var(--space-sm);
13
- }
14
-
15
- .inspector-section-head {
16
- display: flex;
17
- align-items: center;
18
- min-height: 24px;
19
- }
20
-
21
- .inspector-section-title {
22
- flex: 1;
23
- min-width: 0;
24
- margin: 0;
25
- font-size: var(--type-label-size);
26
- font-weight: 500;
27
- color: var(--color-text);
28
- }
29
-
30
- .inspector-section-action {
31
- flex: none;
32
- display: flex;
33
- justify-content: flex-end;
34
- min-width: 24px;
35
- }
36
-
37
- .field-grid {
38
- display: grid;
39
- grid-template-columns: repeat(2, minmax(0, 1fr));
40
- gap: var(--space-xs);
41
- margin-top: var(--space-xs);
42
- }
43
-
44
- .glyph-field {
45
- display: flex;
46
- align-items: center;
47
- min-width: 0;
48
- min-height: 24px;
49
- border: 1px solid var(--color-border);
50
- border-radius: var(--radius-action);
51
- background: var(--color-surface);
52
- }
53
-
54
- .glyph-field:hover {
55
- border-color: var(--color-muted);
56
- }
57
-
58
- .glyph-field.is-readonly {
59
- background: transparent;
60
- }
61
-
62
- .glyph-field.is-readonly:hover {
63
- border-color: var(--color-border);
64
- }
65
-
66
- .is-wide {
67
- grid-column: 1 / -1;
68
- }
69
-
70
- .glyph {
71
- flex: none;
72
- min-width: 1.75rem;
73
- padding: 0 var(--space-xs);
74
- color: var(--color-muted);
75
- text-align: center;
76
- user-select: none;
77
- }
78
-
79
- /* A number field's glyph scrubs its value, so a drag must not pan or scroll. */
80
- .glyph.is-scrub {
81
- cursor: ew-resize;
82
- touch-action: none;
83
- }
84
-
85
- .glyph-field-input {
86
- flex: 1;
87
- min-width: 0;
88
- padding: 2px var(--space-xs) 2px 0;
89
- border: 0;
90
- background: transparent;
91
- color: var(--color-text);
92
- font: inherit;
93
- font-variant-numeric: tabular-nums;
94
- overflow: hidden;
95
- text-overflow: ellipsis;
96
- white-space: nowrap;
97
- }
98
-
99
- .glyph-field-input:disabled {
100
- opacity: 0.5;
101
- cursor: not-allowed;
102
- }
103
-
104
- .fill-row {
105
- display: flex;
106
- align-items: center;
107
- gap: var(--space-xs);
108
- min-width: 0;
109
- }
110
-
111
- .fill-row .glyph-field {
112
- flex: 1;
113
- }
114
-
115
- .raw {
116
- flex: none;
117
- color: var(--color-text-secondary);
118
- cursor: help;
119
- }
120
-
121
- .text-excerpt {
122
- margin: var(--space-xs) 0 0;
123
- color: var(--color-text-body);
124
- overflow: hidden;
125
- text-overflow: ellipsis;
126
- white-space: nowrap;
127
- }
128
-
129
- .saved {
130
- margin-left: var(--space-sm);
131
- color: var(--color-success);
132
- font-weight: 400;
133
- }
134
-
135
- /* An icon in a section's header lane or beside a field, square at row height. */
136
- .section-icon {
137
- flex: none;
138
- display: grid;
139
- place-items: center;
140
- width: 24px;
141
- height: 24px;
142
- padding: 0;
143
- border: 0;
144
- border-radius: var(--radius-action);
145
- background: transparent;
146
- color: var(--color-muted);
147
- cursor: pointer;
148
- }
149
-
150
- .section-icon:hover,
151
- .section-icon[aria-pressed='true'] {
152
- background: var(--color-surface);
153
- color: var(--color-text);
154
- }
155
-
156
- .section-icon:disabled {
157
- opacity: 0.5;
158
- cursor: not-allowed;
159
- }
160
-
161
- .section-icon svg {
162
- width: 14px;
163
- height: 14px;
164
- fill: none;
165
- stroke: currentColor;
166
- stroke-width: 1.5;
167
- stroke-linecap: round;
168
- stroke-linejoin: round;
169
- }
170
-
171
- /* The alignment grid on the left, the direction and wrap stacked beside it. */
172
- .flex-layout {
173
- display: grid;
174
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
175
- gap: var(--space-xs);
176
- align-items: start;
177
- }
178
-
179
- .flex-layout-side {
180
- display: flex;
181
- align-items: center;
182
- gap: var(--space-xs);
183
- min-width: 0;
184
- }
185
-
186
- .flex-layout-side .glyph-field {
187
- flex: 1;
188
- }
189
-
190
- .align-grid {
191
- display: grid;
192
- grid-template-columns: repeat(3, 1fr);
193
- grid-template-rows: repeat(3, 24px);
194
- padding: 2px;
195
- border: 1px solid var(--color-border);
196
- border-radius: var(--radius-action);
197
- background: var(--color-surface);
198
- }
199
-
200
- .align-cell {
201
- display: grid;
202
- place-items: center;
203
- min-width: 0;
204
- padding: 0;
205
- border: 0;
206
- border-radius: var(--radius-action);
207
- background: transparent;
208
- color: var(--color-muted);
209
- cursor: pointer;
210
- }
211
-
212
- .align-cell:hover {
213
- color: var(--color-text);
214
- }
215
-
216
- .align-cell:disabled {
217
- opacity: 0.5;
218
- cursor: not-allowed;
219
- }
220
-
221
- .align-dot {
222
- width: 3px;
223
- height: 3px;
224
- border-radius: 50%;
225
- background: currentColor;
226
- }
227
-
228
- .align-cell[aria-checked='true'] {
229
- color: var(--color-accent);
230
- }
231
-
232
- .align-cell[aria-checked='true'] .align-dot {
233
- width: 10px;
234
- height: 10px;
235
- border-radius: 2px;
236
- }
237
-
238
- /*
239
- * A size's mode menu trails its number. The select is transparent over the
240
- * chevron, so the platform's own list opens and the field keeps one height.
241
- */
242
- .size-mode {
243
- position: relative;
244
- flex: none;
245
- display: grid;
246
- place-items: center;
247
- width: 24px;
248
- height: 22px;
249
- border-radius: var(--radius-action);
250
- color: var(--color-muted);
251
- }
252
-
253
- .size-mode:hover,
254
- .size-mode:focus-within {
255
- color: var(--color-text);
256
- background: var(--color-chrome);
257
- }
258
-
259
- .size-mode-select {
260
- position: absolute;
261
- inset: 0;
262
- width: 100%;
263
- height: 100%;
264
- opacity: 0;
265
- cursor: pointer;
266
- }
267
-
268
- .size-mode-select:disabled {
269
- cursor: not-allowed;
270
- }
271
-
272
- .size-mode:has(.size-mode-select:disabled) {
273
- opacity: 0.5;
274
- }
275
-
276
- /* The select is invisible, so the project ring draws on the lane holding it. */
277
- .size-mode:has(.size-mode-select:focus-visible) {
278
- outline: 2px solid var(--color-accent);
279
- outline-offset: 0;
280
- }
281
-
282
- .size-mode-chevron {
283
- width: 12px;
284
- height: 12px;
285
- fill: none;
286
- stroke: currentColor;
287
- stroke-width: 1.5;
288
- }
289
-
290
- /*
291
- * A color is one field: a swatch leading in the glyph's lane, the hex, and the
292
- * opacity right-aligned, with the tokens and the eyedropper trailing the row.
293
- */
294
- .color-field {
295
- min-width: 0;
296
- }
297
-
298
- .swatch {
299
- flex: none;
300
- display: grid;
301
- place-items: center;
302
- width: 1.75rem;
303
- min-height: 22px;
304
- padding: 0;
305
- border: 0;
306
- background: transparent;
307
- cursor: pointer;
308
- }
309
-
310
- .swatch:disabled {
311
- opacity: 0.5;
312
- cursor: not-allowed;
313
- }
314
-
315
- /*
316
- * The paint is the top layer over a checker, so an opacity below full reads
317
- * as one. `--paint` carries the color, since a background color sits under
318
- * every image layer and the checker would cover it.
319
- */
320
- .swatch-paint {
321
- --paint: transparent;
322
- flex: none;
323
- width: 12px;
324
- height: 12px;
325
- border: 1px solid var(--color-border);
326
- border-radius: 2px;
327
- background-image:
328
- linear-gradient(var(--paint), var(--paint)),
329
- linear-gradient(45deg, var(--color-border) 25%, transparent 25%),
330
- linear-gradient(-45deg, var(--color-border) 25%, transparent 25%),
331
- linear-gradient(45deg, transparent 75%, var(--color-border) 75%),
332
- linear-gradient(-45deg, transparent 75%, var(--color-border) 75%);
333
- background-size:
334
- auto,
335
- 6px 6px,
336
- 6px 6px,
337
- 6px 6px,
338
- 6px 6px;
339
- background-position:
340
- 0 0,
341
- 0 0,
342
- 0 3px,
343
- 3px -3px,
344
- -3px 0;
345
- }
346
-
347
- .swatch:hover .swatch-paint {
348
- border-color: var(--color-muted);
349
- }
350
-
351
- /* No fill draws a slash rather than a color. */
352
- .swatch.is-none .swatch-paint {
353
- background-image: linear-gradient(
354
- to top right,
355
- transparent calc(50% - 1px),
356
- var(--color-muted) calc(50% - 1px),
357
- var(--color-muted) calc(50% + 1px),
358
- transparent calc(50% + 1px)
359
- );
360
- background-size: auto;
361
- }
362
-
363
- .color-field .glyph-field-input {
364
- text-transform: uppercase;
365
- }
366
-
367
- /* Only a hex reads in capitals. A value the picker cannot read stays as written. */
368
- .color-field .glyph-field-input::placeholder,
369
- .color-field .glyph-field-input.is-text {
370
- text-transform: none;
371
- }
372
-
373
- /* A token name is a name, so it keeps its own case. */
374
- .color-field .glyph-field-input.is-token {
375
- flex: 0 1 auto;
376
- margin-right: auto;
377
- padding: 0 var(--space-xs);
378
- border-radius: var(--radius-action);
379
- background: var(--color-background);
380
- text-transform: none;
381
- }
382
-
383
- .color-opacity {
384
- flex: none;
385
- width: 2.25rem;
386
- padding: 2px 0;
387
- border: 0;
388
- background: transparent;
389
- color: var(--color-text);
390
- font: inherit;
391
- font-variant-numeric: tabular-nums;
392
- text-align: right;
393
- }
394
-
395
- .color-opacity:disabled {
396
- color: var(--color-muted);
397
- cursor: not-allowed;
398
- }
399
-
400
- .color-percent {
401
- flex: none;
402
- padding-right: var(--space-xs);
403
- color: var(--color-muted);
404
- user-select: none;
405
- }
406
-
407
- /*
408
- * The picker and the token list float beside the panel, in the top layer
409
- * where the browser has one. The panel scrolls and clips, so neither sits in
410
- * its flow. The script places each at fixed coordinates inside the window, and
411
- * the caps below hold a window too small for the whole picker.
412
- */
413
- .color-popover {
414
- position: fixed;
415
- inset: auto;
416
- z-index: 10;
417
- max-width: calc(100vw - 16px);
418
- max-height: calc(100vh - 16px);
419
- margin: 0;
420
- padding: var(--space-sm);
421
- overflow: auto;
422
- border: 1px solid var(--color-border);
423
- border-radius: var(--radius-panel);
424
- background: var(--color-chrome);
425
- color: var(--color-text);
426
- box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
427
- }
428
-
429
- .color-popover.is-tokens {
430
- width: 14rem;
431
- padding: var(--space-xs);
432
- }
433
-
434
- .picker {
435
- --picker-hue: red;
436
- --picker-solid: transparent;
437
- display: grid;
438
- grid-template-columns: 14rem 14px 14px 13rem;
439
- gap: var(--space-sm);
440
- align-items: stretch;
441
- }
442
-
443
- /*
444
- * The area draws white to the hue left to right, then black over it bottom
445
- * to top, so a point reads as saturation across and brightness up.
446
- */
447
- .picker-area {
448
- position: relative;
449
- aspect-ratio: 1;
450
- border-radius: var(--radius-action);
451
- background:
452
- linear-gradient(to top, #000, transparent),
453
- linear-gradient(to right, #fff, var(--picker-hue));
454
- cursor: crosshair;
455
- touch-action: none;
456
- }
457
-
458
- .picker-thumb {
459
- position: absolute;
460
- width: 12px;
461
- height: 12px;
462
- border: 2px solid #fff;
463
- border-radius: 50%;
464
- box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5);
465
- transform: translate(-50%, -50%);
466
- pointer-events: none;
467
- }
468
-
469
- .picker-slider {
470
- appearance: none;
471
- width: 14px;
472
- height: 100%;
473
- margin: 0;
474
- border-radius: var(--radius-action);
475
- writing-mode: vertical-lr;
476
- cursor: pointer;
477
- }
478
-
479
- /* Hue runs red at the top through the wheel and back to red at the foot. */
480
- .picker-hue {
481
- background: linear-gradient(
482
- to bottom,
483
- #f00,
484
- #ff0 17%,
485
- #0f0 33%,
486
- #0ff 50%,
487
- #00f 67%,
488
- #f0f 83%,
489
- #f00
490
- );
491
- }
492
-
493
- /* Alpha runs opaque at the top to clear at the foot, over a checker. */
494
- .picker-alpha {
495
- direction: rtl;
496
- background-image:
497
- linear-gradient(to bottom, var(--picker-solid), transparent),
498
- linear-gradient(45deg, var(--color-border) 25%, transparent 25%),
499
- linear-gradient(-45deg, var(--color-border) 25%, transparent 25%),
500
- linear-gradient(45deg, transparent 75%, var(--color-border) 75%),
501
- linear-gradient(-45deg, transparent 75%, var(--color-border) 75%);
502
- background-size:
503
- auto,
504
- 8px 8px,
505
- 8px 8px,
506
- 8px 8px,
507
- 8px 8px;
508
- background-position:
509
- 0 0,
510
- 0 0,
511
- 0 4px,
512
- 4px -4px,
513
- -4px 0;
514
- }
515
-
516
- .picker-slider::-webkit-slider-thumb {
517
- appearance: none;
518
- width: 14px;
519
- height: 6px;
520
- border: 2px solid #fff;
521
- border-radius: 2px;
522
- box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5);
523
- }
524
-
525
- .picker-slider::-moz-range-thumb {
526
- width: 10px;
527
- height: 2px;
528
- border: 2px solid #fff;
529
- border-radius: 2px;
530
- background: transparent;
531
- box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5);
532
- }
533
-
534
- .picker-side {
535
- display: flex;
536
- flex-direction: column;
537
- gap: var(--space-xs);
538
- min-width: 0;
539
- }
540
-
541
- .picker-compare {
542
- display: grid;
543
- grid-template-columns: 1fr 1fr;
544
- height: 3.5rem;
545
- overflow: hidden;
546
- border: 1px solid var(--color-border);
547
- border-radius: var(--radius-action);
548
- }
549
-
550
- /* Each half paints over the checker, so an alpha below full reads as one. */
551
- .picker-previous,
552
- .picker-new {
553
- --paint: transparent;
554
- padding: 0;
555
- border: 0;
556
- background-image:
557
- linear-gradient(var(--paint), var(--paint)),
558
- linear-gradient(45deg, var(--color-border) 25%, transparent 25%),
559
- linear-gradient(-45deg, var(--color-border) 25%, transparent 25%),
560
- linear-gradient(45deg, transparent 75%, var(--color-border) 75%),
561
- linear-gradient(-45deg, transparent 75%, var(--color-border) 75%);
562
- background-size:
563
- auto,
564
- 8px 8px,
565
- 8px 8px,
566
- 8px 8px,
567
- 8px 8px;
568
- background-position:
569
- 0 0,
570
- 0 0,
571
- 0 4px,
572
- 4px -4px,
573
- -4px 0;
574
- }
575
-
576
- .picker-previous {
577
- cursor: pointer;
578
- }
579
-
580
- .picker-compare-labels {
581
- display: grid;
582
- grid-template-columns: 1fr 1fr;
583
- color: var(--color-text-secondary);
584
- text-align: center;
585
- }
586
-
587
- .picker-row {
588
- display: grid;
589
- grid-template-columns: repeat(3, minmax(0, 1fr));
590
- gap: 1px;
591
- overflow: hidden;
592
- border-radius: var(--radius-action);
593
- }
594
-
595
- .picker-channel {
596
- display: flex;
597
- flex-direction: column;
598
- align-items: stretch;
599
- min-width: 0;
600
- }
601
-
602
- .picker-number {
603
- min-width: 0;
604
- min-height: 24px;
605
- padding: 2px var(--space-xs);
606
- border: 0;
607
- background: var(--color-surface);
608
- color: var(--color-text);
609
- font: inherit;
610
- font-variant-numeric: tabular-nums;
611
- text-align: center;
612
- }
613
-
614
- .picker-letter {
615
- color: var(--color-muted);
616
- font-size: 0.75em;
617
- text-align: center;
618
- user-select: none;
619
- }
620
-
621
- .token-list {
622
- max-height: 12rem;
623
- margin: 0;
624
- padding: 0;
625
- overflow-y: auto;
626
- list-style: none;
627
- }
628
-
629
- .token-option {
630
- display: flex;
631
- align-items: center;
632
- gap: var(--space-xs);
633
- min-height: 24px;
634
- padding: 0 var(--space-xs);
635
- border-radius: var(--radius-action);
636
- cursor: pointer;
637
- }
638
-
639
- .token-option:hover,
640
- .token-option.is-active {
641
- background: var(--color-surface);
642
- }
643
-
644
- .token-option[aria-selected='true'] .token-name {
645
- color: var(--color-accent);
646
- }
647
-
648
- .token-name {
649
- min-width: 0;
650
- overflow: hidden;
651
- text-overflow: ellipsis;
652
- white-space: nowrap;
653
- }
654
-
655
- /* A trailing icon on the color row, square at the row's height. */
656
- .color-icon {
657
- flex: none;
658
- display: grid;
659
- place-items: center;
660
- width: 24px;
661
- height: 24px;
662
- padding: 0;
663
- border: 0;
664
- border-radius: var(--radius-action);
665
- background: transparent;
666
- color: var(--color-muted);
667
- cursor: pointer;
668
- }
669
-
670
- .color-icon:hover,
671
- .color-icon[aria-expanded='true'] {
672
- background: var(--color-surface);
673
- color: var(--color-text);
674
- }
675
-
676
- .color-icon:disabled {
677
- opacity: 0.5;
678
- cursor: not-allowed;
679
- }
680
-
681
- .color-icon svg {
682
- width: 14px;
683
- height: 14px;
684
- fill: currentColor;
685
- }
686
-
687
- /*
688
- * A value picked from a fixed list. The native select draws its value as the
689
- * field's text and the chevron sits over its right edge, so the platform list
690
- * opens on press and the field keeps the height of every other one.
691
- */
692
- .glyph-field.is-select {
693
- position: relative;
694
- }
695
-
696
- .glyph-select {
697
- appearance: none;
698
- padding-right: 22px;
699
- cursor: pointer;
700
- }
701
-
702
- .select-chevron {
703
- position: absolute;
704
- right: 6px;
705
- width: 12px;
706
- height: 12px;
707
- fill: none;
708
- stroke: var(--color-muted);
709
- stroke-width: 1.5;
710
- pointer-events: none;
711
- }
712
-
713
- /* A raw marker inside a field sits before its menu, clear of the value. */
714
- .glyph-field .raw {
715
- padding: 0 2px 0 var(--space-xs);
716
- }
717
-
718
- /* Mutually exclusive choices for one value, drawn as one field split evenly. */
719
- .segmented {
720
- display: grid;
721
- grid-template-columns: repeat(4, minmax(0, 1fr));
722
- gap: 2px;
723
- min-height: 24px;
724
- padding: 1px;
725
- border: 1px solid var(--color-border);
726
- border-radius: var(--radius-action);
727
- background: var(--color-surface);
728
- }
729
-
730
- .segment {
731
- display: grid;
732
- place-items: center;
733
- min-height: 22px;
734
- padding: 0;
735
- border: 0;
736
- border-radius: var(--radius-action);
737
- background: transparent;
738
- color: var(--color-muted);
739
- cursor: pointer;
740
- }
741
-
742
- .segment:hover {
743
- color: var(--color-text);
744
- }
745
-
746
- .segment[aria-pressed='true'] {
747
- background: var(--color-chrome);
748
- color: var(--color-text);
749
- }
750
-
751
- .segment:disabled {
752
- opacity: 0.5;
753
- cursor: not-allowed;
754
- }
755
-
756
- .segment svg {
757
- width: 14px;
758
- height: 14px;
759
- fill: none;
760
- stroke: currentColor;
761
- stroke-width: 1.5;
762
- stroke-linecap: round;
763
- }