konpeki 0.3.0 → 0.4.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 (162) hide show
  1. package/AGENTS.md +21 -28
  2. package/AUTHORING.md +68 -229
  3. package/CONTRIBUTING.md +10 -23
  4. package/README.md +96 -87
  5. package/SETUP.md +50 -114
  6. package/docs/development.md +43 -248
  7. package/docs/workflow.md +6 -108
  8. package/html/README.md +140 -0
  9. package/html/browser.ts +103 -0
  10. package/html/document.ts +38 -0
  11. package/html/floor.ts +34 -0
  12. package/html/index.html +5 -0
  13. package/html/inspect.ts +313 -0
  14. package/html/preview.css +62 -0
  15. package/html/preview.tsx +463 -0
  16. package/html/review-hints.ts +63 -0
  17. package/html/server.ts +99 -0
  18. package/html/source.ts +104 -0
  19. package/html/starter.ts +6 -0
  20. package/html/theme-authoring.md +176 -0
  21. package/html/theme.md +61 -0
  22. package/index.html +9 -9
  23. package/package.json +21 -35
  24. package/plugin.json +1 -1
  25. package/public/og.png +0 -0
  26. package/runtime/browser-B-29TH1a.mjs +595 -0
  27. package/runtime/floor-Cmk7G3pU.mjs +41 -0
  28. package/runtime/konpeki.mjs +90 -1410
  29. package/runtime/server-BAqC_5WD.mjs +2 -0
  30. package/runtime/server-DfRpfcY9.mjs +205 -0
  31. package/runtime/source-B_Ui9tMp.mjs +141 -0
  32. package/runtime/source-CZQq9GUO.mjs +2 -0
  33. package/skills/konpeki/SKILL.md +88 -172
  34. package/skills/konpeki/assets/blank.html +17 -0
  35. package/skills/konpeki/floor.md +76 -0
  36. package/skills/konpeki/references/cover.md +27 -0
  37. package/skills/konpeki/references/long-document.md +40 -0
  38. package/skills/konpeki/references/one-pager.md +27 -0
  39. package/skills/konpeki/references/patterns.md +118 -0
  40. package/skills/konpeki/references/resume.md +28 -0
  41. package/skills/konpeki/references/slides.md +28 -0
  42. package/skills/konpeki/scripts/ensure-runtime.mjs +10 -31
  43. package/skills/konpeki/scripts/prepare-document.mjs +25 -14
  44. package/src/components/PageBoard.tsx +156 -0
  45. package/src/lib/alignment.ts +21 -0
  46. package/src/lib/page-board.ts +25 -0
  47. package/src/lib/review-position.ts +19 -0
  48. package/src/styles/base.css +4 -6
  49. package/src/styles/feedback.css +97 -61
  50. package/src/styles/shell.css +95 -323
  51. package/theme-base.css +90 -0
  52. package/theme.css +56 -0
  53. package/vite.config.ts +2 -5
  54. package/composition/README.md +0 -156
  55. package/composition/compile.ts +0 -227
  56. package/composition/document.ts +0 -600
  57. package/composition/schema.json +0 -3001
  58. package/composition/schema.ts +0 -437
  59. package/composition/theme-tokens.ts +0 -16
  60. package/composition/types.ts +0 -269
  61. package/composition/validate.ts +0 -226
  62. package/composition/vector.ts +0 -143
  63. package/composition/visualizations.ts +0 -319
  64. package/design/README.md +0 -17
  65. package/design/palettes/README.md +0 -14
  66. package/design/palettes/base.ts +0 -14
  67. package/design/palettes/candidates.ts +0 -19
  68. package/design/palettes/index.ts +0 -78
  69. package/design/review/color-theme.md +0 -44
  70. package/design/review/layout.md +0 -16
  71. package/design/review/text.md +0 -18
  72. package/design/review/typography.md +0 -15
  73. package/design/review/visuals.md +0 -31
  74. package/design/semantic-patterns.md +0 -43
  75. package/design/themes/README.md +0 -40
  76. package/design/themes/index.ts +0 -24
  77. package/design/visual-languages/technical-product.md +0 -17
  78. package/design/visual-review.md +0 -88
  79. package/lib/assets.d.ts +0 -8
  80. package/lib/charts.ts +0 -18
  81. package/lib/contrast.ts +0 -16
  82. package/lib/layouts.ts +0 -50
  83. package/lib/slide.tsx +0 -42
  84. package/lib/taste.ts +0 -17
  85. package/lib/text.tsx +0 -89
  86. package/lib/typeface.ts +0 -44
  87. package/scripts/migrate-react-page.ts +0 -120
  88. package/skills/konpeki/assets/blank.json +0 -23
  89. package/slides/README.md +0 -153
  90. package/slides/architecture/PROMPT.md +0 -31
  91. package/slides/architecture/index.tsx +0 -102
  92. package/slides/article-brief/PROMPT.md +0 -35
  93. package/slides/article-brief/index.tsx +0 -71
  94. package/slides/bar-chart/PROMPT.md +0 -39
  95. package/slides/bar-chart/index.tsx +0 -97
  96. package/slides/comparison/PROMPT.md +0 -29
  97. package/slides/comparison/index.tsx +0 -95
  98. package/slides/decision-memo/PROMPT.md +0 -34
  99. package/slides/decision-memo/index.tsx +0 -85
  100. package/slides/delivery-plan/PROMPT.md +0 -45
  101. package/slides/delivery-plan/index.tsx +0 -105
  102. package/slides/experiment/PROMPT.md +0 -44
  103. package/slides/experiment/index.tsx +0 -127
  104. package/slides/incident-workflow/PROMPT.md +0 -57
  105. package/slides/incident-workflow/index.tsx +0 -78
  106. package/slides/introducing-konpeki/PROMPT.md +0 -40
  107. package/slides/introducing-konpeki/README.md +0 -76
  108. package/slides/introducing-konpeki/SOURCE.md +0 -26
  109. package/slides/introducing-konpeki/author.ts +0 -165
  110. package/slides/introducing-konpeki/composition.json +0 -3270
  111. package/slides/line-chart/PROMPT.md +0 -40
  112. package/slides/line-chart/index.tsx +0 -72
  113. package/slides/migration/PROMPT.md +0 -38
  114. package/slides/migration/index.tsx +0 -89
  115. package/slides/og-images/PROMPT.md +0 -21
  116. package/slides/og-images/index.tsx +0 -76
  117. package/slides/product-introduction/PROMPT.md +0 -24
  118. package/slides/product-introduction/index.tsx +0 -105
  119. package/slides/research-brief/PROMPT.md +0 -40
  120. package/slides/research-brief/index.tsx +0 -104
  121. package/slides/results-explanation/PROMPT.md +0 -32
  122. package/slides/results-explanation/index.tsx +0 -96
  123. package/slides/retrospective/PROMPT.md +0 -43
  124. package/slides/retrospective/index.tsx +0 -105
  125. package/slides/sankey/PROMPT.md +0 -11
  126. package/slides/sankey/index.tsx +0 -93
  127. package/slides/teaching/PROMPT.md +0 -45
  128. package/slides/teaching/index.tsx +0 -124
  129. package/slides/vertical-bar-charts/PROMPT.md +0 -13
  130. package/slides/vertical-bar-charts/index.tsx +0 -97
  131. package/src/app/App.tsx +0 -820
  132. package/src/components/BuildOrb.tsx +0 -40
  133. package/src/components/Canvas.tsx +0 -1185
  134. package/src/components/DiagramTypeIcon.tsx +0 -78
  135. package/src/components/InspectorPanel.tsx +0 -773
  136. package/src/components/LeftPanel.tsx +0 -120
  137. package/src/components/PageSizePicker.tsx +0 -30
  138. package/src/components/Presentation.tsx +0 -105
  139. package/src/components/RevisionNotes.tsx +0 -56
  140. package/src/components/RightPanel.tsx +0 -201
  141. package/src/components/VectorOverflowWarning.tsx +0 -46
  142. package/src/components/WorkspaceChrome.tsx +0 -288
  143. package/src/components/ui.tsx +0 -53
  144. package/src/lib/examples/react-page-migration.json +0 -1295
  145. package/src/lib/examples.ts +0 -42
  146. package/src/lib/export-png.ts +0 -104
  147. package/src/lib/file-session.ts +0 -87
  148. package/src/lib/history.ts +0 -53
  149. package/src/lib/model.ts +0 -188
  150. package/src/lib/page-size.ts +0 -24
  151. package/src/lib/presentation.ts +0 -17
  152. package/src/lib/review.ts +0 -26
  153. package/src/lib/storage.ts +0 -71
  154. package/src/lib/theme.ts +0 -25
  155. package/src/lib/use-file-session.ts +0 -227
  156. package/src/main.tsx +0 -29
  157. package/src/styles/canvas.css +0 -299
  158. package/src/styles/chrome.css +0 -384
  159. package/src/styles/component-previews.css +0 -386
  160. package/src/styles/left-panel.css +0 -166
  161. package/src/styles/presentation.css +0 -72
  162. package/src/styles/right-panel.css +0 -1215
@@ -1,1215 +0,0 @@
1
- .inspector-content,
2
- .layers-panel {
3
- flex: 1;
4
- min-height: 0;
5
- padding: 18px 16px;
6
- overflow-y: auto;
7
- }
8
-
9
- .inspector-content h2 {
10
- margin-bottom: 16px;
11
- }
12
-
13
- .inspector-content:has(> .page-number-picker) legend {
14
- margin-bottom: 7px;
15
- }
16
-
17
- .field-error {
18
- color: #a02020 !important;
19
- }
20
-
21
- .custom-visual-summary p {
22
- margin: 0 0 10px;
23
- color: var(--ui-text);
24
- font-size: 12px;
25
- line-height: 1.5;
26
- }
27
-
28
- .custom-visual-summary dl {
29
- display: grid;
30
- gap: 6px;
31
- margin: 0 0 12px;
32
- }
33
-
34
- .custom-visual-summary dl > div {
35
- display: flex;
36
- justify-content: space-between;
37
- gap: 12px;
38
- }
39
-
40
- .custom-visual-summary dt,
41
- .custom-visual-summary dd {
42
- margin: 0;
43
- font-size: 11px;
44
- }
45
-
46
- .custom-visual-summary dt {
47
- color: var(--ui-muted);
48
- }
49
-
50
- .custom-visual-summary .field-help {
51
- margin: 0;
52
- color: var(--ui-muted);
53
- font-size: 11px;
54
- }
55
-
56
- .custom-visual-summary .field {
57
- margin-top: 14px;
58
- margin-bottom: 0;
59
- }
60
-
61
- .vector-element-editor {
62
- display: grid;
63
- gap: 10px;
64
- margin-top: 14px;
65
- padding-top: 14px;
66
- border-top: 1px solid var(--ui-line);
67
- }
68
-
69
- .vector-element-editor > strong {
70
- font-size: 11px;
71
- }
72
-
73
- .vector-actions {
74
- display: grid;
75
- grid-template-columns: repeat(3, minmax(0, 1fr));
76
- gap: 6px;
77
- }
78
-
79
- .vector-actions button {
80
- display: inline-flex;
81
- align-items: center;
82
- justify-content: center;
83
- gap: 6px;
84
- min-width: 0;
85
- min-height: 40px;
86
- padding: 7px 6px;
87
- border-color: transparent;
88
- border-radius: 8px;
89
- background: #f4f4f5;
90
- font-size: 11px;
91
- white-space: nowrap;
92
- }
93
-
94
- .vector-actions button:hover:not(:disabled) {
95
- border-color: transparent;
96
- background: #e9e9eb;
97
- }
98
-
99
- .vector-action-icon {
100
- flex: none;
101
- width: 16px;
102
- height: 16px;
103
- fill: none;
104
- stroke: currentColor;
105
- stroke-linecap: round;
106
- stroke-linejoin: round;
107
- stroke-width: 1.5;
108
- }
109
-
110
- .vector-actions .vector-delete-action {
111
- background: #fff1f1;
112
- color: #9d2020;
113
- }
114
-
115
- .vector-actions .vector-delete-action:hover:not(:disabled) {
116
- background: #ffe3e3;
117
- color: #841919;
118
- }
119
-
120
- .vector-attributes {
121
- display: grid;
122
- grid-template-columns: 1fr 1fr;
123
- gap: 0 10px;
124
- }
125
-
126
- .vector-attributes .field {
127
- min-width: 0;
128
- margin-top: 0;
129
- margin-bottom: 8px;
130
- }
131
-
132
- .theme-picker {
133
- margin-top: 0;
134
- }
135
-
136
- .theme-picker + .choice-picker {
137
- margin-top: 20px;
138
- }
139
-
140
- .segmented-options {
141
- display: grid;
142
- gap: 3px;
143
- padding: 3px;
144
- background: #f4f4f5;
145
- border-radius: 7px;
146
- }
147
-
148
- .segmented-options button {
149
- min-width: 0;
150
- min-height: 40px;
151
- padding: 5px 7px;
152
- border: 1px solid transparent;
153
- border-radius: 5px;
154
- background: transparent;
155
- color: var(--ui-muted);
156
- font-size: 12px;
157
- }
158
-
159
- .segmented-options button:hover:not(:disabled) {
160
- background: #e9e9eb;
161
- border-color: transparent;
162
- }
163
-
164
- .segmented-options button.selected {
165
- background: var(--ui-selected);
166
- border-color: color-mix(in srgb, var(--accent) 45%, white);
167
- box-shadow: none;
168
- color: #006aa1;
169
- }
170
-
171
- .inspector-content .slide-settings-heading {
172
- margin-top: 24px;
173
- padding-top: 20px;
174
- border-top: 1px solid var(--ui-border);
175
- }
176
-
177
- .page-number-picker,
178
- .page-number-picker > .choice-picker:first-of-type {
179
- margin-top: 0;
180
- }
181
-
182
- .theme-options {
183
- display: grid;
184
- grid-template-columns: 1fr 1fr;
185
- gap: 7px;
186
- }
187
-
188
- .theme-options button {
189
- display: grid;
190
- min-width: 0;
191
- gap: 7px;
192
- padding: 9px;
193
- text-align: left;
194
- }
195
-
196
- .theme-options button.selected {
197
- border-color: color-mix(in srgb, var(--accent) 45%, white);
198
- background: var(--ui-selected);
199
- box-shadow: none;
200
- }
201
-
202
- .theme-options button > span:first-child {
203
- overflow: hidden;
204
- font-size: 11px;
205
- text-overflow: ellipsis;
206
- white-space: nowrap;
207
- }
208
-
209
- .theme-swatches {
210
- display: flex;
211
- gap: 3px;
212
- }
213
-
214
- .theme-swatches i {
215
- display: block;
216
- flex: 1;
217
- height: 7px;
218
- border-radius: 1px;
219
- }
220
-
221
- .layers-heading-row {
222
- display: flex;
223
- align-items: baseline;
224
- justify-content: space-between;
225
- gap: 8px;
226
- margin-bottom: 12px;
227
- }
228
-
229
- .layers-heading-row h2 {
230
- margin: 0;
231
- font-size: 12px;
232
- font-weight: 600;
233
- }
234
-
235
- .layers-heading-row > span,
236
- .layers-empty {
237
- color: var(--ui-muted);
238
- font-size: 10px;
239
- }
240
-
241
- .layers-empty {
242
- margin: 12px 2px;
243
- }
244
-
245
- .layer-list {
246
- display: grid;
247
- gap: 4px;
248
- }
249
-
250
- .layer-row {
251
- display: grid;
252
- grid-template-columns: 16px minmax(0, 1fr) auto;
253
- align-items: center;
254
- min-height: 48px;
255
- border: 1px solid transparent;
256
- border-radius: 6px;
257
- background: #fafafa;
258
- }
259
-
260
- .layer-row.selected {
261
- border-color: color-mix(in srgb, var(--accent) 45%, white);
262
- background: var(--ui-selected);
263
- }
264
-
265
- .layer-row.dragging {
266
- opacity: 0.45;
267
- }
268
-
269
- .layer-drag {
270
- color: var(--ui-muted);
271
- font-size: 13px;
272
- cursor: grab;
273
- }
274
-
275
- .layer-select {
276
- display: grid;
277
- min-width: 0;
278
- padding: 5px 3px;
279
- border: 0;
280
- background: transparent;
281
- text-align: left;
282
- }
283
-
284
- .layer-select:hover:not(:disabled) {
285
- border-color: transparent;
286
- background: transparent;
287
- }
288
-
289
- .layer-select strong,
290
- .layer-select span {
291
- overflow: hidden;
292
- text-overflow: ellipsis;
293
- white-space: nowrap;
294
- }
295
-
296
- .layer-select strong {
297
- font-size: 11px;
298
- font-weight: 500;
299
- }
300
-
301
- .layer-select span {
302
- color: var(--ui-muted);
303
- font-size: 10px;
304
- }
305
-
306
- .layer-actions {
307
- display: flex;
308
- padding-right: 3px;
309
- }
310
-
311
- .layer-actions button {
312
- width: 40px;
313
- height: 40px;
314
- padding: 0;
315
- border: 0;
316
- background: transparent;
317
- color: var(--ui-muted);
318
- font-size: 11px;
319
- }
320
-
321
- .field {
322
- display: grid;
323
- gap: 7px;
324
- margin-bottom: 17px;
325
- font-size: 12px;
326
- }
327
-
328
- .inspector-context {
329
- display: flex;
330
- align-items: center;
331
- gap: 6px;
332
- }
333
-
334
- .inspector-context button {
335
- display: inline-flex;
336
- align-items: center;
337
- min-width: 40px;
338
- min-height: 40px;
339
- padding: 0;
340
- border: 0;
341
- background: transparent;
342
- color: var(--ui-muted);
343
- font-weight: 500;
344
- }
345
-
346
- .inspector-context button:hover {
347
- background: transparent;
348
- color: var(--accent);
349
- }
350
-
351
- .field > span {
352
- color: #565656;
353
- }
354
-
355
- .field:has(> select[name="Font"]) > span {
356
- color: var(--ui-text);
357
- font-weight: 500;
358
- }
359
-
360
- .field textarea {
361
- resize: none;
362
- overflow-y: auto;
363
- }
364
-
365
- .native-text-inspector > .field {
366
- margin-bottom: 12px;
367
- gap: 5px;
368
- }
369
-
370
- .native-text-inspector > .field textarea {
371
- height: 64px;
372
- min-height: 64px;
373
- resize: vertical;
374
- }
375
-
376
- .text-typography-fields {
377
- display: grid;
378
- grid-template-columns: repeat(2, minmax(0, 1fr));
379
- gap: 10px 12px;
380
- margin-bottom: 12px;
381
- }
382
-
383
- .text-typography-fields .field {
384
- min-width: 0;
385
- margin: 0;
386
- gap: 5px;
387
- }
388
-
389
- .appearance-options {
390
- display: grid;
391
- grid-template-columns: repeat(2, minmax(0, 1fr));
392
- gap: 6px;
393
- }
394
-
395
- .appearance-options button {
396
- display: grid;
397
- grid-template-columns: 38px minmax(0, 1fr);
398
- align-items: center;
399
- min-height: 42px;
400
- gap: 7px;
401
- padding: 6px;
402
- text-align: left;
403
- }
404
-
405
- .appearance-options button.selected {
406
- border-color: color-mix(in srgb, var(--accent) 45%, white);
407
- background: var(--ui-selected);
408
- box-shadow: none;
409
- }
410
-
411
- .appearance-options button:disabled {
412
- opacity: 0.48;
413
- }
414
-
415
- .appearance-options button > span:last-child {
416
- overflow: hidden;
417
- font-size: 10px;
418
- line-height: 1.2;
419
- text-overflow: ellipsis;
420
- }
421
-
422
- .appearance-preview {
423
- position: relative;
424
- display: grid;
425
- width: 36px;
426
- height: 24px;
427
- gap: 2px;
428
- padding: 3px;
429
- overflow: hidden;
430
- border: 1px solid #dedede;
431
- background: #fff;
432
- }
433
-
434
- .appearance-preview i {
435
- display: block;
436
- min-width: 2px;
437
- min-height: 2px;
438
- background: var(--preview-muted);
439
- }
440
-
441
- .appearance-preview[data-property="alignment"],
442
- .appearance-preview[data-property="titleStyle"],
443
- .appearance-preview[data-property="purpose"] {
444
- display: flex;
445
- flex-direction: column;
446
- justify-content: center;
447
- }
448
-
449
- .appearance-preview[data-property="alignment"] i,
450
- .appearance-preview[data-property="titleStyle"] i,
451
- .appearance-preview[data-property="purpose"] i {
452
- width: 72%;
453
- height: 2px;
454
- min-height: 2px;
455
- }
456
-
457
- .appearance-preview[data-property="alignment"] i:nth-child(n + 4),
458
- .appearance-preview[data-property="titleStyle"] i:nth-child(n + 3),
459
- .appearance-preview[data-property="purpose"] i:nth-child(n + 4) {
460
- display: none;
461
- }
462
-
463
- .appearance-preview[data-property="logicalOrder"] {
464
- grid-template-columns: repeat(4, 1fr);
465
- align-items: center;
466
- }
467
-
468
- .appearance-preview[data-property="logicalOrder"][data-value="parallel"] {
469
- grid-template-columns: repeat(3, 1fr);
470
- }
471
-
472
- .appearance-preview[data-property="logicalOrder"][data-value="progressive"] {
473
- align-items: end;
474
- }
475
-
476
- .appearance-preview[data-property="logicalOrder"][data-value="progressive"] i:nth-child(1) { height: 4px; }
477
- .appearance-preview[data-property="logicalOrder"][data-value="progressive"] i:nth-child(2) { height: 8px; }
478
- .appearance-preview[data-property="logicalOrder"][data-value="progressive"] i:nth-child(3) { height: 12px; }
479
- .appearance-preview[data-property="logicalOrder"][data-value="progressive"] i:nth-child(4) { height: 16px; }
480
-
481
- .appearance-preview[data-property="tableStyle"] {
482
- gap: 0;
483
- padding: 2px;
484
- grid-template: repeat(2, 1fr) / repeat(3, 1fr);
485
- }
486
-
487
- .appearance-preview[data-property="tableStyle"] i {
488
- background: transparent;
489
- border-radius: 0;
490
- }
491
-
492
- .appearance-preview[data-property="tableStyle"] i:nth-child(-n + 3) {
493
- border-bottom: 2px solid var(--preview-ink);
494
- }
495
- .appearance-preview[data-property="tableStyle"][data-value="top-header-bottom"] {
496
- border-block: 1px solid var(--preview-muted);
497
- }
498
- .appearance-preview[data-property="tableStyle"][data-value="row-rules"] i {
499
- border-bottom: 1px solid var(--preview-muted);
500
- }
501
- .appearance-preview[data-property="tableStyle"][data-value="full-grid"] {
502
- border-top: 1px solid var(--preview-muted);
503
- border-left: 1px solid var(--preview-muted);
504
- }
505
- .appearance-preview[data-property="tableStyle"][data-value="full-grid"] i {
506
- border-right: 1px solid var(--preview-muted);
507
- border-bottom: 1px solid var(--preview-muted);
508
- }
509
-
510
- .appearance-preview[data-property="logicalOrder"][data-value="cyclical"] {
511
- grid-template: repeat(2, 1fr) / repeat(2, 1fr);
512
- border-radius: 50%;
513
- }
514
-
515
- .appearance-preview[data-property="logicalOrder"][data-value="general-to-specific"],
516
- .appearance-preview[data-property="logicalOrder"][data-value="hierarchical"] {
517
- grid-template: repeat(2, 1fr) / repeat(3, 1fr);
518
- }
519
-
520
- .appearance-preview[data-property="logicalOrder"][data-value="general-to-specific"] i:first-child {
521
- grid-column: 1 / -1;
522
- }
523
-
524
- .appearance-preview[data-property="logicalOrder"][data-value="hierarchical"] i:first-child {
525
- grid-column: 2;
526
- }
527
-
528
- .appearance-preview[data-property="logicalOrder"][data-value="hierarchical"] i:nth-child(n + 2) {
529
- grid-row: 2;
530
- }
531
-
532
- .appearance-preview[data-property="alignment"][data-value="center"] i {
533
- margin-inline: auto;
534
- }
535
-
536
- .appearance-preview[data-property="alignment"][data-value="end"] i {
537
- margin-left: auto;
538
- }
539
-
540
- .appearance-preview[data-property="border"] i {
541
- grid-area: 1 / 1 / -1 / -1;
542
- background:
543
- linear-gradient(var(--preview-muted) 0 0) 5px 6px / 18px 2px no-repeat,
544
- linear-gradient(var(--preview-muted) 0 0) 5px 11px / 13px 2px no-repeat;
545
- }
546
-
547
- .appearance-preview[data-property="border"][data-value="outline"] i {
548
- border: 1px solid var(--preview-ink);
549
- }
550
-
551
- .appearance-preview[data-property="border"][data-value="filled"] i {
552
- background:
553
- linear-gradient(#fff 0 0) 5px 6px / 18px 2px no-repeat,
554
- linear-gradient(#fff 0 0) 5px 11px / 13px 2px no-repeat,
555
- var(--preview-ink);
556
- }
557
-
558
- .appearance-preview[data-property="layout"] {
559
- align-items: stretch;
560
- grid-auto-flow: column;
561
- grid-auto-columns: 1fr;
562
- }
563
-
564
- .appearance-preview[data-property="layout"][data-value="two-plus-two"] {
565
- grid-template: repeat(2, 1fr) / repeat(2, 1fr);
566
- }
567
-
568
- .appearance-preview[data-property="layout"][data-value="one-plus-three"],
569
- .appearance-preview[data-property="layout"][data-value="three-plus-one"] {
570
- grid-template: repeat(3, 1fr) / repeat(2, 1fr);
571
- }
572
-
573
- .appearance-preview[data-property="layout"][data-value="one-plus-three"] i:first-child,
574
- .appearance-preview[data-property="layout"][data-value="three-plus-one"] i:last-child {
575
- grid-row: 1 / -1;
576
- }
577
-
578
- .appearance-preview[data-property="layout"][data-value="three-plus-one"] i:last-child {
579
- grid-column: 2;
580
- }
581
-
582
- .appearance-preview[data-property="orientation"][data-value="horizontal"] {
583
- grid-template-columns: repeat(4, 1fr);
584
- }
585
-
586
- .appearance-preview[data-property="orientation"][data-value="vertical"] {
587
- grid-template-rows: repeat(4, 1fr);
588
- }
589
-
590
- .appearance-preview[data-property="purpose"][data-value="comparison"] {
591
- display: grid;
592
- grid-template-columns: 1fr 1fr;
593
- }
594
-
595
- .appearance-preview[data-property="purpose"][data-value="comparison"] i {
596
- display: block;
597
- width: auto;
598
- height: auto;
599
- }
600
-
601
- .appearance-preview[data-property="purpose"][data-value="emphasis"] i:first-child {
602
- width: 100%;
603
- height: 5px;
604
- background: var(--preview-accent);
605
- }
606
-
607
- .appearance-preview[data-property="purpose"][data-value="emphasis"] i:nth-child(n + 2) {
608
- display: none;
609
- }
610
-
611
- .appearance-preview[data-property="treatment"] i {
612
- grid-area: 1 / 1 / -1 / -1;
613
- margin: 5px;
614
- }
615
-
616
- .appearance-preview[data-property="treatment"][data-value="subtle"] {
617
- background: color-mix(in srgb, var(--preview-accent) 10%, white);
618
- }
619
-
620
- .appearance-preview[data-property="treatment"][data-value="strong"] {
621
- background: var(--preview-ink);
622
- }
623
-
624
- .appearance-preview[data-property="treatment"][data-value="strong"] i {
625
- background: #fff;
626
- }
627
-
628
- .appearance-preview[data-property="titleStyle"][data-value="prominent"] i:first-child {
629
- width: 90%;
630
- height: 5px;
631
- background: var(--preview-ink);
632
- }
633
-
634
- .appearance-preview[data-property="rule"]::after {
635
- position: absolute;
636
- right: 3px;
637
- left: 3px;
638
- border-top: 2px solid var(--preview-accent);
639
- content: "";
640
- }
641
-
642
- .appearance-preview[data-property="rule"][data-value="none"]::after {
643
- display: none;
644
- }
645
-
646
- .appearance-preview[data-property="rule"][data-value="top"]::after {
647
- top: 4px;
648
- }
649
-
650
- .appearance-preview[data-property="rule"][data-value="bottom"]::after {
651
- bottom: 4px;
652
- }
653
-
654
- .appearance-preview[data-property="density"][data-value="sparse"] i:nth-child(n + 3),
655
- .appearance-preview[data-property="legend"] i {
656
- display: none;
657
- }
658
-
659
- .appearance-preview[data-property="density"] {
660
- grid-template-columns: repeat(4, 1fr);
661
- align-items: end;
662
- }
663
-
664
- .appearance-preview[data-property="density"] i:nth-child(odd) {
665
- height: 8px;
666
- }
667
-
668
- .appearance-preview[data-property="density"] i:nth-child(even) {
669
- height: 15px;
670
- }
671
-
672
- .appearance-preview[data-property="density"][data-value="sparse"] i:nth-child(n + 3) {
673
- display: none;
674
- }
675
-
676
- .appearance-preview[data-property="legend"]::after {
677
- position: absolute;
678
- width: 16px;
679
- height: 3px;
680
- background:
681
- linear-gradient(90deg, var(--preview-accent) 0 6px, transparent 6px 9px, var(--preview-muted) 9px);
682
- content: "";
683
- }
684
-
685
- .appearance-preview[data-property="legend"][data-value="none"]::after {
686
- display: none;
687
- }
688
-
689
- .appearance-preview[data-property="legend"][data-value="top"]::after {
690
- top: 4px;
691
- left: 4px;
692
- }
693
-
694
- .appearance-preview[data-property="legend"][data-value="right"]::after {
695
- top: 5px;
696
- right: 3px;
697
- width: 3px;
698
- height: 14px;
699
- background: linear-gradient(var(--preview-accent) 0 6px, transparent 6px 9px, var(--preview-muted) 9px);
700
- }
701
-
702
- .appearance-preview[data-property="legend"][data-value="bottom"]::after {
703
- bottom: 4px;
704
- left: 4px;
705
- }
706
-
707
- .appearance-preview[data-property="color"] i,
708
- .appearance-preview[data-property="colorScheme"] i,
709
- .appearance-preview[data-property="emphasis"] i {
710
- border-radius: 50%;
711
- }
712
-
713
- .appearance-preview[data-property="color"][data-value="ink"] i {
714
- background: var(--preview-ink);
715
- }
716
-
717
- .appearance-preview[data-property="color"][data-value="accent"] i,
718
- .appearance-preview[data-property="colorScheme"][data-value="accent-with-muted-context"] i:first-child,
719
- .appearance-preview[data-property="emphasis"][data-value="primary"] i:first-child,
720
- .appearance-preview[data-property="emphasis"][data-value="latest-series"] i:last-child {
721
- background: var(--preview-accent);
722
- }
723
-
724
- .appearance-preview[data-property="colorScheme"],
725
- .appearance-preview[data-property="emphasis"] {
726
- grid-template-columns: repeat(4, 1fr);
727
- align-items: center;
728
- }
729
-
730
- .appearance-preview[data-property="colorScheme"][data-value="monochrome"] i {
731
- background: var(--preview-ink);
732
- opacity: 0.35;
733
- }
734
-
735
- .appearance-preview[data-property="colorScheme"][data-value="monochrome"] i:nth-child(n + 3) {
736
- opacity: 0.75;
737
- }
738
-
739
- .appearance-preview[data-property="colorScheme"][data-value="categorical"] i:nth-child(1) {
740
- background: var(--preview-accent);
741
- }
742
-
743
- .appearance-preview[data-property="colorScheme"][data-value="categorical"] i:nth-child(2) {
744
- background: var(--preview-secondary);
745
- }
746
-
747
- .appearance-preview[data-property="colorScheme"][data-value="categorical"] i:nth-child(3) {
748
- background: var(--preview-tertiary);
749
- }
750
-
751
- .appearance-preview[data-property="colorScheme"][data-value="sequential"] i {
752
- background: var(--preview-accent);
753
- }
754
-
755
- .appearance-preview[data-property="colorScheme"][data-value="sequential"] i:nth-child(1) { opacity: 0.2; }
756
- .appearance-preview[data-property="colorScheme"][data-value="sequential"] i:nth-child(2) { opacity: 0.4; }
757
- .appearance-preview[data-property="colorScheme"][data-value="sequential"] i:nth-child(3) { opacity: 0.65; }
758
-
759
- .appearance-preview[data-property="colorScheme"][data-value="status"] i:nth-child(1) { background: var(--preview-complete); }
760
- .appearance-preview[data-property="colorScheme"][data-value="status"] i:nth-child(2) { background: var(--preview-attention); }
761
- .appearance-preview[data-property="colorScheme"][data-value="status"] i:nth-child(n + 3) { background: var(--preview-blocked); }
762
-
763
- .appearance-preview[data-property="emphasis"] i {
764
- background: var(--preview-muted);
765
- }
766
-
767
- .appearance-preview[data-property="emphasis"][data-value="exception"] i:nth-child(2) {
768
- background: var(--preview-blocked);
769
- }
770
-
771
- .appearance-preview[data-property="type"] {
772
- grid-template-columns: repeat(4, 1fr);
773
- align-items: center;
774
- }
775
-
776
- .appearance-preview[data-property="type"]::before {
777
- position: absolute;
778
- right: 5px;
779
- left: 5px;
780
- top: 11px;
781
- border-top: 1px solid var(--preview-muted);
782
- content: "";
783
- }
784
-
785
- .appearance-preview[data-property="type"] i {
786
- z-index: 1;
787
- height: 6px;
788
- border-radius: 1px;
789
- }
790
-
791
- .appearance-preview[data-property="type"][data-value="system"] i:first-child {
792
- grid-column: 2 / 4;
793
- }
794
-
795
- .appearance-preview[data-property="type"][data-value="system"] i:nth-child(n + 2) {
796
- align-self: end;
797
- }
798
-
799
- .appearance-preview[data-property="template"] {
800
- display: block;
801
- }
802
-
803
- .appearance-preview[data-property="template"] svg {
804
- position: absolute;
805
- inset: 0;
806
- width: 100%;
807
- height: 100%;
808
- }
809
-
810
- .appearance-preview[data-property="template"] i {
811
- position: absolute;
812
- z-index: 1;
813
- width: 5px;
814
- height: 5px;
815
- border-radius: 1px;
816
- }
817
-
818
- .appearance-preview[data-property="template"][data-value="grouped-bar"] {
819
- display: grid;
820
- grid-template-columns: repeat(4, 1fr);
821
- align-items: end;
822
- }
823
-
824
- .appearance-preview[data-property="template"][data-value="grouped-bar"] i {
825
- position: static;
826
- width: auto;
827
- height: 9px;
828
- border-radius: 0;
829
- }
830
-
831
- .appearance-preview[data-property="template"][data-value="grouped-bar"] i:nth-child(even) { height: 15px; background: var(--preview-accent); }
832
-
833
- .appearance-preview[data-property="template"][data-value="line"]::before {
834
- position: absolute;
835
- left: 5px;
836
- top: 12px;
837
- width: 25px;
838
- height: 9px;
839
- border-top: 2px solid var(--preview-accent);
840
- transform: skewY(-18deg);
841
- content: "";
842
- }
843
-
844
- .appearance-preview[data-property="template"][data-value="line"] i:nth-child(1) { left: 5px; top: 13px; }
845
- .appearance-preview[data-property="template"][data-value="line"] i:nth-child(2) { left: 14px; top: 9px; }
846
- .appearance-preview[data-property="template"][data-value="line"] i:nth-child(3) { left: 23px; top: 11px; }
847
- .appearance-preview[data-property="template"][data-value="line"] i:nth-child(4) { left: 29px; top: 6px; }
848
-
849
- .appearance-preview[data-property="template"][data-value="pie"]::before {
850
- position: absolute;
851
- inset: 4px 9px;
852
- border-radius: 50%;
853
- background: conic-gradient(var(--preview-accent) 0 34%, var(--preview-secondary) 34% 67%, var(--preview-muted) 67%);
854
- content: "";
855
- }
856
-
857
- .appearance-preview[data-property="template"][data-value="pie"] i {
858
- display: none;
859
- }
860
-
861
- .appearance-preview[data-property="template"][data-value="annotated-detail"] i:first-child {
862
- inset: 4px 12px 4px 4px;
863
- width: auto;
864
- height: auto;
865
- border: 1px solid var(--preview-muted);
866
- background: transparent;
867
- }
868
-
869
- .appearance-preview[data-property="template"][data-value="annotated-detail"] i:nth-child(2) { right: 5px; top: 5px; background: var(--preview-accent); }
870
- .appearance-preview[data-property="template"][data-value="annotated-detail"] i:nth-child(3) { right: 4px; top: 13px; width: 9px; height: 2px; }
871
- .appearance-preview[data-property="template"][data-value="annotated-detail"] i:nth-child(4) { display: none; }
872
-
873
- .appearance-preview[data-property="template"][data-value="radar"]::before {
874
- position: absolute;
875
- inset: 3px 7px;
876
- background: color-mix(in srgb, var(--preview-accent) 35%, transparent);
877
- clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
878
- content: "";
879
- }
880
-
881
- .appearance-preview[data-property="template"][data-value="radar"] i { display: none; }
882
-
883
- .appearance-preview[data-property="template"][data-value="treemap"] i {
884
- border-radius: 0;
885
- }
886
- .appearance-preview[data-property="template"][data-value="treemap"] i:nth-child(1) { inset: 3px 15px 3px 3px; width: auto; height: auto; background: var(--preview-accent); }
887
- .appearance-preview[data-property="template"][data-value="treemap"] i:nth-child(2) { right: 3px; top: 3px; width: 10px; height: 8px; }
888
- .appearance-preview[data-property="template"][data-value="treemap"] i:nth-child(3) { right: 8px; bottom: 3px; width: 5px; height: 7px; }
889
- .appearance-preview[data-property="template"][data-value="treemap"] i:nth-child(4) { right: 3px; bottom: 3px; width: 3px; height: 7px; background: var(--preview-secondary); }
890
-
891
- .appearance-preview[data-property="template"][data-value="linear"]::before,
892
- .appearance-preview[data-property="template"][data-value="request-flow"]::before {
893
- position: absolute;
894
- top: 11px;
895
- right: 5px;
896
- left: 5px;
897
- border-top: 1px solid var(--preview-ink);
898
- content: "";
899
- }
900
-
901
- .appearance-preview[data-property="template"][data-value="linear"] i,
902
- .appearance-preview[data-property="template"][data-value="request-flow"] i {
903
- top: 9px;
904
- }
905
- .appearance-preview[data-property="template"][data-value="linear"] i:nth-child(1),
906
- .appearance-preview[data-property="template"][data-value="request-flow"] i:nth-child(1) { left: 4px; background: var(--preview-accent); }
907
- .appearance-preview[data-property="template"][data-value="linear"] i:nth-child(2),
908
- .appearance-preview[data-property="template"][data-value="request-flow"] i:nth-child(2) { left: 13px; }
909
- .appearance-preview[data-property="template"][data-value="linear"] i:nth-child(3),
910
- .appearance-preview[data-property="template"][data-value="request-flow"] i:nth-child(3) { left: 22px; }
911
- .appearance-preview[data-property="template"][data-value="linear"] i:nth-child(4),
912
- .appearance-preview[data-property="template"][data-value="request-flow"] i:nth-child(4) { right: 4px; }
913
-
914
- .appearance-preview[data-property="template"][data-value="request-flow"]::before {
915
- border-top-style: dashed;
916
- }
917
-
918
- .appearance-preview[data-property="template"][data-value="request-flow"] i:nth-child(3) {
919
- background: var(--preview-accent);
920
- }
921
-
922
- .appearance-preview[data-property="template"][data-value="branching"]::before {
923
- position: absolute;
924
- left: 8px;
925
- top: 6px;
926
- width: 19px;
927
- height: 12px;
928
- border: solid var(--preview-ink);
929
- border-width: 1px 1px 1px 0;
930
- content: "";
931
- }
932
- .appearance-preview[data-property="template"][data-value="branching"] i:first-child { left: 4px; top: 9px; background: var(--preview-accent); }
933
- .appearance-preview[data-property="template"][data-value="branching"] i:nth-child(2) { right: 4px; top: 4px; }
934
- .appearance-preview[data-property="template"][data-value="branching"] i:nth-child(3) { right: 4px; bottom: 4px; }
935
- .appearance-preview[data-property="template"][data-value="branching"] i:nth-child(4) { display: none; }
936
-
937
- .appearance-preview[data-property="template"][data-value="cyclical"]::before {
938
- position: absolute;
939
- inset: 4px 8px;
940
- border: 1px solid var(--preview-ink);
941
- border-radius: 50%;
942
- content: "";
943
- }
944
- .appearance-preview[data-property="template"][data-value="cyclical"] i:nth-child(1) { left: 5px; top: 9px; background: var(--preview-accent); }
945
- .appearance-preview[data-property="template"][data-value="cyclical"] i:nth-child(2) { left: 15px; top: 3px; }
946
- .appearance-preview[data-property="template"][data-value="cyclical"] i:nth-child(3) { right: 5px; top: 9px; }
947
- .appearance-preview[data-property="template"][data-value="cyclical"] i:nth-child(4) { left: 15px; bottom: 3px; }
948
-
949
- .appearance-preview[data-property="template"][data-value="layered"] i:nth-child(1) { left: 5px; top: 4px; background: var(--preview-accent); }
950
- .appearance-preview[data-property="template"][data-value="layered"] i:nth-child(2) { left: 13px; top: 8px; }
951
- .appearance-preview[data-property="template"][data-value="layered"] i:nth-child(3) { left: 21px; top: 12px; }
952
- .appearance-preview[data-property="template"][data-value="layered"] i:nth-child(4) { left: 29px; top: 16px; }
953
-
954
- .appearance-preview[data-property="template"][data-value="hub-and-spoke"]::before {
955
- position: absolute;
956
- inset: 5px 8px;
957
- background: linear-gradient(25deg, transparent 48%, var(--preview-ink) 49% 52%, transparent 53%), linear-gradient(-25deg, transparent 48%, var(--preview-ink) 49% 52%, transparent 53%);
958
- content: "";
959
- }
960
- .appearance-preview[data-property="template"][data-value="hub-and-spoke"] i:first-child { left: 15px; top: 9px; background: var(--preview-accent); }
961
- .appearance-preview[data-property="template"][data-value="hub-and-spoke"] i:nth-child(2) { left: 4px; top: 3px; }
962
- .appearance-preview[data-property="template"][data-value="hub-and-spoke"] i:nth-child(3) { right: 4px; top: 3px; }
963
- .appearance-preview[data-property="template"][data-value="hub-and-spoke"] i:nth-child(4) { right: 4px; bottom: 3px; }
964
-
965
- .appearance-preview[data-property="layout"] {
966
- display: block;
967
- }
968
-
969
- .appearance-preview[data-property="layout"] i {
970
- position: absolute;
971
- z-index: 1;
972
- width: 5px;
973
- height: 5px;
974
- border-radius: 1px;
975
- }
976
-
977
- .appearance-preview[data-property="layout"][data-value="linear"]::before,
978
- .appearance-preview[data-property="layout"][data-value="request-flow"]::before {
979
- position: absolute;
980
- top: 11px;
981
- right: 5px;
982
- left: 5px;
983
- border-top: 1px solid var(--preview-ink);
984
- content: "";
985
- }
986
-
987
- .appearance-preview[data-property="layout"][data-value="request-flow"]::before {
988
- border-top-style: dashed;
989
- }
990
-
991
- .appearance-preview[data-property="layout"][data-value="linear"] i,
992
- .appearance-preview[data-property="layout"][data-value="request-flow"] i { top: 9px; }
993
- .appearance-preview[data-property="layout"][data-value="linear"] i:nth-child(1),
994
- .appearance-preview[data-property="layout"][data-value="request-flow"] i:nth-child(1) { left: 4px; background: var(--preview-accent); }
995
- .appearance-preview[data-property="layout"][data-value="linear"] i:nth-child(2),
996
- .appearance-preview[data-property="layout"][data-value="request-flow"] i:nth-child(2) { left: 13px; }
997
- .appearance-preview[data-property="layout"][data-value="linear"] i:nth-child(3),
998
- .appearance-preview[data-property="layout"][data-value="request-flow"] i:nth-child(3) { left: 22px; }
999
- .appearance-preview[data-property="layout"][data-value="linear"] i:nth-child(4),
1000
- .appearance-preview[data-property="layout"][data-value="request-flow"] i:nth-child(4) { right: 4px; }
1001
-
1002
- .appearance-preview[data-property="layout"][data-value="branching"]::before {
1003
- position: absolute;
1004
- left: 8px;
1005
- top: 6px;
1006
- width: 19px;
1007
- height: 12px;
1008
- border: solid var(--preview-ink);
1009
- border-width: 1px 1px 1px 0;
1010
- content: "";
1011
- }
1012
- .appearance-preview[data-property="layout"][data-value="branching"] i:first-child { left: 4px; top: 9px; background: var(--preview-accent); }
1013
- .appearance-preview[data-property="layout"][data-value="branching"] i:nth-child(2) { right: 4px; top: 4px; }
1014
- .appearance-preview[data-property="layout"][data-value="branching"] i:nth-child(3) { right: 4px; bottom: 4px; }
1015
- .appearance-preview[data-property="layout"][data-value="branching"] i:nth-child(4) { display: none; }
1016
-
1017
- .appearance-preview[data-property="layout"][data-value="cyclical"]::before {
1018
- position: absolute;
1019
- inset: 4px 8px;
1020
- border: 1px solid var(--preview-ink);
1021
- border-radius: 50%;
1022
- content: "";
1023
- }
1024
- .appearance-preview[data-property="layout"][data-value="cyclical"] i:nth-child(1) { left: 5px; top: 9px; background: var(--preview-accent); }
1025
- .appearance-preview[data-property="layout"][data-value="cyclical"] i:nth-child(2) { left: 15px; top: 3px; }
1026
- .appearance-preview[data-property="layout"][data-value="cyclical"] i:nth-child(3) { right: 5px; top: 9px; }
1027
- .appearance-preview[data-property="layout"][data-value="cyclical"] i:nth-child(4) { left: 15px; bottom: 3px; }
1028
-
1029
- .appearance-preview[data-property="layout"][data-value="layered"] i:nth-child(1) { left: 5px; top: 4px; background: var(--preview-accent); }
1030
- .appearance-preview[data-property="layout"][data-value="layered"] i:nth-child(2) { left: 13px; top: 8px; }
1031
- .appearance-preview[data-property="layout"][data-value="layered"] i:nth-child(3) { left: 21px; top: 12px; }
1032
- .appearance-preview[data-property="layout"][data-value="layered"] i:nth-child(4) { left: 29px; top: 16px; }
1033
-
1034
- .appearance-preview[data-property="layout"][data-value="hub-and-spoke"]::before {
1035
- position: absolute;
1036
- inset: 5px 8px;
1037
- background: linear-gradient(25deg, transparent 48%, var(--preview-ink) 49% 52%, transparent 53%), linear-gradient(-25deg, transparent 48%, var(--preview-ink) 49% 52%, transparent 53%);
1038
- content: "";
1039
- }
1040
- .appearance-preview[data-property="layout"][data-value="hub-and-spoke"] i:first-child { left: 15px; top: 9px; background: var(--preview-accent); }
1041
- .appearance-preview[data-property="layout"][data-value="hub-and-spoke"] i:nth-child(2) { left: 4px; top: 3px; }
1042
- .appearance-preview[data-property="layout"][data-value="hub-and-spoke"] i:nth-child(3) { right: 4px; top: 3px; }
1043
- .appearance-preview[data-property="layout"][data-value="hub-and-spoke"] i:nth-child(4) { right: 4px; bottom: 3px; }
1044
-
1045
- fieldset {
1046
- min-width: 0;
1047
- margin: 25px 0 0;
1048
- padding: 0;
1049
- border: 0;
1050
- }
1051
-
1052
- legend {
1053
- margin-bottom: 14px;
1054
- padding: 0;
1055
- font-size: 12px;
1056
- font-weight: 500;
1057
- }
1058
-
1059
- .diagram-type-field {
1060
- display: block;
1061
- }
1062
-
1063
- .diagram-type-field > summary {
1064
- cursor: pointer;
1065
- font-size: 12px;
1066
- line-height: 1.5;
1067
- }
1068
-
1069
- .diagram-type-field[open] > summary {
1070
- margin-bottom: 8px;
1071
- }
1072
-
1073
- .diagram-type-options {
1074
- display: grid;
1075
- margin-top: 8px;
1076
- gap: 16px;
1077
- }
1078
-
1079
- .diagram-type-category > span {
1080
- display: block;
1081
- margin-bottom: 7px;
1082
- color: var(--muted);
1083
- font-size: 10px;
1084
- font-weight: 600;
1085
- letter-spacing: 0.03em;
1086
- text-transform: uppercase;
1087
- }
1088
-
1089
- .diagram-type-category > div {
1090
- display: grid;
1091
- grid-template-columns: repeat(2, minmax(0, 1fr));
1092
- gap: 7px;
1093
- }
1094
-
1095
- .diagram-type-category button {
1096
- display: grid;
1097
- min-width: 0;
1098
- min-height: 70px;
1099
- padding: 8px;
1100
- border: 1px solid var(--line);
1101
- border-radius: 7px;
1102
- background: var(--panel);
1103
- color: var(--ink);
1104
- place-items: center;
1105
- }
1106
-
1107
- .diagram-type-category button:hover:not(:disabled) {
1108
- background: var(--ui-hover);
1109
- }
1110
-
1111
- .diagram-type-category button:disabled {
1112
- opacity: 0.48;
1113
- }
1114
-
1115
- .diagram-type-category button.selected {
1116
- border-color: color-mix(in srgb, var(--accent) 45%, white);
1117
- background: var(--ui-selected);
1118
- }
1119
-
1120
- .diagram-type-category button > span {
1121
- overflow: hidden;
1122
- max-width: 100%;
1123
- font-size: 10px;
1124
- line-height: 1.2;
1125
- text-align: center;
1126
- text-overflow: ellipsis;
1127
- }
1128
-
1129
- .diagram-type-icon {
1130
- width: 48px;
1131
- height: 32px;
1132
- color: var(--muted);
1133
- fill: none;
1134
- stroke: currentColor;
1135
- stroke-linecap: round;
1136
- stroke-linejoin: round;
1137
- stroke-width: 1.35;
1138
- }
1139
-
1140
- .diagram-type-category button.selected .diagram-type-icon {
1141
- color: var(--ui-text);
1142
- }
1143
-
1144
- .diagram-type-icon .filled {
1145
- fill: currentColor;
1146
- stroke: none;
1147
- }
1148
-
1149
- .chart-type-options .appearance-preview {
1150
- margin: 4px 0;
1151
- border: 0;
1152
- background: transparent;
1153
- transform: scale(1.333333);
1154
- }
1155
-
1156
- .visualization-description {
1157
- display: block;
1158
- margin-top: 8px;
1159
- color: var(--muted);
1160
- font-size: 11px;
1161
- line-height: 1.45;
1162
- }
1163
-
1164
- .geometry {
1165
- display: grid;
1166
- grid-template-columns: 1fr 1fr;
1167
- gap: 0 12px;
1168
- }
1169
-
1170
- .geometry .field {
1171
- margin-bottom: 12px;
1172
- }
1173
-
1174
- .right-panel :is(input, select, textarea) {
1175
- min-height: 40px;
1176
- border-color: transparent;
1177
- border-radius: 6px;
1178
- background: #f4f4f5;
1179
- font-size: 12px;
1180
- }
1181
-
1182
- .right-panel :is(input, select, textarea):hover {
1183
- border-color: #d4d4d8;
1184
- }
1185
-
1186
- .parameter-input {
1187
- position: relative;
1188
- display: block;
1189
- }
1190
-
1191
- .parameter-input input {
1192
- min-height: 40px;
1193
- padding-right: 32px;
1194
- appearance: textfield;
1195
- }
1196
-
1197
- .parameter-input input::-webkit-inner-spin-button {
1198
- appearance: none;
1199
- }
1200
-
1201
- .parameter-unit {
1202
- position: absolute;
1203
- right: 10px;
1204
- top: 50%;
1205
- transform: translateY(-50%);
1206
- pointer-events: none;
1207
- color: var(--ui-muted);
1208
- font-size: 11px;
1209
- }
1210
-
1211
- @media (max-width: 1150px) {
1212
- .inspector-content {
1213
- padding: 20px 16px;
1214
- }
1215
- }