payload-canvas 0.6.3 → 0.6.5

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 (60) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +3237 -3236
  3. package/dist/admin/aiKeyField.scss +58 -58
  4. package/dist/admin/diff/layoutDiff.scss +181 -181
  5. package/dist/admin/editor/assistant/assistant.scss +944 -944
  6. package/dist/admin/editor/classes/manager.scss +262 -262
  7. package/dist/admin/editor/comments/comments.scss +539 -539
  8. package/dist/admin/editor/dnd/dnd.scss +261 -261
  9. package/dist/admin/editor/editor.scss +2629 -2629
  10. package/dist/admin/editor/empty/empty.scss +92 -92
  11. package/dist/admin/editor/fields/fields.scss +778 -778
  12. package/dist/admin/editor/generate/generate.scss +276 -276
  13. package/dist/admin/editor/layout/layout.scss +240 -240
  14. package/dist/admin/editor/live/presence.scss +24 -24
  15. package/dist/admin/editor/locale/locale.scss +154 -154
  16. package/dist/admin/editor/media/media.scss +233 -233
  17. package/dist/admin/editor/menu/menu.scss +132 -132
  18. package/dist/admin/editor/motion/motion.scss +84 -84
  19. package/dist/admin/editor/sections/components.scss +238 -238
  20. package/dist/admin/editor/sections/variants.scss +90 -90
  21. package/dist/admin/editor/styles/ClassCss.js +3 -3
  22. package/dist/admin/editor/styles/classes.scss +381 -381
  23. package/dist/admin/editor/styles/styles.scss +1123 -1123
  24. package/dist/admin/editor/styles/tokens.js +2 -1
  25. package/dist/admin/editor/templates/templates.scss +654 -654
  26. package/dist/admin/editor/tooltip/tooltip.scss +39 -39
  27. package/dist/admin/editor/topbar/DocumentActions.js +1 -1
  28. package/dist/admin/editor/topbar/TopBar.js +2 -1
  29. package/dist/admin/editor/topbar/contentMode.scss +26 -26
  30. package/dist/admin/editor/topbar/screens/screens.scss +134 -134
  31. package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
  32. package/dist/admin/editor/topbar/tabTitle.d.ts +6 -0
  33. package/dist/admin/editor/topbar/tabTitle.js +9 -0
  34. package/dist/admin/editor/topbar/topbar.scss +645 -645
  35. package/dist/admin/editor/ui/controls.scss +320 -320
  36. package/dist/admin/forms/submissions.scss +197 -197
  37. package/dist/admin/layoutField.scss +69 -69
  38. package/dist/admin/templateConditions.scss +24 -24
  39. package/dist/ai/prompt.js +40 -40
  40. package/dist/blocks/client/marquee.js +14 -14
  41. package/dist/blocks/payload.js +13 -3
  42. package/dist/core/payloadBlocks.js +10 -1
  43. package/dist/core/responseError.d.ts +5 -0
  44. package/dist/core/responseError.js +8 -0
  45. package/dist/core/sections.d.ts +2 -0
  46. package/dist/core/sections.js +8 -0
  47. package/dist/css/index.d.ts +6 -0
  48. package/dist/css/index.js +40 -1
  49. package/dist/css/shared.js +2 -2
  50. package/dist/live/session.js +18 -0
  51. package/dist/live/storage.d.ts +5 -0
  52. package/dist/live/storage.js +20 -0
  53. package/dist/mcp/index.js +46 -19
  54. package/dist/mcp/shared.js +16 -16
  55. package/dist/plugin/index.d.ts +21 -1
  56. package/dist/plugin/index.js +46 -15
  57. package/dist/react/canvas/BuilderCanvas.js +76 -75
  58. package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +8 -7
  59. package/dist/theme/admin/fields.scss +363 -363
  60. package/package.json +1 -1
@@ -1,2629 +1,2629 @@
1
- // Builder editor. Payload CSS variables only, no Tailwind (it would leak into the admin).
2
- // Works in Payload's light and dark theme: every color comes from a theme variable.
3
-
4
- @layer payload-default {
5
- @keyframes builder-fade-in {
6
- from {
7
- opacity: 0;
8
- transform: translateY(4px);
9
- }
10
- }
11
-
12
- @keyframes builder-tip-in {
13
- from {
14
- opacity: 0;
15
- }
16
- }
17
-
18
- // Type scale and the floating-surface shadow. Three sizes and three weights for all editor
19
- // text, derived from Payload's base size (1rem: 13px, 12px on narrow screens). On :root,
20
- // because Payload's drawers and modals render outside the editor element.
21
- // s: captions, counts, badges, keyboard keys, tooltips, small group titles
22
- // m: labels, inputs, tree rows, tabs, menu items, buttons, help text
23
- // l: the block name and panel titles
24
- :root {
25
- --be-text-s: calc(1rem - 2px);
26
- --be-text-m: 1rem;
27
- --be-text-l: calc(1rem + 1px);
28
- --be-weight-regular: 400;
29
- --be-weight-medium: 500;
30
- --be-weight-strong: 600;
31
- // One shadow for every floating surface: menus, popovers, select lists, tooltips.
32
- --be-shadow: 0 8px 24px rgb(0 0 0 / 0.18), 0 1px 3px rgb(0 0 0 / 0.12);
33
- }
34
-
35
- .builder-editor {
36
- --be-accent: var(--theme-success-500);
37
- --be-accent-strong: var(--theme-success-600);
38
- --be-accent-soft: color-mix(in srgb, var(--theme-success-500) 14%, transparent);
39
- --be-accent-fg: #fff;
40
- --be-border: var(--theme-elevation-150);
41
- --be-border-soft: var(--theme-elevation-100);
42
- // Text colors that pass WCAG AA (4.5:1) on the panel, a selected row and a raised surface.
43
- --be-muted: var(--theme-elevation-600);
44
- --be-accent-text: var(--theme-success-600);
45
- // The selection tag's fill: white text on it passes AA in both themes.
46
- --be-accent-solid: var(--color-success-600);
47
- --be-subtle: var(--theme-elevation-400);
48
- --be-panel: var(--theme-bg);
49
- --be-raised: var(--theme-elevation-50);
50
- --be-hover: var(--theme-elevation-100);
51
- --be-radius: var(--style-radius-s, 4px);
52
- --be-radius-m: var(--style-radius-m, 6px);
53
- --be-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
54
- // Components (live saved section copies) get their own color, as in Figma: the outline,
55
- // the solid fill of the name tag and action bar (white text passes AA on it), and text.
56
- --be-component: #8b5cf6;
57
- --be-component-solid: #7c3aed;
58
- --be-component-text: #6d28d9;
59
-
60
- display: flex;
61
- flex-direction: column;
62
- // The full-screen view: the whole viewport, the top bar first.
63
- height: 100dvh;
64
- min-height: 520px;
65
- overflow: hidden;
66
- color: var(--theme-text);
67
- font-family: var(--font-body);
68
- font-size: var(--be-text-m);
69
- background: var(--be-panel);
70
-
71
- button {
72
- font-family: inherit;
73
- }
74
-
75
- :focus-visible {
76
- outline: 2px solid var(--be-accent);
77
- outline-offset: -2px;
78
- }
79
-
80
- kbd {
81
- display: inline-flex;
82
- align-items: center;
83
- justify-content: center;
84
- min-width: 20px;
85
- height: 20px;
86
- padding: 0 5px;
87
- border: 1px solid var(--be-border);
88
- border-bottom-width: 2px;
89
- border-radius: var(--be-radius);
90
- background: var(--be-raised);
91
- color: var(--theme-elevation-800);
92
- font-family: inherit;
93
- font-size: var(--be-text-s);
94
- font-weight: var(--be-weight-medium);
95
- line-height: 1;
96
- }
97
-
98
- code {
99
- font-family: var(--font-mono, ui-monospace, monospace);
100
- font-size: var(--be-text-s);
101
- }
102
- }
103
-
104
- // ---------------------------------------------------------------------------
105
- // Tooltips: `data-tooltip="Text"` on any element. `tooltip/Tooltips.tsx` shows them in the
106
- // top layer (never clipped) and documents the standard. No `title` attributes in the editor.
107
- // ---------------------------------------------------------------------------
108
-
109
- // Kept from the old CSS-only tooltips: some controls place badges and buttons against it.
110
- .builder-editor [data-tooltip] {
111
- position: relative;
112
- }
113
-
114
- // ---------------------------------------------------------------------------
115
- // Shared controls
116
- // ---------------------------------------------------------------------------
117
-
118
- .builder-editor__icon-button {
119
- display: inline-grid;
120
- flex: none;
121
- place-items: center;
122
- width: 28px;
123
- height: 28px;
124
- padding: 0;
125
- border: 0;
126
- border-radius: var(--be-radius);
127
- background: transparent;
128
- color: var(--theme-elevation-800);
129
- cursor: pointer;
130
- transition: background-color 120ms ease, color 120ms ease;
131
-
132
- &:hover:not(:disabled) {
133
- background: var(--be-hover);
134
- color: var(--theme-text);
135
- }
136
-
137
- &:disabled {
138
- opacity: 0.35;
139
- cursor: default;
140
- }
141
-
142
- &[aria-expanded='true'] {
143
- background: var(--be-hover);
144
- }
145
-
146
- &[aria-pressed='true'] {
147
- background: color-mix(in srgb, var(--be-accent) 14%, transparent);
148
- color: var(--be-accent);
149
- }
150
- }
151
-
152
- .builder-editor__icon-button--small {
153
- width: 22px;
154
- height: 22px;
155
- }
156
-
157
- .builder-editor__segmented {
158
- display: inline-flex;
159
- gap: 2px;
160
- min-width: 0;
161
- margin: 0;
162
- padding: 2px;
163
- border: 0;
164
- border-radius: var(--be-radius-m);
165
- background: var(--theme-elevation-100);
166
- }
167
-
168
- .builder-editor__segmented--full {
169
- display: flex;
170
- width: 100%;
171
-
172
- .builder-editor__segment {
173
- flex: 1;
174
- }
175
- }
176
-
177
- .builder-editor__segment {
178
- display: inline-flex;
179
- align-items: center;
180
- justify-content: center;
181
- gap: 6px;
182
- height: 26px;
183
- min-width: 30px;
184
- padding: 0 10px;
185
- border: 0;
186
- border-radius: var(--be-radius);
187
- background: transparent;
188
- color: var(--theme-elevation-600);
189
- font-size: var(--be-text-m);
190
- font-weight: var(--be-weight-medium);
191
- cursor: pointer;
192
- transition: background-color 120ms ease, color 120ms ease;
193
-
194
- &:hover {
195
- color: var(--theme-text);
196
- }
197
-
198
- &[aria-pressed='true'],
199
- &[aria-selected='true'] {
200
- background: var(--theme-elevation-0);
201
- color: var(--theme-text);
202
- box-shadow: 0 1px 2px rgb(0 0 0 / 0.16), 0 0 0 1px var(--be-border);
203
- }
204
- }
205
-
206
- .builder-editor__segmented--small .builder-editor__segment {
207
- height: 22px;
208
- padding: 0 8px;
209
- font-size: var(--be-text-s);
210
- }
211
-
212
- .builder-editor__segment-count {
213
- color: var(--be-muted);
214
- font-size: var(--be-text-s);
215
- font-variant-numeric: tabular-nums;
216
- }
217
-
218
- .builder-editor__hint {
219
- margin: 0;
220
- color: var(--be-muted);
221
- font-size: var(--be-text-m);
222
- line-height: 1.5;
223
- }
224
-
225
- .builder-editor__hint--center {
226
- padding: 16px 8px;
227
- text-align: center;
228
- }
229
-
230
- .builder-editor__empty {
231
- display: flex;
232
- flex-direction: column;
233
- align-items: center;
234
- gap: 6px;
235
- padding: 24px 16px;
236
- color: var(--be-subtle);
237
- text-align: center;
238
-
239
- > p:not(.builder-editor__hint) {
240
- margin: 4px 0 0;
241
- color: var(--theme-text);
242
- font-size: var(--be-text-m);
243
- font-weight: var(--be-weight-strong);
244
- }
245
-
246
- .builder-editor__hint {
247
- max-width: 240px;
248
- }
249
- }
250
-
251
- .builder-editor__pill {
252
- display: inline-flex;
253
- align-items: center;
254
- gap: 4px;
255
- height: 20px;
256
- padding: 0 7px;
257
- border-radius: 10px;
258
- background: var(--theme-elevation-100);
259
- color: var(--be-muted);
260
- font-size: var(--be-text-s);
261
- font-weight: var(--be-weight-medium);
262
- }
263
-
264
- .builder-editor__count {
265
- min-width: 18px;
266
- padding: 1px 6px;
267
- border-radius: 9px;
268
- background: var(--theme-elevation-100);
269
- color: var(--be-muted);
270
- font-size: var(--be-text-s);
271
- font-weight: var(--be-weight-strong);
272
- text-align: center;
273
- font-variant-numeric: tabular-nums;
274
- }
275
-
276
- // ---------------------------------------------------------------------------
277
- // Canvas width controls (in the top bar, see topbar/topbar.scss)
278
- // ---------------------------------------------------------------------------
279
-
280
- .builder-editor__width-input {
281
- display: inline-flex;
282
- align-items: center;
283
- gap: 2px;
284
- height: 30px;
285
- padding: 0 8px;
286
- border: 1px solid var(--be-border);
287
- border-radius: var(--be-radius-m);
288
- background: var(--theme-input-bg, var(--theme-elevation-0));
289
- color: var(--be-muted);
290
- font-size: var(--be-text-m);
291
- cursor: text;
292
-
293
- &:focus-within {
294
- border-color: var(--be-accent);
295
- }
296
-
297
- input {
298
- width: 40px;
299
- padding: 0;
300
- border: 0;
301
- outline: 0;
302
- background: transparent;
303
- color: var(--theme-text);
304
- font: inherit;
305
- font-variant-numeric: tabular-nums;
306
- text-align: right;
307
- }
308
- }
309
-
310
- .builder-editor__bp-badge {
311
- min-width: 28px;
312
- padding: 3px 7px;
313
- border-radius: var(--be-radius);
314
- background: var(--be-accent-soft);
315
- color: var(--be-accent-text);
316
- font-size: var(--be-text-s);
317
- font-weight: var(--be-weight-strong);
318
- text-align: center;
319
- }
320
-
321
- .builder-editor__error,
322
- .builder-editor__canvas-error {
323
- display: inline-flex;
324
- align-items: center;
325
- gap: 6px;
326
- min-width: 0;
327
- padding: 3px 4px 3px 10px;
328
- border-radius: var(--be-radius-m);
329
- background: color-mix(in srgb, var(--theme-error-500) 12%, transparent);
330
- color: var(--theme-error-500);
331
- font-size: var(--be-text-m);
332
-
333
- button {
334
- color: inherit;
335
- }
336
- }
337
-
338
- .builder-editor__canvas-error {
339
- position: absolute;
340
- z-index: 3;
341
- top: 8px;
342
- left: 50%;
343
- transform: translateX(-50%);
344
-
345
- button {
346
- padding: 2px 6px;
347
- border: 0;
348
- background: none;
349
- font: inherit;
350
- text-decoration: underline;
351
- cursor: pointer;
352
- }
353
- }
354
-
355
- .builder-editor__help {
356
- position: relative;
357
- }
358
-
359
- .builder-editor__help-panel {
360
- position: absolute;
361
- z-index: 100;
362
- top: calc(100% + 8px);
363
- right: 0;
364
- width: 340px;
365
- padding: 12px 14px;
366
- border: 1px solid var(--be-border);
367
- border-radius: var(--be-radius-m);
368
- background: var(--be-panel);
369
- box-shadow: var(--be-shadow);
370
- animation: builder-fade-in 140ms var(--be-ease);
371
-
372
- dl {
373
- display: flex;
374
- flex-direction: column;
375
- gap: 6px;
376
- margin: 0;
377
- }
378
- }
379
-
380
- .builder-editor__help-title {
381
- margin: 0 0 10px;
382
- font-size: var(--be-text-m);
383
- font-weight: var(--be-weight-strong);
384
- }
385
-
386
- .builder-editor__help-row {
387
- display: flex;
388
- align-items: center;
389
- justify-content: space-between;
390
- gap: 12px;
391
-
392
- dt {
393
- color: var(--theme-elevation-700);
394
- font-size: var(--be-text-m);
395
- }
396
-
397
- dd {
398
- display: flex;
399
- flex: none;
400
- gap: 3px;
401
- margin: 0;
402
- }
403
- }
404
-
405
- // ---------------------------------------------------------------------------
406
- // Layout
407
- // ---------------------------------------------------------------------------
408
-
409
- .builder-editor__body {
410
- display: flex;
411
- flex: 1;
412
- min-height: 0;
413
- }
414
-
415
- .builder-editor__left,
416
- .builder-editor__right {
417
- display: flex;
418
- flex-direction: column;
419
- flex: none;
420
- min-height: 0;
421
- background: var(--be-panel);
422
- }
423
-
424
- // The sidebars are resizable (layout/Splitter.tsx). A stored size is a CSS variable on the
425
- // editor root; without one, these defaults apply. A sidebar never takes more than a third of
426
- // the window, so a size stored on a large screen still fits a laptop.
427
- .builder-editor__left {
428
- width: var(--be-left-width, 288px);
429
- max-width: 33vw;
430
- border-right: 1px solid var(--be-border);
431
- }
432
-
433
- .builder-editor__right {
434
- width: var(--be-right-width, 360px);
435
- max-width: 38vw;
436
- border-left: 1px solid var(--be-border);
437
- }
438
-
439
- // Laptop screens: give the canvas more room.
440
- @media (max-width: 1600px) {
441
- .builder-editor__left {
442
- width: var(--be-left-width, 252px);
443
- }
444
-
445
- .builder-editor__right {
446
- width: var(--be-right-width, 320px);
447
- }
448
-
449
- .builder-editor__tile {
450
- min-height: 58px;
451
- }
452
- }
453
-
454
- .builder-editor__panel {
455
- display: flex;
456
- flex-direction: column;
457
- min-height: 0;
458
- }
459
-
460
- .builder-editor__panel--grow {
461
- flex: 1;
462
- }
463
-
464
- .builder-editor__panel-head {
465
- display: flex;
466
- flex: none;
467
- align-items: center;
468
- gap: 8px;
469
- height: 40px;
470
- padding: 0 8px 0 12px;
471
- }
472
-
473
- .builder-editor__panel-title {
474
- display: inline-flex;
475
- align-items: center;
476
- gap: 6px;
477
- margin: 0;
478
- color: var(--theme-text);
479
- font-size: var(--be-text-m);
480
- font-weight: var(--be-weight-strong);
481
- letter-spacing: 0.01em;
482
-
483
- svg {
484
- color: var(--be-muted);
485
- }
486
- }
487
-
488
- .builder-editor__panel-toggle {
489
- display: inline-flex;
490
- flex: 1;
491
- align-items: center;
492
- gap: 4px;
493
- min-width: 0;
494
- height: 28px;
495
- margin-left: -6px;
496
- padding: 0 4px;
497
- border: 0;
498
- border-radius: var(--be-radius);
499
- background: none;
500
- color: var(--be-muted);
501
- cursor: pointer;
502
-
503
- &:hover {
504
- color: var(--theme-text);
505
- }
506
- }
507
-
508
- .builder-editor__panel-tools {
509
- display: flex;
510
- gap: 2px;
511
- margin-left: auto;
512
- color: var(--be-muted);
513
- }
514
-
515
- // ---------------------------------------------------------------------------
516
- // Insert panel (blocks and sections)
517
- // ---------------------------------------------------------------------------
518
-
519
- // The Blocks and Sections tabs of the left panel (layout/LeftPanel.tsx).
520
- .builder-editor__insert {
521
- display: flex;
522
- flex: 1;
523
- flex-direction: column;
524
- min-height: 0;
525
- }
526
-
527
- .builder-editor__search {
528
- display: flex;
529
- flex: none;
530
- align-items: center;
531
- gap: 6px;
532
- height: 30px;
533
- margin: 0 12px 8px;
534
- padding: 0 8px;
535
- border: 1px solid var(--be-border);
536
- border-radius: var(--be-radius-m);
537
- background: var(--theme-input-bg, var(--theme-elevation-0));
538
- color: var(--be-subtle);
539
- cursor: text;
540
-
541
- &:focus-within {
542
- border-color: var(--be-accent);
543
- color: var(--theme-text);
544
- }
545
-
546
- input {
547
- flex: 1;
548
- min-width: 0;
549
- padding: 0;
550
- border: 0;
551
- outline: 0;
552
- background: transparent;
553
- color: var(--theme-text);
554
- font: inherit;
555
- font-size: var(--be-text-m);
556
-
557
- &::placeholder {
558
- color: var(--be-subtle);
559
- }
560
- }
561
- }
562
-
563
- .builder-editor__insert-body {
564
- flex: 1;
565
- min-height: 0;
566
- padding: 0 12px 12px;
567
- overflow: hidden auto;
568
- scrollbar-width: thin;
569
- }
570
-
571
- .builder-editor__group-block + .builder-editor__group-block {
572
- margin-top: 12px;
573
- }
574
-
575
- .builder-editor__group-title {
576
- margin: 4px 0 6px;
577
- color: var(--be-muted);
578
- font-size: var(--be-text-s);
579
- font-weight: var(--be-weight-strong);
580
- letter-spacing: 0.06em;
581
- text-transform: uppercase;
582
- }
583
-
584
- .builder-editor__tiles {
585
- display: grid;
586
- grid-template-columns: repeat(3, 1fr);
587
- gap: 6px;
588
- }
589
-
590
- .builder-editor__tile {
591
- display: flex;
592
- flex-direction: column;
593
- align-items: center;
594
- justify-content: center;
595
- gap: 6px;
596
- min-width: 0;
597
- min-height: 62px;
598
- padding: 6px 4px;
599
- border: 1px solid var(--be-border-soft);
600
- border-radius: var(--be-radius-m);
601
- background: var(--be-raised);
602
- color: var(--theme-elevation-800);
603
- cursor: grab;
604
- touch-action: none;
605
- transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, transform 120ms ease;
606
-
607
- &:hover {
608
- border-color: var(--theme-elevation-250);
609
- background: var(--be-hover);
610
- color: var(--theme-text);
611
-
612
- .builder-editor__tile-icon {
613
- color: var(--be-accent);
614
- }
615
- }
616
-
617
- &:active {
618
- transform: scale(0.97);
619
- }
620
- }
621
-
622
- .builder-editor__tile-icon {
623
- display: grid;
624
- place-items: center;
625
- color: var(--theme-elevation-600);
626
- transition: color 120ms ease;
627
- }
628
-
629
- // Two lines at most, so a long name ("Collection list") wraps instead of "Collectio…".
630
- .builder-editor__tile-label {
631
- display: -webkit-box;
632
- max-width: 100%;
633
- overflow: hidden;
634
- font-size: var(--be-text-s);
635
- font-weight: var(--be-weight-medium);
636
- line-height: 1.2;
637
- text-align: center;
638
- overflow-wrap: break-word;
639
- -webkit-box-orient: vertical;
640
- -webkit-line-clamp: 2;
641
- }
642
-
643
- .builder-editor__cards {
644
- display: flex;
645
- flex-direction: column;
646
- gap: 8px;
647
- }
648
-
649
- .builder-editor__card {
650
- display: flex;
651
- flex-direction: column;
652
- gap: 0;
653
- width: 100%;
654
- padding: 0;
655
- overflow: hidden;
656
- border: 1px solid var(--be-border-soft);
657
- border-radius: var(--be-radius-m);
658
- background: var(--be-raised);
659
- color: var(--theme-text);
660
- text-align: left;
661
- cursor: grab;
662
- touch-action: none;
663
- transition: border-color 120ms ease, box-shadow 120ms ease;
664
-
665
- &:hover {
666
- border-color: var(--theme-elevation-250);
667
- box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
668
-
669
- .builder-editor__thumb {
670
- background: var(--theme-elevation-0);
671
- }
672
- }
673
- }
674
-
675
- .builder-editor__card-text {
676
- display: flex;
677
- flex-direction: column;
678
- gap: 2px;
679
- padding: 8px 10px 9px;
680
- border-top: 1px solid var(--be-border-soft);
681
- }
682
-
683
- .builder-editor__card-label {
684
- font-size: var(--be-text-m);
685
- font-weight: var(--be-weight-strong);
686
- }
687
-
688
- .builder-editor__card-desc {
689
- display: -webkit-box;
690
- overflow: hidden;
691
- color: var(--be-muted);
692
- font-size: var(--be-text-s);
693
- line-height: 1.4;
694
- -webkit-box-orient: vertical;
695
- -webkit-line-clamp: 2;
696
- }
697
-
698
- // The thumbnail of a section: the wireframe, then the picture, in one box of a fixed shape. The
699
- // box keeps its size when the picture loads, so the list never jumps. 2:1 is the top 1280 x 640 px
700
- // of a section at the width pictures are made at (sections/thumbnails.ts).
701
- .builder-editor__thumb {
702
- position: relative;
703
- display: flex;
704
- flex-direction: column;
705
- aspect-ratio: 2 / 1;
706
- overflow: hidden;
707
- background: var(--theme-elevation-0);
708
- transition: background-color 120ms ease;
709
- mask-image: linear-gradient(to bottom, #000 82%, transparent);
710
- }
711
-
712
- .builder-editor__thumb-inner {
713
- box-sizing: border-box;
714
- display: flex;
715
- flex: 1 0 auto;
716
- flex-direction: column;
717
- justify-content: center;
718
- gap: 4px;
719
- min-height: 100%;
720
- padding: 6px;
721
-
722
- // The section root fills the thumbnail, its content centered vertically.
723
- > .wf-box {
724
- flex: 1 0 auto;
725
- justify-content: center;
726
- }
727
-
728
- --wf-ink: var(--theme-elevation-500);
729
- --wf-line: var(--theme-elevation-250);
730
- --wf-fill: var(--theme-elevation-150);
731
-
732
- .wf-box {
733
- display: flex;
734
- gap: 4px;
735
- min-width: 0;
736
- border-radius: 2px;
737
- }
738
-
739
- .wf-col {
740
- flex-direction: column;
741
- }
742
-
743
- .wf-row {
744
- flex-flow: row wrap;
745
- align-items: center;
746
- }
747
-
748
- .wf-grid {
749
- display: grid;
750
- gap: 5px;
751
- }
752
-
753
- [data-center] {
754
- align-items: center;
755
- }
756
-
757
- [data-between] {
758
- justify-content: space-between;
759
- }
760
-
761
- [data-pad] {
762
- padding: 6px 8px;
763
- }
764
-
765
- [data-tone='muted'] {
766
- background: var(--theme-elevation-100);
767
- }
768
-
769
- [data-tone='primary'] {
770
- background: color-mix(in srgb, var(--be-accent) 30%, transparent);
771
- }
772
-
773
- // A heading with its real words, so sections are easy to tell apart.
774
- .wf-heading-text {
775
- display: -webkit-box;
776
- max-width: 92%;
777
- overflow: hidden;
778
- color: var(--theme-elevation-800);
779
- font-size: 8px;
780
- font-weight: 700;
781
- line-height: 1.15;
782
- -webkit-line-clamp: 2;
783
- -webkit-box-orient: vertical;
784
-
785
- &[data-level='1'] {
786
- font-size: 9.5px;
787
- }
788
-
789
- &[data-level='3'] {
790
- font-size: 7px;
791
- font-weight: 600;
792
- }
793
-
794
- &[data-center] {
795
- text-align: center;
796
- }
797
- }
798
-
799
- .wf-row > .wf-heading-text {
800
- max-width: 45%;
801
- }
802
-
803
- .wf-heading {
804
- display: block;
805
- width: 58%;
806
- height: 5px;
807
- border-radius: 2px;
808
- background: var(--wf-ink);
809
-
810
- &[data-level='1'] {
811
- width: 68%;
812
- height: 7px;
813
- }
814
-
815
- &[data-level='3'] {
816
- width: 44%;
817
- height: 4px;
818
- }
819
- }
820
-
821
- .wf-text {
822
- display: block;
823
- width: 82%;
824
- height: 3px;
825
- border-radius: 2px;
826
- background: var(--wf-line);
827
- }
828
-
829
- .wf-text--short {
830
- width: 50%;
831
- }
832
-
833
- .wf-lines {
834
- display: flex;
835
- flex-direction: column;
836
- gap: 3px;
837
- width: 100%;
838
- }
839
-
840
- .wf-button {
841
- display: block;
842
- flex: none;
843
- width: 22px;
844
- height: 7px;
845
- border: 1px solid var(--wf-ink);
846
- border-radius: 4px;
847
-
848
- &[data-primary] {
849
- border-color: var(--be-accent);
850
- background: var(--be-accent);
851
- }
852
- }
853
-
854
- .wf-media {
855
- display: block;
856
- width: 100%;
857
- min-height: 18px;
858
- aspect-ratio: 16 / 9;
859
- border-radius: 2px;
860
- background: var(--wf-fill);
861
- }
862
-
863
- .wf-divider {
864
- display: block;
865
- width: 100%;
866
- height: 1px;
867
- background: var(--wf-line);
868
- }
869
-
870
- .wf-spacer {
871
- display: block;
872
- height: 6px;
873
- }
874
-
875
- .wf-form {
876
- display: flex;
877
- flex-direction: column;
878
- gap: 3px;
879
- width: 100%;
880
- padding: 4px;
881
- border: 1px solid var(--wf-line);
882
- border-radius: 2px;
883
- }
884
-
885
- .wf-card {
886
- display: flex;
887
- flex-direction: column;
888
- gap: 3px;
889
- width: 100%;
890
- padding: 5px;
891
- border-radius: 2px;
892
- background: var(--theme-elevation-50);
893
- box-shadow: inset 0 0 0 1px var(--wf-line);
894
- }
895
-
896
- .wf-field {
897
- display: block;
898
- height: 5px;
899
- border: 1px solid var(--wf-line);
900
- border-radius: 1px;
901
- }
902
-
903
- // Inside rows, bars get a fixed size instead of a share of the row.
904
- .wf-row > .wf-text,
905
- .wf-inline .wf-text {
906
- width: 14px;
907
- }
908
-
909
- .wf-row > .wf-heading {
910
- width: 30px;
911
- }
912
-
913
- .wf-inline {
914
- display: flex;
915
- gap: 3px;
916
- }
917
- }
918
-
919
- // ---------------------------------------------------------------------------
920
- // Outline
921
- // ---------------------------------------------------------------------------
922
-
923
- .builder-editor__outline {
924
- flex: 1;
925
- padding: 0 6px 12px;
926
- overflow: auto;
927
- scrollbar-width: thin;
928
- outline: 0;
929
- }
930
-
931
- .builder-editor__row {
932
- position: relative;
933
- display: flex;
934
- align-items: center;
935
- gap: 6px;
936
- height: 28px;
937
- margin: 0;
938
- padding: 0 6px 0 4px;
939
- border-radius: var(--be-radius);
940
- color: var(--theme-elevation-800);
941
- font-size: var(--be-text-m);
942
- white-space: nowrap;
943
- cursor: pointer;
944
- user-select: none;
945
- touch-action: none;
946
- // Rows off screen skip style and layout work. Payload's admin CSS has `body:has(.drag-overlay) *`,
947
- // so every DOM change restyles the whole document, and a large page has thousands of row elements.
948
- content-visibility: auto;
949
- contain-intrinsic-block-size: 28px;
950
-
951
- &:hover .builder-editor__row-actions {
952
- display: flex;
953
- }
954
-
955
- &:hover .builder-editor__row-hidden {
956
- display: none;
957
- }
958
-
959
- &:focus-visible {
960
- outline: 2px solid var(--be-accent);
961
- outline-offset: -2px;
962
- }
963
- }
964
-
965
- .builder-editor__guide {
966
- position: absolute;
967
- top: 0;
968
- bottom: 0;
969
- width: 1px;
970
- background: var(--theme-elevation-150);
971
- pointer-events: none;
972
- }
973
-
974
- .builder-editor__row-indent {
975
- flex: none;
976
- }
977
-
978
- .builder-editor__row--hovered {
979
- background: var(--be-hover);
980
- }
981
-
982
- .builder-editor__row--selected {
983
- background: var(--be-accent-soft);
984
- color: var(--theme-text);
985
-
986
- .builder-editor__row-icon {
987
- color: var(--be-accent);
988
- }
989
-
990
- .builder-editor__row-type {
991
- font-weight: var(--be-weight-strong);
992
- }
993
- }
994
-
995
- // Dark admin theme: a lighter text color, so it passes AA on the dark panel.
996
- html[data-theme='dark'] .builder-editor {
997
- --be-component-text: #a78bfa;
998
- }
999
-
1000
- // A component's Layers row: its icon and name in the component color.
1001
- .builder-editor__row[data-component] {
1002
- .builder-editor__row-icon,
1003
- .builder-editor__row-type {
1004
- color: var(--be-component-text);
1005
- }
1006
- }
1007
-
1008
- .builder-editor__row--dragging {
1009
- opacity: 0.4;
1010
- }
1011
-
1012
- .builder-editor__row--hidden {
1013
- .builder-editor__row-icon,
1014
- .builder-editor__row-type,
1015
- .builder-editor__row-text {
1016
- opacity: 0.45;
1017
- }
1018
- }
1019
-
1020
- .builder-editor__caret {
1021
- display: grid;
1022
- flex: none;
1023
- place-items: center;
1024
- width: 16px;
1025
- height: 16px;
1026
- padding: 0;
1027
- border: 0;
1028
- border-radius: 3px;
1029
- background: none;
1030
- color: var(--be-muted);
1031
- cursor: pointer;
1032
-
1033
- &:hover {
1034
- background: var(--theme-elevation-150);
1035
- color: var(--theme-text);
1036
- }
1037
- }
1038
-
1039
- .builder-editor__caret--empty {
1040
- pointer-events: none;
1041
- }
1042
-
1043
- .builder-editor__row-icon {
1044
- display: grid;
1045
- flex: none;
1046
- place-items: center;
1047
- color: var(--be-muted);
1048
- }
1049
-
1050
- .builder-editor__row-type {
1051
- flex: none;
1052
- font-weight: var(--be-weight-medium);
1053
- }
1054
-
1055
- .builder-editor__row-text {
1056
- flex: 1;
1057
- min-width: 0;
1058
- overflow: hidden;
1059
- color: var(--be-muted);
1060
- text-overflow: ellipsis;
1061
- }
1062
-
1063
- .builder-editor__row-count {
1064
- flex: none;
1065
- margin-left: auto;
1066
- padding: 0 5px;
1067
- border-radius: 8px;
1068
- background: var(--theme-elevation-100);
1069
- color: var(--be-muted);
1070
- font-size: var(--be-text-s);
1071
- line-height: 16px;
1072
- }
1073
-
1074
- .builder-editor__row-actions {
1075
- display: none;
1076
- flex: none;
1077
- gap: 1px;
1078
- margin-left: auto;
1079
- padding-left: 4px;
1080
- }
1081
-
1082
- .builder-editor__row-action {
1083
- display: grid;
1084
- place-items: center;
1085
- width: 22px;
1086
- height: 22px;
1087
- padding: 0;
1088
- border: 0;
1089
- border-radius: 3px;
1090
- background: none;
1091
- color: var(--be-muted);
1092
- cursor: pointer;
1093
-
1094
- &:hover {
1095
- background: var(--theme-elevation-150);
1096
- color: var(--theme-text);
1097
- }
1098
- }
1099
-
1100
- .builder-editor__row-hidden {
1101
- display: grid;
1102
- flex: none;
1103
- place-items: center;
1104
- margin-left: auto;
1105
- color: var(--be-subtle);
1106
- }
1107
-
1108
- // A block that stopped the last publish.
1109
- .builder-editor__row-problem {
1110
- display: grid;
1111
- flex: none;
1112
- place-items: center;
1113
- margin-left: auto;
1114
- color: var(--theme-error-500);
1115
- }
1116
-
1117
- .builder-editor__row--problem .builder-editor__row-type {
1118
- color: var(--theme-error-500);
1119
- }
1120
-
1121
- .builder-editor__row:hover .builder-editor__row-problem {
1122
- display: none;
1123
- }
1124
-
1125
- // A block with animations (`block.motion`).
1126
- .builder-editor__row-motion {
1127
- display: grid;
1128
- flex: none;
1129
- place-items: center;
1130
- width: 18px;
1131
- height: 18px;
1132
- margin-left: auto;
1133
- border-radius: 4px;
1134
- color: var(--be-muted);
1135
- }
1136
-
1137
- .builder-editor__row--selected .builder-editor__row-motion {
1138
- color: inherit;
1139
- }
1140
-
1141
- // Next to the motion icon, the other end-of-row marks sit close instead of splitting the space.
1142
- .builder-editor__row-problem ~ .builder-editor__row-motion,
1143
- .builder-editor__row-motion ~ .builder-editor__row-bound,
1144
- .builder-editor__row:not(:hover) .builder-editor__row-motion ~ .builder-editor__row-count,
1145
- .builder-editor__row:not(:hover) .builder-editor__row-motion ~ .builder-editor__row-hidden {
1146
- margin-left: 2px;
1147
- }
1148
-
1149
- .builder-editor__row:hover .builder-editor__row-motion {
1150
- display: none;
1151
- }
1152
-
1153
- // Inline rename in the outline and the inspector header.
1154
- .builder-editor__rename {
1155
- flex: 1;
1156
- min-width: 0;
1157
- height: 22px;
1158
- padding: 0 6px;
1159
- border: 1px solid var(--be-accent);
1160
- border-radius: var(--be-radius);
1161
- outline: 0;
1162
- background: var(--theme-input-bg, var(--theme-bg));
1163
- color: var(--theme-text);
1164
- font: inherit;
1165
- font-size: var(--be-text-m);
1166
-
1167
- &::placeholder {
1168
- color: var(--be-subtle);
1169
- }
1170
- }
1171
-
1172
- // ---------------------------------------------------------------------------
1173
- // Inspector
1174
- // ---------------------------------------------------------------------------
1175
-
1176
- .builder-editor__inspector {
1177
- display: flex;
1178
- flex-direction: column;
1179
- flex: 1;
1180
- min-height: 0;
1181
- }
1182
-
1183
- .builder-editor__inspector-head {
1184
- flex: none;
1185
- padding: 8px 12px;
1186
- border-bottom: 1px solid var(--be-border);
1187
- }
1188
-
1189
- .builder-editor__inspector-body {
1190
- flex: 1;
1191
- min-height: 0;
1192
- padding: 12px;
1193
- // Payload keeps hidden tooltips in the DOM past the right edge. Clip the x axis.
1194
- overflow: hidden auto;
1195
- scrollbar-width: thin;
1196
-
1197
- &[hidden] {
1198
- display: none;
1199
- }
1200
- }
1201
-
1202
- .builder-editor__block-head {
1203
- display: flex;
1204
- align-items: center;
1205
- gap: 10px;
1206
- margin-bottom: 10px;
1207
- }
1208
-
1209
- .builder-editor__block-icon {
1210
- display: grid;
1211
- flex: none;
1212
- place-items: center;
1213
- width: 32px;
1214
- height: 32px;
1215
- border-radius: var(--be-radius-m);
1216
- background: var(--be-accent-soft);
1217
- color: var(--be-accent);
1218
- }
1219
-
1220
- .builder-editor__block-name {
1221
- display: flex;
1222
- flex: 1;
1223
- flex-direction: column;
1224
- min-width: 0;
1225
- }
1226
-
1227
- // The block's name. A click renames it, so it looks like text with a quiet hover box.
1228
- .builder-editor__block-title {
1229
- align-self: flex-start;
1230
- max-width: 100%;
1231
- margin: 0 -4px;
1232
- padding: 0 4px;
1233
- overflow: hidden;
1234
- border: 1px solid transparent;
1235
- border-radius: var(--be-radius);
1236
- background: none;
1237
- color: var(--theme-text);
1238
- font: inherit;
1239
- font-size: var(--be-text-l);
1240
- font-weight: var(--be-weight-strong);
1241
- line-height: 1.3;
1242
- text-align: left;
1243
- text-overflow: ellipsis;
1244
- white-space: nowrap;
1245
- cursor: text;
1246
-
1247
- &:hover {
1248
- border-color: var(--be-border);
1249
- }
1250
- }
1251
-
1252
- .builder-editor__block-name .builder-editor__rename {
1253
- flex: none;
1254
- height: 22px;
1255
- font-size: var(--be-text-l);
1256
- }
1257
-
1258
- .builder-editor__block-problems {
1259
- display: flex;
1260
- gap: 8px;
1261
- margin: 0 0 12px;
1262
- padding: 8px 10px;
1263
- border: 1px solid color-mix(in srgb, var(--theme-error-500) 40%, transparent);
1264
- border-radius: var(--be-radius-m);
1265
- background: color-mix(in srgb, var(--theme-error-500) 8%, transparent);
1266
- color: var(--theme-text);
1267
- font-size: var(--be-text-m);
1268
-
1269
- > svg {
1270
- flex: none;
1271
- margin-top: 2px;
1272
- color: var(--theme-error-500);
1273
- }
1274
-
1275
- ul {
1276
- margin: 2px 0 0;
1277
- padding: 0;
1278
- list-style: none;
1279
- }
1280
- }
1281
-
1282
- .builder-editor__block-problems-title {
1283
- margin: 0;
1284
- font-weight: var(--be-weight-strong);
1285
- }
1286
-
1287
- .builder-editor__block-sub {
1288
- color: var(--be-muted);
1289
- font-size: var(--be-text-s);
1290
- }
1291
-
1292
- .builder-editor__tabs {
1293
- display: flex;
1294
- gap: 16px;
1295
- margin: 0 -12px 14px;
1296
- padding: 0 12px;
1297
- border-bottom: 1px solid var(--be-border);
1298
- }
1299
-
1300
- .builder-editor__tab {
1301
- margin-bottom: -1px;
1302
- padding: 8px 0;
1303
- border: 0;
1304
- border-bottom: 2px solid transparent;
1305
- background: none;
1306
- color: var(--be-muted);
1307
- font-size: var(--be-text-m);
1308
- font-weight: var(--be-weight-medium);
1309
- cursor: pointer;
1310
-
1311
- &:hover {
1312
- color: var(--theme-text);
1313
- }
1314
-
1315
- &[aria-selected='true'] {
1316
- border-bottom-color: var(--be-accent);
1317
- color: var(--theme-text);
1318
- }
1319
- }
1320
-
1321
- .builder-editor__fields {
1322
- display: flex;
1323
- flex-direction: column;
1324
- gap: calc(var(--base) * 0.75);
1325
- }
1326
-
1327
- .builder-editor__empty--inspector {
1328
- padding-top: 48px;
1329
-
1330
- > svg {
1331
- box-sizing: content-box;
1332
- padding: 10px;
1333
- border-radius: 50%;
1334
- background: var(--theme-elevation-100);
1335
- color: var(--be-muted);
1336
- }
1337
-
1338
- .builder-editor__hint {
1339
- max-width: 260px;
1340
- }
1341
- }
1342
-
1343
- .builder-editor__tips {
1344
- display: flex;
1345
- flex-direction: column;
1346
- gap: 6px;
1347
- width: 100%;
1348
- max-width: 260px;
1349
- margin: 18px 0 0;
1350
- padding: 12px 0 0;
1351
- border-top: 1px solid var(--be-border-soft);
1352
- }
1353
-
1354
- .builder-editor__menu.builder-styles__popover {
1355
- // Menus outside the Styles panel do not inherit its border color.
1356
- --bs-border: var(--be-border, var(--theme-elevation-150));
1357
-
1358
- min-width: 200px;
1359
- padding: 4px;
1360
- }
1361
-
1362
- .builder-editor__menu-item {
1363
- display: flex;
1364
- align-items: center;
1365
- gap: 8px;
1366
- width: 100%;
1367
- height: 30px;
1368
- padding: 0 8px;
1369
- border: 0;
1370
- border-radius: var(--be-radius);
1371
- background: none;
1372
- color: var(--theme-text);
1373
- font: inherit;
1374
- font-size: var(--be-text-m);
1375
- text-align: left;
1376
- cursor: pointer;
1377
-
1378
- svg {
1379
- color: var(--be-muted);
1380
- }
1381
-
1382
- &:hover:not(:disabled) {
1383
- background: var(--be-hover);
1384
- }
1385
-
1386
- &:disabled {
1387
- opacity: 0.4;
1388
- cursor: default;
1389
- }
1390
- }
1391
-
1392
- // A disabled destructive item is neutral: red says "this acts", and it cannot act.
1393
- .builder-editor__menu-item--danger:not(:disabled) {
1394
- color: var(--theme-error-500);
1395
-
1396
- svg {
1397
- color: currentColor;
1398
- }
1399
- }
1400
-
1401
- .builder-editor__menu-meta {
1402
- margin: 4px 0 0;
1403
- padding: 6px 8px 4px;
1404
- border-top: 1px solid var(--be-border-soft);
1405
- color: var(--be-muted);
1406
- font-size: var(--be-text-s);
1407
- }
1408
-
1409
- // ---------------------------------------------------------------------------
1410
- // Stage and frame
1411
- // ---------------------------------------------------------------------------
1412
-
1413
- .builder-editor__stage {
1414
- position: relative;
1415
- display: flex;
1416
- flex: 1;
1417
- flex-direction: column;
1418
- min-width: 0;
1419
- background-color: var(--theme-elevation-50);
1420
- background-image: radial-gradient(var(--theme-elevation-150) 1px, transparent 1px);
1421
- background-size: 16px 16px;
1422
- }
1423
-
1424
- .builder-editor__viewport {
1425
- position: relative;
1426
- display: flex;
1427
- flex: 1;
1428
- // "safe": a frame wider than the stage (a fixed zoom) starts at the left edge and scrolls.
1429
- justify-content: safe center;
1430
- align-items: flex-start;
1431
- min-height: 0;
1432
- // Sideways scrolling only when the frame is wider than the stage (Canvas.tsx sets `data-scroll`).
1433
- overflow: hidden;
1434
-
1435
- &[data-scroll] {
1436
- overflow-x: auto;
1437
- }
1438
- }
1439
-
1440
- .builder-editor__frame-wrap {
1441
- position: relative;
1442
- flex: none;
1443
- }
1444
-
1445
- .builder-editor__frame {
1446
- position: absolute;
1447
- top: 0;
1448
- left: 0;
1449
- overflow: hidden;
1450
- border-radius: var(--be-radius-m);
1451
- background: #fff;
1452
- box-shadow:
1453
- 0 0 0 1px var(--be-border),
1454
- 0 12px 40px rgb(0 0 0 / 0.14),
1455
- 0 2px 6px rgb(0 0 0 / 0.08);
1456
- transform-origin: 0 0;
1457
- transition: transform 280ms var(--be-ease);
1458
- }
1459
-
1460
- .builder-editor__iframe {
1461
- display: block;
1462
- width: 100%;
1463
- height: 100%;
1464
- border: 0;
1465
- }
1466
-
1467
- .builder-editor__notice {
1468
- position: absolute;
1469
- z-index: 5;
1470
- bottom: 20px;
1471
- left: 50%;
1472
- display: inline-flex;
1473
- align-items: center;
1474
- gap: 6px;
1475
- padding: 6px 12px;
1476
- border-radius: 16px;
1477
- background: var(--theme-elevation-900);
1478
- color: var(--theme-elevation-0);
1479
- font-size: var(--be-text-m);
1480
- font-weight: var(--be-weight-medium);
1481
- pointer-events: none;
1482
- transform: translateX(-50%);
1483
- box-shadow: var(--be-shadow);
1484
- animation: builder-fade-in 160ms var(--be-ease);
1485
- }
1486
-
1487
- .builder-editor__statusbar {
1488
- display: flex;
1489
- flex: none;
1490
- align-items: center;
1491
- justify-content: space-between;
1492
- gap: 16px;
1493
- height: 34px;
1494
- padding: 0 8px 0 10px;
1495
- border-top: 1px solid var(--be-border);
1496
- background: var(--be-panel);
1497
- font-size: var(--be-text-s);
1498
- }
1499
-
1500
- .builder-editor__breadcrumb {
1501
- display: flex;
1502
- align-items: center;
1503
- min-width: 0;
1504
- overflow: hidden;
1505
- white-space: nowrap;
1506
- }
1507
-
1508
- .builder-editor__crumb-item {
1509
- display: inline-flex;
1510
- flex: none;
1511
- align-items: center;
1512
-
1513
- // Long paths: earlier items shrink first.
1514
- &:not(:last-child) {
1515
- flex-shrink: 1;
1516
- min-width: 0;
1517
- }
1518
- }
1519
-
1520
- .builder-editor__crumb-sep {
1521
- flex: none;
1522
- margin: 0 1px;
1523
- color: var(--be-subtle);
1524
- }
1525
-
1526
- .builder-editor__crumb {
1527
- display: inline-flex;
1528
- align-items: center;
1529
- gap: 5px;
1530
- min-width: 0;
1531
- height: 24px;
1532
- padding: 0 6px;
1533
- overflow: hidden;
1534
- border: 0;
1535
- border-radius: var(--be-radius);
1536
- background: none;
1537
- color: var(--be-muted);
1538
- font-size: var(--be-text-s);
1539
- text-overflow: ellipsis;
1540
- cursor: pointer;
1541
-
1542
- &:hover {
1543
- background: var(--be-hover);
1544
- color: var(--theme-text);
1545
- }
1546
-
1547
- &[aria-current='true'] {
1548
- color: var(--theme-text);
1549
- font-weight: var(--be-weight-strong);
1550
-
1551
- svg {
1552
- color: var(--be-accent);
1553
- }
1554
- }
1555
- }
1556
-
1557
- .builder-editor__crumb-empty {
1558
- display: inline-flex;
1559
- align-items: center;
1560
- gap: 6px;
1561
- padding: 0 6px;
1562
- color: var(--be-muted);
1563
- }
1564
-
1565
- .builder-editor__frame-info {
1566
- display: inline-flex;
1567
- flex: none;
1568
- align-items: center;
1569
- gap: 8px;
1570
- color: var(--be-muted);
1571
- font-variant-numeric: tabular-nums;
1572
- }
1573
-
1574
- .builder-editor__zoom-control {
1575
- display: inline-flex;
1576
- align-items: center;
1577
- gap: 2px;
1578
- }
1579
-
1580
- .builder-editor__zoom {
1581
- min-width: 44px;
1582
- height: 22px;
1583
- padding: 0 6px;
1584
- border: 0;
1585
- border-radius: var(--be-radius);
1586
- background: var(--theme-elevation-100);
1587
- color: var(--theme-elevation-800);
1588
- font: inherit;
1589
- font-size: var(--be-text-s);
1590
- font-weight: var(--be-weight-strong);
1591
- font-variant-numeric: tabular-nums;
1592
- cursor: pointer;
1593
-
1594
- &:hover {
1595
- background: var(--theme-elevation-150);
1596
- }
1597
-
1598
- &:focus-visible {
1599
- outline: 2px solid var(--be-accent);
1600
- outline-offset: 1px;
1601
- }
1602
- }
1603
-
1604
- // ---------------------------------------------------------------------------
1605
- // Overlay (iframe coordinates). `--be-inv` is 1 / zoom: lines and chips keep their screen size.
1606
- // ---------------------------------------------------------------------------
1607
-
1608
- .builder-editor__overlay {
1609
- --be-px: calc(1px * var(--be-inv, 1));
1610
-
1611
- position: absolute;
1612
- inset: 0;
1613
- overflow: hidden;
1614
- pointer-events: none;
1615
- }
1616
-
1617
- .builder-editor__hover,
1618
- .builder-editor__selection,
1619
- .builder-editor__parent-hint,
1620
- .builder-editor__source,
1621
- .builder-editor__remote,
1622
- .builder-editor__drop {
1623
- position: absolute;
1624
- box-sizing: border-box;
1625
- }
1626
-
1627
- .builder-editor__hover {
1628
- box-shadow: inset 0 0 0 var(--be-px) var(--be-accent);
1629
- }
1630
-
1631
- // A component (`data-component`): its hover and selection outline, name tag, action bar and
1632
- // Layers row use the component color instead of the accent.
1633
- :is(.builder-editor__hover, .builder-editor__selection, .builder-editor__actions, .builder-editor__row)[data-component] {
1634
- --be-accent: var(--be-component);
1635
- --be-accent-strong: var(--be-component-solid);
1636
- --be-accent-soft: color-mix(in srgb, var(--be-component) 14%, transparent);
1637
- --be-accent-text: var(--be-component-text);
1638
- --be-accent-solid: var(--be-component-solid);
1639
- }
1640
-
1641
- .builder-editor__parent-hint {
1642
- outline: var(--be-px) dashed color-mix(in srgb, var(--be-accent) 55%, transparent);
1643
- outline-offset: calc(var(--be-px) * -1);
1644
- }
1645
-
1646
- .builder-editor__selection {
1647
- box-shadow: inset 0 0 0 calc(var(--be-px) * 2) var(--be-accent);
1648
- }
1649
-
1650
- .builder-editor__selection--hidden {
1651
- box-shadow: none;
1652
- outline: calc(var(--be-px) * 2) dashed var(--be-accent);
1653
- outline-offset: calc(var(--be-px) * -2);
1654
- }
1655
-
1656
- .builder-editor__source {
1657
- background: repeating-linear-gradient(
1658
- 45deg,
1659
- color-mix(in srgb, var(--be-accent) 14%, transparent) 0 6px,
1660
- transparent 6px 12px
1661
- );
1662
- }
1663
-
1664
- // The name tag and the action bar draw over the insert "+" and its line (z-index 3), so an
1665
- // insert spot on the selected block's edge never cuts through them.
1666
- .builder-editor__tag {
1667
- position: absolute;
1668
- top: 0;
1669
- left: 0;
1670
- z-index: 4;
1671
- display: inline-flex;
1672
- align-items: center;
1673
- gap: 4px;
1674
- height: 20px;
1675
- padding: 0 7px 0 5px;
1676
- border-radius: 4px 4px 0 0;
1677
- background: var(--be-accent-solid);
1678
- color: var(--be-accent-fg);
1679
- font-size: var(--be-text-s);
1680
- font-weight: var(--be-weight-strong);
1681
- line-height: 1;
1682
- white-space: nowrap;
1683
- transform-origin: 0 0;
1684
- transform: scale(var(--be-inv, 1)) translateY(-100%);
1685
- }
1686
-
1687
- .builder-editor__tag--hover {
1688
- background: color-mix(in srgb, var(--be-accent) 82%, #000);
1689
- font-weight: var(--be-weight-medium);
1690
- }
1691
-
1692
- .builder-editor__tag--inside {
1693
- border-radius: 0 0 4px;
1694
- transform: scale(var(--be-inv, 1));
1695
- }
1696
-
1697
- // Outside, under the block: used when there is no room above, so the tag does not cover the
1698
- // block's first line.
1699
- .builder-editor__tag--below {
1700
- top: 100%;
1701
- border-radius: 0 0 4px 4px;
1702
- transform: scale(var(--be-inv, 1));
1703
- }
1704
-
1705
- .builder-editor__actions {
1706
- position: absolute;
1707
- z-index: 4;
1708
- display: flex;
1709
- align-items: center;
1710
- gap: 1px;
1711
- height: 26px;
1712
- margin-top: -2px;
1713
- padding: 2px;
1714
- border-radius: 6px;
1715
- background: var(--be-accent);
1716
- box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
1717
- pointer-events: auto;
1718
- transform-origin: 0 0;
1719
- transform: scale(var(--be-inv, 1)) translate(-100%, -100%);
1720
- }
1721
-
1722
- .builder-editor__actions--inside {
1723
- margin-top: 4px;
1724
- margin-left: -4px;
1725
- transform: scale(var(--be-inv, 1)) translate(-100%, 0);
1726
- }
1727
-
1728
- // Narrow blocks: under the block, at its left edge, so the bar never covers the name tag.
1729
- .builder-editor__actions--below {
1730
- margin-top: 4px;
1731
- transform: scale(var(--be-inv, 1));
1732
- }
1733
-
1734
- .builder-editor__menu-keys {
1735
- margin-left: auto;
1736
- padding-left: 12px;
1737
- border: 0;
1738
- background: none;
1739
- color: var(--be-muted);
1740
- font-size: var(--be-text-s);
1741
- }
1742
-
1743
- // Blocks that stopped the last publish.
1744
- .builder-editor__problem-box {
1745
- position: absolute;
1746
- pointer-events: none;
1747
- outline: calc(var(--be-px) * 2) dashed var(--theme-error-500);
1748
- outline-offset: calc(var(--be-px) * -2);
1749
- background: color-mix(in srgb, var(--theme-error-500) 6%, transparent);
1750
- }
1751
-
1752
- .builder-editor__problem-tag {
1753
- position: absolute;
1754
- right: 0;
1755
- bottom: 0;
1756
- display: inline-flex;
1757
- align-items: center;
1758
- gap: 4px;
1759
- max-width: 280px;
1760
- height: 20px;
1761
- padding: 0 7px 0 5px;
1762
- overflow: hidden;
1763
- border-radius: 4px 0 0;
1764
- background: var(--theme-error-500);
1765
- color: #fff;
1766
- font-size: var(--be-text-s);
1767
- font-weight: var(--be-weight-strong);
1768
- line-height: 1;
1769
- text-overflow: ellipsis;
1770
- white-space: nowrap;
1771
- transform-origin: 100% 100%;
1772
- transform: scale(var(--be-inv, 1));
1773
-
1774
- svg {
1775
- flex: none;
1776
- }
1777
- }
1778
-
1779
- .builder-editor__actions-sep {
1780
- width: 1px;
1781
- height: 14px;
1782
- margin: 0 2px;
1783
- background: rgb(255 255 255 / 0.3);
1784
- }
1785
-
1786
- .builder-editor__action {
1787
- display: grid;
1788
- place-items: center;
1789
- width: 22px;
1790
- height: 22px;
1791
- padding: 0;
1792
- border: 0;
1793
- border-radius: 4px;
1794
- background: transparent;
1795
- color: var(--be-accent-fg);
1796
- cursor: pointer;
1797
-
1798
- &:hover:not(:disabled) {
1799
- background: rgb(255 255 255 / 0.2);
1800
- }
1801
-
1802
- &:disabled {
1803
- opacity: 0.4;
1804
- cursor: default;
1805
- }
1806
- }
1807
-
1808
- .builder-editor__action--danger:hover:not(:disabled) {
1809
- background: var(--theme-error-500);
1810
- }
1811
-
1812
- // A button with a word next to its icon ("Edit fields" on a page region).
1813
- .builder-editor__action--text {
1814
- display: inline-flex;
1815
- gap: 4px;
1816
- width: auto;
1817
- padding: 0 6px;
1818
- font-size: var(--be-text-s);
1819
- font-weight: var(--be-weight-medium);
1820
- white-space: nowrap;
1821
- }
1822
-
1823
- // Page regions: fixed parts of the page frame, drawn dashed so they read as "not a block".
1824
- .builder-editor__hover--region {
1825
- box-shadow: none;
1826
- outline: var(--be-px) dashed var(--be-accent);
1827
- outline-offset: calc(var(--be-px) * -1);
1828
- }
1829
-
1830
- .builder-editor__selection--region:not(.builder-editor__selection--editing) {
1831
- box-shadow: none;
1832
- outline: calc(var(--be-px) * 2) dashed var(--be-accent);
1833
- outline-offset: calc(var(--be-px) * -2);
1834
- }
1835
-
1836
- .builder-editor__tag-note {
1837
- margin-left: 2px;
1838
- opacity: 0.75;
1839
- font-weight: var(--be-weight-medium);
1840
- }
1841
-
1842
- .builder-region__rows {
1843
- display: grid;
1844
- gap: 1px;
1845
- padding: 4px 6px;
1846
- border-bottom: 1px solid var(--theme-elevation-100);
1847
- }
1848
-
1849
- .builder-region__row {
1850
- width: 100%;
1851
- border: 0;
1852
- background: transparent;
1853
- font: inherit;
1854
- text-align: left;
1855
- }
1856
-
1857
- .builder-region__fields {
1858
- display: grid;
1859
- gap: 2px;
1860
- margin: 0 0 12px;
1861
- padding: 0;
1862
- list-style: none;
1863
- }
1864
-
1865
- .builder-editor__handle {
1866
- cursor: grab;
1867
- touch-action: none;
1868
- }
1869
-
1870
- // Inline text editing on the canvas.
1871
- .builder-editor__selection--editing {
1872
- box-shadow:
1873
- inset 0 0 0 calc(var(--be-px) * 2) var(--be-accent),
1874
- 0 0 0 calc(var(--be-px) * 4) color-mix(in srgb, var(--be-accent) 22%, transparent);
1875
- }
1876
-
1877
- .builder-editor__tag--editing {
1878
- font-weight: var(--be-weight-medium);
1879
- }
1880
-
1881
- .builder-editor__inline-toolbar {
1882
- position: absolute;
1883
- display: flex;
1884
- flex-direction: column;
1885
- align-items: flex-start;
1886
- gap: 4px;
1887
- pointer-events: auto;
1888
- transform-origin: 0 0;
1889
- transform: scale(var(--be-inv, 1));
1890
- }
1891
-
1892
- // InlineToolbar places it (placement.ts). Above the text, its bottom edge is the anchor.
1893
- .builder-editor__inline-toolbar--above {
1894
- flex-direction: column-reverse;
1895
- transform: scale(var(--be-inv, 1)) translateY(-100%);
1896
- }
1897
-
1898
- .builder-editor__inline-row {
1899
- display: flex;
1900
- align-items: center;
1901
- gap: 1px;
1902
- height: 30px;
1903
- padding: 3px;
1904
- border-radius: 6px;
1905
- background: var(--be-accent);
1906
- color: var(--be-accent-fg);
1907
- box-shadow: 0 2px 10px rgb(0 0 0 / 0.22);
1908
- white-space: nowrap;
1909
- }
1910
-
1911
- .builder-editor__inline-button {
1912
- display: grid;
1913
- place-items: center;
1914
- min-width: 24px;
1915
- height: 24px;
1916
- padding: 0 4px;
1917
- border: 0;
1918
- border-radius: 4px;
1919
- background: transparent;
1920
- color: inherit;
1921
- font-size: var(--be-text-m);
1922
- line-height: 1;
1923
- cursor: pointer;
1924
-
1925
- &:hover {
1926
- background: rgb(255 255 255 / 0.18);
1927
- }
1928
-
1929
- &[aria-pressed='true'] {
1930
- background: rgb(255 255 255 / 0.32);
1931
- }
1932
-
1933
- code {
1934
- font-size: var(--be-text-s);
1935
- }
1936
- }
1937
-
1938
- .builder-editor__inline-glyph {
1939
- font-size: var(--be-text-m);
1940
- font-weight: var(--be-weight-strong);
1941
- }
1942
-
1943
- .builder-editor__inline-link {
1944
- display: flex;
1945
- flex-direction: column;
1946
- gap: 8px;
1947
- width: 300px;
1948
- padding: 10px;
1949
- border: 1px solid var(--theme-elevation-150);
1950
- border-radius: 6px;
1951
- background: var(--theme-elevation-0);
1952
- color: var(--theme-text);
1953
- box-shadow: 0 4px 16px rgb(0 0 0 / 0.18);
1954
- font-size: var(--be-text-m);
1955
- }
1956
-
1957
- .builder-editor__inline-url {
1958
- width: 100%;
1959
- height: 32px;
1960
- padding: 0 8px;
1961
- border: 1px solid var(--theme-elevation-150);
1962
- border-radius: 4px;
1963
- background: var(--theme-input-bg, var(--theme-elevation-0));
1964
- color: var(--theme-text);
1965
- font: inherit;
1966
-
1967
- &:focus {
1968
- border-color: var(--be-accent);
1969
- outline: none;
1970
- }
1971
- }
1972
-
1973
- .builder-editor__inline-note {
1974
- margin: 0;
1975
- color: var(--theme-elevation-600);
1976
- }
1977
-
1978
- .builder-editor__inline-actions {
1979
- display: flex;
1980
- justify-content: flex-end;
1981
- gap: 6px;
1982
- }
1983
-
1984
- .builder-editor__inline-text-button {
1985
- height: 28px;
1986
- padding: 0 10px;
1987
- border: 1px solid var(--theme-elevation-150);
1988
- border-radius: 4px;
1989
- background: var(--theme-elevation-0);
1990
- color: var(--theme-text);
1991
- font: inherit;
1992
- cursor: pointer;
1993
-
1994
- &:hover {
1995
- background: var(--theme-elevation-50);
1996
- }
1997
- }
1998
-
1999
- .builder-editor__inline-text-button--primary {
2000
- border-color: var(--be-accent);
2001
- background: var(--be-accent);
2002
- color: var(--be-accent-fg);
2003
-
2004
- &:hover {
2005
- background: color-mix(in srgb, var(--be-accent) 88%, #000);
2006
- }
2007
- }
2008
-
2009
- .builder-editor__drop--line {
2010
- border-radius: 2px;
2011
- background: var(--be-accent);
2012
- box-shadow: 0 0 0 var(--be-px) color-mix(in srgb, var(--be-accent) 30%, transparent);
2013
- }
2014
-
2015
- .builder-editor__drop--box {
2016
- border-radius: 2px;
2017
- outline: calc(var(--be-px) * 2) solid var(--be-accent);
2018
- outline-offset: calc(var(--be-px) * -2);
2019
- background: color-mix(in srgb, var(--be-accent) 10%, transparent);
2020
- }
2021
-
2022
- .builder-editor__drop-label {
2023
- position: absolute;
2024
- top: 0;
2025
- left: 0;
2026
- display: inline-flex;
2027
- align-items: center;
2028
- gap: 4px;
2029
- height: 20px;
2030
- padding: 0 7px 0 5px;
2031
- border-radius: 0 0 4px;
2032
- background: var(--be-accent);
2033
- color: var(--be-accent-fg);
2034
- font-size: var(--be-text-s);
2035
- font-weight: var(--be-weight-strong);
2036
- white-space: nowrap;
2037
- transform-origin: 0 0;
2038
- transform: scale(var(--be-inv, 1));
2039
- }
2040
-
2041
- // Outline drop indicator (admin client coordinates).
2042
- .builder-editor__drop--fixed {
2043
- position: fixed;
2044
- z-index: 1000;
2045
- pointer-events: none;
2046
-
2047
- &.builder-editor__drop--line::before {
2048
- content: '';
2049
- position: absolute;
2050
- top: 50%;
2051
- left: -3px;
2052
- width: 6px;
2053
- height: 6px;
2054
- border: 2px solid var(--be-accent);
2055
- border-radius: 50%;
2056
- background: var(--be-panel, var(--theme-bg));
2057
- transform: translateY(-50%);
2058
- }
2059
-
2060
- &.builder-editor__drop--box {
2061
- outline-width: 2px;
2062
- outline-offset: -2px;
2063
- border-radius: var(--style-radius-s, 4px);
2064
- }
2065
- }
2066
-
2067
- .builder-editor__ghost {
2068
- position: fixed;
2069
- z-index: 1001;
2070
- display: inline-flex;
2071
- align-items: center;
2072
- gap: 6px;
2073
- height: 28px;
2074
- padding: 0 10px 0 8px;
2075
- border-radius: 6px;
2076
- background: var(--theme-success-500);
2077
- color: #fff;
2078
- font-family: var(--font-body);
2079
- font-size: var(--be-text-m);
2080
- font-weight: var(--be-weight-strong);
2081
- pointer-events: none;
2082
- box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
2083
- }
2084
-
2085
- .builder-editor__ghost--refused {
2086
- background: var(--theme-elevation-600);
2087
- }
2088
-
2089
- .builder-editor__ghost-note {
2090
- font-weight: var(--be-weight-regular);
2091
- opacity: 0.85;
2092
-
2093
- &::before {
2094
- content: '·';
2095
- margin-right: 6px;
2096
- }
2097
- }
2098
-
2099
- // The layout field in Payload's edit view: admin/layoutField.scss.
2100
-
2101
- // Live editing: changes from AI agents and other editors.
2102
- .builder-editor {
2103
- --be-remote: #8b5cf6;
2104
- }
2105
-
2106
- @keyframes builder-editor-remote-flash {
2107
- from { background: color-mix(in srgb, var(--be-remote) 22%, transparent); }
2108
- to { background: transparent; }
2109
- }
2110
-
2111
- .builder-editor__remote {
2112
- pointer-events: none;
2113
- box-shadow: inset 0 0 0 calc(var(--be-px) * 2) var(--be-remote);
2114
- animation: builder-editor-remote-flash 1.5s ease-out both;
2115
- }
2116
-
2117
- .builder-editor__tag--remote {
2118
- background: var(--be-remote);
2119
- color: #fff;
2120
- }
2121
-
2122
- .builder-editor__live {
2123
- display: inline-flex;
2124
- flex: 0 1 auto;
2125
- min-width: 0;
2126
- align-items: center;
2127
- gap: 8px;
2128
- margin-right: 4px;
2129
- font-size: var(--be-text-m);
2130
- }
2131
-
2132
- .builder-editor__live-activity {
2133
- display: inline-flex;
2134
- flex: 0 1 auto;
2135
- align-items: center;
2136
- gap: 5px;
2137
- max-width: 200px;
2138
- min-width: 0;
2139
- overflow: hidden;
2140
- text-overflow: ellipsis;
2141
- padding: 2px 8px;
2142
- border-radius: 999px;
2143
- background: color-mix(in srgb, var(--be-peer, var(--be-remote)) 16%, transparent);
2144
- color: var(--theme-text);
2145
- white-space: nowrap;
2146
- animation: builder-fade-in 160ms var(--be-ease);
2147
- }
2148
-
2149
- .builder-editor__live-activity svg {
2150
- color: var(--be-peer, var(--be-remote));
2151
- }
2152
-
2153
- .builder-editor__live-error {
2154
- max-width: 220px;
2155
- overflow: hidden;
2156
- color: var(--theme-error-500);
2157
- text-overflow: ellipsis;
2158
- white-space: nowrap;
2159
- }
2160
-
2161
- // ---------------------------------------------------------------------------
2162
- // Multiplayer: avatars, cursors, others' selections, follow mode.
2163
- // `--be-peer` is the collaborator's color, set inline.
2164
- // ---------------------------------------------------------------------------
2165
-
2166
- .builder-presence {
2167
- display: inline-flex;
2168
- align-items: center;
2169
- min-width: 0;
2170
- margin: 0;
2171
- padding: 0 0 0 6px;
2172
- border: 0;
2173
- }
2174
-
2175
- .builder-presence__avatar {
2176
- position: relative;
2177
- display: inline-grid;
2178
- flex: none;
2179
- place-items: center;
2180
- width: 26px;
2181
- height: 26px;
2182
- margin: 0 0 0 -6px;
2183
- padding: 0;
2184
- border: 2px solid var(--theme-bg);
2185
- border-radius: 50%;
2186
- background: var(--be-peer, var(--theme-elevation-300));
2187
- color: #fff;
2188
- font: 700 10px/1 var(--font-body);
2189
- letter-spacing: 0.02em;
2190
- cursor: pointer;
2191
- transition:
2192
- transform 160ms var(--be-ease),
2193
- box-shadow 160ms var(--be-ease);
2194
-
2195
- &:hover,
2196
- &:focus-visible {
2197
- z-index: 2;
2198
- transform: translateY(-1px);
2199
- }
2200
-
2201
- &[aria-pressed='true'] {
2202
- z-index: 1;
2203
- box-shadow: 0 0 0 2px var(--be-peer);
2204
- }
2205
- }
2206
-
2207
- .builder-presence__avatar--ai {
2208
- background: linear-gradient(135deg, var(--be-peer), color-mix(in srgb, var(--be-peer) 55%, #fff));
2209
- }
2210
-
2211
- .builder-presence__avatar--more {
2212
- background: var(--theme-elevation-200);
2213
- color: var(--theme-text);
2214
- cursor: default;
2215
- }
2216
-
2217
- @keyframes builder-cursor-in {
2218
- from {
2219
- opacity: 0;
2220
- }
2221
- }
2222
-
2223
- .builder-cursor {
2224
- position: absolute;
2225
- z-index: 4;
2226
- top: 0;
2227
- left: 0;
2228
- pointer-events: none;
2229
- // Updates arrive about 20 times a second: easing between them makes the motion smooth.
2230
- transition: transform 120ms linear;
2231
- will-change: transform;
2232
- animation: builder-cursor-in 200ms ease-out;
2233
- }
2234
-
2235
- .builder-cursor__inner {
2236
- position: absolute;
2237
- display: block;
2238
- transform-origin: 0 0;
2239
- transform: scale(var(--be-inv, 1));
2240
- }
2241
-
2242
- .builder-cursor__arrow {
2243
- display: block;
2244
- overflow: visible;
2245
- // The tip of the arrowhead sits on the pointer position.
2246
- margin: -2px 0 0 -2px;
2247
- filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.35));
2248
-
2249
- path {
2250
- fill: var(--be-peer);
2251
- stroke: #fff;
2252
- stroke-width: 1.5;
2253
- stroke-linejoin: round;
2254
- paint-order: stroke;
2255
- }
2256
- }
2257
-
2258
- .builder-cursor__name {
2259
- position: absolute;
2260
- top: 15px;
2261
- left: 13px;
2262
- display: inline-flex;
2263
- align-items: center;
2264
- gap: 4px;
2265
- padding: 3px 8px;
2266
- border-radius: 3px 9px 9px;
2267
- background: var(--be-peer);
2268
- color: #fff;
2269
- font: 600 11px/1.2 var(--font-body);
2270
- white-space: nowrap;
2271
- box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
2272
- }
2273
-
2274
- .builder-peer-selection {
2275
- position: absolute;
2276
- box-sizing: border-box;
2277
- pointer-events: none;
2278
- box-shadow: 0 0 0 calc(var(--be-px) * 2) var(--be-peer);
2279
- }
2280
-
2281
- // Name tags at the bottom left: the own selection uses the top edge.
2282
- .builder-peer-selection__tags {
2283
- position: absolute;
2284
- top: 100%;
2285
- left: 0;
2286
- display: flex;
2287
- gap: 2px;
2288
- transform-origin: 0 0;
2289
- transform: scale(var(--be-inv, 1)) translateY(2px);
2290
- }
2291
-
2292
- .builder-peer-selection__tag {
2293
- display: inline-flex;
2294
- align-items: center;
2295
- gap: 3px;
2296
- height: 18px;
2297
- padding: 0 6px;
2298
- border-radius: 0 0 4px 4px;
2299
- background: var(--be-peer);
2300
- color: #fff;
2301
- font-size: var(--be-text-s);
2302
- font-weight: var(--be-weight-strong);
2303
- line-height: 1;
2304
- white-space: nowrap;
2305
- }
2306
-
2307
- .builder-peer-dots {
2308
- display: inline-flex;
2309
- flex: none;
2310
- gap: 3px;
2311
- margin-left: 6px;
2312
- }
2313
-
2314
- .builder-peer-dots__dot {
2315
- width: 7px;
2316
- height: 7px;
2317
- border-radius: 50%;
2318
- background: var(--be-peer);
2319
- box-shadow: 0 0 0 1.5px var(--theme-bg);
2320
- }
2321
-
2322
- .builder-editing-banner {
2323
- display: flex;
2324
- align-items: center;
2325
- gap: 8px;
2326
- margin-bottom: 10px;
2327
- padding: 7px 10px;
2328
- border: 1px solid color-mix(in srgb, var(--be-peer) 35%, transparent);
2329
- border-radius: var(--be-radius-m);
2330
- background: color-mix(in srgb, var(--be-peer) 10%, transparent);
2331
- color: var(--theme-text);
2332
- font-size: var(--be-text-m);
2333
- line-height: 1.35;
2334
- animation: builder-fade-in 160ms var(--be-ease);
2335
-
2336
- strong {
2337
- font-weight: var(--be-weight-strong);
2338
- }
2339
- }
2340
-
2341
- .builder-editing-banner__avatars {
2342
- display: inline-flex;
2343
- flex: none;
2344
- }
2345
-
2346
- .builder-editing-banner__avatar {
2347
- display: inline-grid;
2348
- place-items: center;
2349
- width: 20px;
2350
- height: 20px;
2351
- margin-left: -4px;
2352
- border: 1.5px solid var(--theme-bg);
2353
- border-radius: 50%;
2354
- background: var(--be-peer);
2355
- color: #fff;
2356
- font-size: 9px;
2357
- font-weight: 700;
2358
-
2359
- &:first-child {
2360
- margin-left: 0;
2361
- }
2362
- }
2363
-
2364
- .builder-follow {
2365
- position: absolute;
2366
- z-index: 6;
2367
- inset: 0;
2368
- border: 2px solid var(--be-peer);
2369
- pointer-events: none;
2370
- animation: builder-tip-in 160ms ease-out;
2371
- }
2372
-
2373
- .builder-follow__chip {
2374
- position: absolute;
2375
- top: 8px;
2376
- left: 50%;
2377
- display: inline-flex;
2378
- align-items: center;
2379
- gap: 8px;
2380
- padding: 4px 4px 4px 12px;
2381
- border-radius: 999px;
2382
- background: var(--be-peer);
2383
- color: #fff;
2384
- font-size: var(--be-text-m);
2385
- font-weight: var(--be-weight-strong);
2386
- white-space: nowrap;
2387
- pointer-events: auto;
2388
- transform: translateX(-50%);
2389
- box-shadow: var(--be-shadow);
2390
- }
2391
-
2392
- .builder-follow__hint {
2393
- font-weight: var(--be-weight-regular);
2394
- opacity: 0.8;
2395
- }
2396
-
2397
- .builder-follow__stop {
2398
- display: grid;
2399
- place-items: center;
2400
- width: 20px;
2401
- height: 20px;
2402
- padding: 0;
2403
- border: 0;
2404
- border-radius: 50%;
2405
- background: rgb(255 255 255 / 0.2);
2406
- color: inherit;
2407
- cursor: pointer;
2408
-
2409
- &:hover {
2410
- background: rgb(255 255 255 / 0.35);
2411
- }
2412
- }
2413
-
2414
- .builder-editor__notice--warning svg {
2415
- color: var(--theme-warning-500, #f59e0b);
2416
- }
2417
-
2418
- // ---------------------------------------------------------------------------
2419
- // Canvas "+" between blocks (insert/InsertHandle.tsx). Overlay coordinates: the button keeps
2420
- // its screen size at any zoom (`--be-inv`).
2421
- // ---------------------------------------------------------------------------
2422
-
2423
- .builder-editor__overlay .builder-editor__insert-plus {
2424
- position: absolute;
2425
- z-index: 3;
2426
- display: grid;
2427
- place-items: center;
2428
- width: 20px;
2429
- height: 20px;
2430
- padding: 0;
2431
- border: 2px solid var(--theme-bg);
2432
- border-radius: 50%;
2433
- background: var(--be-accent);
2434
- color: var(--be-accent-fg);
2435
- box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
2436
- cursor: pointer;
2437
- pointer-events: auto;
2438
- transform: translate(-50%, -50%) scale(var(--be-inv, 1));
2439
- animation: builder-plus-in 120ms var(--be-ease) both;
2440
- transition: background-color 120ms ease, box-shadow 120ms ease;
2441
-
2442
- &:hover,
2443
- &[aria-expanded='true'] {
2444
- background: var(--be-accent-strong);
2445
- box-shadow: 0 0 0 3px var(--be-accent-soft), 0 1px 4px rgb(0 0 0 / 0.3);
2446
- }
2447
-
2448
- &:focus-visible {
2449
- outline: 2px solid var(--be-accent);
2450
- outline-offset: 2px;
2451
- }
2452
-
2453
- svg {
2454
- stroke-width: 2.25;
2455
- }
2456
- }
2457
-
2458
- @keyframes builder-plus-in {
2459
- from {
2460
- opacity: 0;
2461
- transform: translate(-50%, -50%) scale(calc(var(--be-inv, 1) * 0.6));
2462
- }
2463
- }
2464
-
2465
- .builder-editor__insert-mark {
2466
- position: absolute;
2467
- z-index: 3;
2468
- box-sizing: border-box;
2469
- pointer-events: none;
2470
- }
2471
-
2472
- .builder-editor__insert-mark--between {
2473
- background: var(--be-accent);
2474
- }
2475
-
2476
- .builder-editor__insert-mark--empty {
2477
- outline: calc(var(--be-px) * 2) dashed var(--be-accent);
2478
- outline-offset: calc(var(--be-px) * -2);
2479
- background: var(--be-accent-soft);
2480
- }
2481
-
2482
- // The insert picker: a search field over one list of blocks and sections.
2483
- // It renders into the editor root (not the overlay), so it takes the pointer and the wheel.
2484
- .builder-editor__menu.builder-editor__picker {
2485
- width: 280px;
2486
- max-height: min(420px, calc(100vh - 16px));
2487
- padding: 0;
2488
- overflow: hidden;
2489
- overscroll-behavior: contain;
2490
- pointer-events: auto;
2491
- }
2492
-
2493
- .builder-editor__picker-body {
2494
- display: flex;
2495
- flex-direction: column;
2496
- max-height: inherit;
2497
- }
2498
-
2499
- .builder-editor__search.builder-editor__picker-search {
2500
- margin: 8px 8px 4px;
2501
-
2502
- // The field's border shows the focus.
2503
- input:focus-visible {
2504
- outline: none;
2505
- }
2506
- }
2507
-
2508
- .builder-editor__picker-list {
2509
- flex: 1;
2510
- min-height: 0;
2511
- max-height: 340px;
2512
- padding: 0 4px 6px;
2513
- overflow: hidden auto;
2514
- overscroll-behavior: contain;
2515
- scrollbar-width: thin;
2516
- }
2517
-
2518
- .builder-editor__picker-heading {
2519
- margin: 8px 8px 4px;
2520
- color: var(--be-muted);
2521
- font-size: var(--be-text-s);
2522
- font-weight: var(--be-weight-strong);
2523
- letter-spacing: 0.06em;
2524
- text-transform: uppercase;
2525
- }
2526
-
2527
- .builder-editor__picker-item {
2528
- display: flex;
2529
- align-items: center;
2530
- gap: 8px;
2531
- height: 30px;
2532
- padding: 0 8px;
2533
- border-radius: var(--be-radius);
2534
- color: var(--theme-text);
2535
- font-size: var(--be-text-m);
2536
- cursor: pointer;
2537
-
2538
- &[aria-selected='true'] {
2539
- background: var(--be-hover);
2540
-
2541
- .builder-editor__picker-icon {
2542
- color: var(--be-accent);
2543
- }
2544
- }
2545
- }
2546
-
2547
- .builder-editor__picker-icon {
2548
- display: grid;
2549
- flex: none;
2550
- place-items: center;
2551
- color: var(--be-muted);
2552
- }
2553
-
2554
- .builder-editor__picker-label {
2555
- min-width: 0;
2556
- overflow: hidden;
2557
- white-space: nowrap;
2558
- text-overflow: ellipsis;
2559
- }
2560
-
2561
- .builder-editor__picker-hint {
2562
- flex: none;
2563
- margin-left: auto;
2564
- padding-left: 8px;
2565
- color: var(--be-muted);
2566
- font-size: var(--be-text-s);
2567
- }
2568
-
2569
- // ---------------------------------------------------------------------------
2570
- // Section cards: real thumbnails and the saved section menu
2571
- // ---------------------------------------------------------------------------
2572
-
2573
- .builder-editor__card-wrap {
2574
- position: relative;
2575
-
2576
- &:hover .builder-editor__card-more,
2577
- .builder-editor__card-more[aria-expanded='true'],
2578
- .builder-editor__card-more:focus-visible {
2579
- opacity: 1;
2580
- }
2581
- }
2582
-
2583
- .builder-editor__card-wrap .builder-editor__card-more {
2584
- position: absolute;
2585
- top: 6px;
2586
- right: 6px;
2587
- background: var(--theme-bg);
2588
- box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
2589
- opacity: 0;
2590
- transition: opacity 120ms ease, background-color 120ms ease;
2591
- }
2592
-
2593
- // A picture of the section, full width. A tall section shows its top part; a short one sits in
2594
- // the middle of the box.
2595
- .builder-editor__thumb--picture {
2596
- background: #fff;
2597
- mask-image: none;
2598
- }
2599
-
2600
- .builder-editor__thumb-img {
2601
- display: block;
2602
- flex: none;
2603
- width: 100%;
2604
- height: auto;
2605
- // Auto margins center a short picture. A tall one overflows at the bottom, so its top shows.
2606
- margin-block: auto;
2607
- animation: builder-fade-in 160ms ease both;
2608
- }
2609
- }
2610
-
2611
- // The saved section dialogs render in Payload's modal container, outside the editor.
2612
- @layer payload-default {
2613
- .builder-section-dialog .confirmation-modal__content {
2614
- gap: 4px;
2615
- }
2616
-
2617
- .builder-section-dialog__fields {
2618
- display: flex;
2619
- flex-direction: column;
2620
- gap: 16px;
2621
- width: 100%;
2622
- min-width: min(420px, 80vw);
2623
- }
2624
-
2625
- .builder-section-dialog__intro {
2626
- margin: 0;
2627
- color: var(--theme-elevation-600);
2628
- }
2629
- }
1
+ // Builder editor. Payload CSS variables only, no Tailwind (it would leak into the admin).
2
+ // Works in Payload's light and dark theme: every color comes from a theme variable.
3
+
4
+ @layer payload-default {
5
+ @keyframes builder-fade-in {
6
+ from {
7
+ opacity: 0;
8
+ transform: translateY(4px);
9
+ }
10
+ }
11
+
12
+ @keyframes builder-tip-in {
13
+ from {
14
+ opacity: 0;
15
+ }
16
+ }
17
+
18
+ // Type scale and the floating-surface shadow. Three sizes and three weights for all editor
19
+ // text, derived from Payload's base size (1rem: 13px, 12px on narrow screens). On :root,
20
+ // because Payload's drawers and modals render outside the editor element.
21
+ // s: captions, counts, badges, keyboard keys, tooltips, small group titles
22
+ // m: labels, inputs, tree rows, tabs, menu items, buttons, help text
23
+ // l: the block name and panel titles
24
+ :root {
25
+ --be-text-s: calc(1rem - 2px);
26
+ --be-text-m: 1rem;
27
+ --be-text-l: calc(1rem + 1px);
28
+ --be-weight-regular: 400;
29
+ --be-weight-medium: 500;
30
+ --be-weight-strong: 600;
31
+ // One shadow for every floating surface: menus, popovers, select lists, tooltips.
32
+ --be-shadow: 0 8px 24px rgb(0 0 0 / 0.18), 0 1px 3px rgb(0 0 0 / 0.12);
33
+ }
34
+
35
+ .builder-editor {
36
+ --be-accent: var(--theme-success-500);
37
+ --be-accent-strong: var(--theme-success-600);
38
+ --be-accent-soft: color-mix(in srgb, var(--theme-success-500) 14%, transparent);
39
+ --be-accent-fg: #fff;
40
+ --be-border: var(--theme-elevation-150);
41
+ --be-border-soft: var(--theme-elevation-100);
42
+ // Text colors that pass WCAG AA (4.5:1) on the panel, a selected row and a raised surface.
43
+ --be-muted: var(--theme-elevation-600);
44
+ --be-accent-text: var(--theme-success-600);
45
+ // The selection tag's fill: white text on it passes AA in both themes.
46
+ --be-accent-solid: var(--color-success-600);
47
+ --be-subtle: var(--theme-elevation-400);
48
+ --be-panel: var(--theme-bg);
49
+ --be-raised: var(--theme-elevation-50);
50
+ --be-hover: var(--theme-elevation-100);
51
+ --be-radius: var(--style-radius-s, 4px);
52
+ --be-radius-m: var(--style-radius-m, 6px);
53
+ --be-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
54
+ // Components (live saved section copies) get their own color, as in Figma: the outline,
55
+ // the solid fill of the name tag and action bar (white text passes AA on it), and text.
56
+ --be-component: #8b5cf6;
57
+ --be-component-solid: #7c3aed;
58
+ --be-component-text: #6d28d9;
59
+
60
+ display: flex;
61
+ flex-direction: column;
62
+ // The full-screen view: the whole viewport, the top bar first.
63
+ height: 100dvh;
64
+ min-height: 520px;
65
+ overflow: hidden;
66
+ color: var(--theme-text);
67
+ font-family: var(--font-body);
68
+ font-size: var(--be-text-m);
69
+ background: var(--be-panel);
70
+
71
+ button {
72
+ font-family: inherit;
73
+ }
74
+
75
+ :focus-visible {
76
+ outline: 2px solid var(--be-accent);
77
+ outline-offset: -2px;
78
+ }
79
+
80
+ kbd {
81
+ display: inline-flex;
82
+ align-items: center;
83
+ justify-content: center;
84
+ min-width: 20px;
85
+ height: 20px;
86
+ padding: 0 5px;
87
+ border: 1px solid var(--be-border);
88
+ border-bottom-width: 2px;
89
+ border-radius: var(--be-radius);
90
+ background: var(--be-raised);
91
+ color: var(--theme-elevation-800);
92
+ font-family: inherit;
93
+ font-size: var(--be-text-s);
94
+ font-weight: var(--be-weight-medium);
95
+ line-height: 1;
96
+ }
97
+
98
+ code {
99
+ font-family: var(--font-mono, ui-monospace, monospace);
100
+ font-size: var(--be-text-s);
101
+ }
102
+ }
103
+
104
+ // ---------------------------------------------------------------------------
105
+ // Tooltips: `data-tooltip="Text"` on any element. `tooltip/Tooltips.tsx` shows them in the
106
+ // top layer (never clipped) and documents the standard. No `title` attributes in the editor.
107
+ // ---------------------------------------------------------------------------
108
+
109
+ // Kept from the old CSS-only tooltips: some controls place badges and buttons against it.
110
+ .builder-editor [data-tooltip] {
111
+ position: relative;
112
+ }
113
+
114
+ // ---------------------------------------------------------------------------
115
+ // Shared controls
116
+ // ---------------------------------------------------------------------------
117
+
118
+ .builder-editor__icon-button {
119
+ display: inline-grid;
120
+ flex: none;
121
+ place-items: center;
122
+ width: 28px;
123
+ height: 28px;
124
+ padding: 0;
125
+ border: 0;
126
+ border-radius: var(--be-radius);
127
+ background: transparent;
128
+ color: var(--theme-elevation-800);
129
+ cursor: pointer;
130
+ transition: background-color 120ms ease, color 120ms ease;
131
+
132
+ &:hover:not(:disabled) {
133
+ background: var(--be-hover);
134
+ color: var(--theme-text);
135
+ }
136
+
137
+ &:disabled {
138
+ opacity: 0.35;
139
+ cursor: default;
140
+ }
141
+
142
+ &[aria-expanded='true'] {
143
+ background: var(--be-hover);
144
+ }
145
+
146
+ &[aria-pressed='true'] {
147
+ background: color-mix(in srgb, var(--be-accent) 14%, transparent);
148
+ color: var(--be-accent);
149
+ }
150
+ }
151
+
152
+ .builder-editor__icon-button--small {
153
+ width: 22px;
154
+ height: 22px;
155
+ }
156
+
157
+ .builder-editor__segmented {
158
+ display: inline-flex;
159
+ gap: 2px;
160
+ min-width: 0;
161
+ margin: 0;
162
+ padding: 2px;
163
+ border: 0;
164
+ border-radius: var(--be-radius-m);
165
+ background: var(--theme-elevation-100);
166
+ }
167
+
168
+ .builder-editor__segmented--full {
169
+ display: flex;
170
+ width: 100%;
171
+
172
+ .builder-editor__segment {
173
+ flex: 1;
174
+ }
175
+ }
176
+
177
+ .builder-editor__segment {
178
+ display: inline-flex;
179
+ align-items: center;
180
+ justify-content: center;
181
+ gap: 6px;
182
+ height: 26px;
183
+ min-width: 30px;
184
+ padding: 0 10px;
185
+ border: 0;
186
+ border-radius: var(--be-radius);
187
+ background: transparent;
188
+ color: var(--theme-elevation-600);
189
+ font-size: var(--be-text-m);
190
+ font-weight: var(--be-weight-medium);
191
+ cursor: pointer;
192
+ transition: background-color 120ms ease, color 120ms ease;
193
+
194
+ &:hover {
195
+ color: var(--theme-text);
196
+ }
197
+
198
+ &[aria-pressed='true'],
199
+ &[aria-selected='true'] {
200
+ background: var(--theme-elevation-0);
201
+ color: var(--theme-text);
202
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.16), 0 0 0 1px var(--be-border);
203
+ }
204
+ }
205
+
206
+ .builder-editor__segmented--small .builder-editor__segment {
207
+ height: 22px;
208
+ padding: 0 8px;
209
+ font-size: var(--be-text-s);
210
+ }
211
+
212
+ .builder-editor__segment-count {
213
+ color: var(--be-muted);
214
+ font-size: var(--be-text-s);
215
+ font-variant-numeric: tabular-nums;
216
+ }
217
+
218
+ .builder-editor__hint {
219
+ margin: 0;
220
+ color: var(--be-muted);
221
+ font-size: var(--be-text-m);
222
+ line-height: 1.5;
223
+ }
224
+
225
+ .builder-editor__hint--center {
226
+ padding: 16px 8px;
227
+ text-align: center;
228
+ }
229
+
230
+ .builder-editor__empty {
231
+ display: flex;
232
+ flex-direction: column;
233
+ align-items: center;
234
+ gap: 6px;
235
+ padding: 24px 16px;
236
+ color: var(--be-subtle);
237
+ text-align: center;
238
+
239
+ > p:not(.builder-editor__hint) {
240
+ margin: 4px 0 0;
241
+ color: var(--theme-text);
242
+ font-size: var(--be-text-m);
243
+ font-weight: var(--be-weight-strong);
244
+ }
245
+
246
+ .builder-editor__hint {
247
+ max-width: 240px;
248
+ }
249
+ }
250
+
251
+ .builder-editor__pill {
252
+ display: inline-flex;
253
+ align-items: center;
254
+ gap: 4px;
255
+ height: 20px;
256
+ padding: 0 7px;
257
+ border-radius: 10px;
258
+ background: var(--theme-elevation-100);
259
+ color: var(--be-muted);
260
+ font-size: var(--be-text-s);
261
+ font-weight: var(--be-weight-medium);
262
+ }
263
+
264
+ .builder-editor__count {
265
+ min-width: 18px;
266
+ padding: 1px 6px;
267
+ border-radius: 9px;
268
+ background: var(--theme-elevation-100);
269
+ color: var(--be-muted);
270
+ font-size: var(--be-text-s);
271
+ font-weight: var(--be-weight-strong);
272
+ text-align: center;
273
+ font-variant-numeric: tabular-nums;
274
+ }
275
+
276
+ // ---------------------------------------------------------------------------
277
+ // Canvas width controls (in the top bar, see topbar/topbar.scss)
278
+ // ---------------------------------------------------------------------------
279
+
280
+ .builder-editor__width-input {
281
+ display: inline-flex;
282
+ align-items: center;
283
+ gap: 2px;
284
+ height: 30px;
285
+ padding: 0 8px;
286
+ border: 1px solid var(--be-border);
287
+ border-radius: var(--be-radius-m);
288
+ background: var(--theme-input-bg, var(--theme-elevation-0));
289
+ color: var(--be-muted);
290
+ font-size: var(--be-text-m);
291
+ cursor: text;
292
+
293
+ &:focus-within {
294
+ border-color: var(--be-accent);
295
+ }
296
+
297
+ input {
298
+ width: 40px;
299
+ padding: 0;
300
+ border: 0;
301
+ outline: 0;
302
+ background: transparent;
303
+ color: var(--theme-text);
304
+ font: inherit;
305
+ font-variant-numeric: tabular-nums;
306
+ text-align: right;
307
+ }
308
+ }
309
+
310
+ .builder-editor__bp-badge {
311
+ min-width: 28px;
312
+ padding: 3px 7px;
313
+ border-radius: var(--be-radius);
314
+ background: var(--be-accent-soft);
315
+ color: var(--be-accent-text);
316
+ font-size: var(--be-text-s);
317
+ font-weight: var(--be-weight-strong);
318
+ text-align: center;
319
+ }
320
+
321
+ .builder-editor__error,
322
+ .builder-editor__canvas-error {
323
+ display: inline-flex;
324
+ align-items: center;
325
+ gap: 6px;
326
+ min-width: 0;
327
+ padding: 3px 4px 3px 10px;
328
+ border-radius: var(--be-radius-m);
329
+ background: color-mix(in srgb, var(--theme-error-500) 12%, transparent);
330
+ color: var(--theme-error-500);
331
+ font-size: var(--be-text-m);
332
+
333
+ button {
334
+ color: inherit;
335
+ }
336
+ }
337
+
338
+ .builder-editor__canvas-error {
339
+ position: absolute;
340
+ z-index: 3;
341
+ top: 8px;
342
+ left: 50%;
343
+ transform: translateX(-50%);
344
+
345
+ button {
346
+ padding: 2px 6px;
347
+ border: 0;
348
+ background: none;
349
+ font: inherit;
350
+ text-decoration: underline;
351
+ cursor: pointer;
352
+ }
353
+ }
354
+
355
+ .builder-editor__help {
356
+ position: relative;
357
+ }
358
+
359
+ .builder-editor__help-panel {
360
+ position: absolute;
361
+ z-index: 100;
362
+ top: calc(100% + 8px);
363
+ right: 0;
364
+ width: 340px;
365
+ padding: 12px 14px;
366
+ border: 1px solid var(--be-border);
367
+ border-radius: var(--be-radius-m);
368
+ background: var(--be-panel);
369
+ box-shadow: var(--be-shadow);
370
+ animation: builder-fade-in 140ms var(--be-ease);
371
+
372
+ dl {
373
+ display: flex;
374
+ flex-direction: column;
375
+ gap: 6px;
376
+ margin: 0;
377
+ }
378
+ }
379
+
380
+ .builder-editor__help-title {
381
+ margin: 0 0 10px;
382
+ font-size: var(--be-text-m);
383
+ font-weight: var(--be-weight-strong);
384
+ }
385
+
386
+ .builder-editor__help-row {
387
+ display: flex;
388
+ align-items: center;
389
+ justify-content: space-between;
390
+ gap: 12px;
391
+
392
+ dt {
393
+ color: var(--theme-elevation-700);
394
+ font-size: var(--be-text-m);
395
+ }
396
+
397
+ dd {
398
+ display: flex;
399
+ flex: none;
400
+ gap: 3px;
401
+ margin: 0;
402
+ }
403
+ }
404
+
405
+ // ---------------------------------------------------------------------------
406
+ // Layout
407
+ // ---------------------------------------------------------------------------
408
+
409
+ .builder-editor__body {
410
+ display: flex;
411
+ flex: 1;
412
+ min-height: 0;
413
+ }
414
+
415
+ .builder-editor__left,
416
+ .builder-editor__right {
417
+ display: flex;
418
+ flex-direction: column;
419
+ flex: none;
420
+ min-height: 0;
421
+ background: var(--be-panel);
422
+ }
423
+
424
+ // The sidebars are resizable (layout/Splitter.tsx). A stored size is a CSS variable on the
425
+ // editor root; without one, these defaults apply. A sidebar never takes more than a third of
426
+ // the window, so a size stored on a large screen still fits a laptop.
427
+ .builder-editor__left {
428
+ width: var(--be-left-width, 288px);
429
+ max-width: 33vw;
430
+ border-right: 1px solid var(--be-border);
431
+ }
432
+
433
+ .builder-editor__right {
434
+ width: var(--be-right-width, 360px);
435
+ max-width: 38vw;
436
+ border-left: 1px solid var(--be-border);
437
+ }
438
+
439
+ // Laptop screens: give the canvas more room.
440
+ @media (max-width: 1600px) {
441
+ .builder-editor__left {
442
+ width: var(--be-left-width, 252px);
443
+ }
444
+
445
+ .builder-editor__right {
446
+ width: var(--be-right-width, 320px);
447
+ }
448
+
449
+ .builder-editor__tile {
450
+ min-height: 58px;
451
+ }
452
+ }
453
+
454
+ .builder-editor__panel {
455
+ display: flex;
456
+ flex-direction: column;
457
+ min-height: 0;
458
+ }
459
+
460
+ .builder-editor__panel--grow {
461
+ flex: 1;
462
+ }
463
+
464
+ .builder-editor__panel-head {
465
+ display: flex;
466
+ flex: none;
467
+ align-items: center;
468
+ gap: 8px;
469
+ height: 40px;
470
+ padding: 0 8px 0 12px;
471
+ }
472
+
473
+ .builder-editor__panel-title {
474
+ display: inline-flex;
475
+ align-items: center;
476
+ gap: 6px;
477
+ margin: 0;
478
+ color: var(--theme-text);
479
+ font-size: var(--be-text-m);
480
+ font-weight: var(--be-weight-strong);
481
+ letter-spacing: 0.01em;
482
+
483
+ svg {
484
+ color: var(--be-muted);
485
+ }
486
+ }
487
+
488
+ .builder-editor__panel-toggle {
489
+ display: inline-flex;
490
+ flex: 1;
491
+ align-items: center;
492
+ gap: 4px;
493
+ min-width: 0;
494
+ height: 28px;
495
+ margin-left: -6px;
496
+ padding: 0 4px;
497
+ border: 0;
498
+ border-radius: var(--be-radius);
499
+ background: none;
500
+ color: var(--be-muted);
501
+ cursor: pointer;
502
+
503
+ &:hover {
504
+ color: var(--theme-text);
505
+ }
506
+ }
507
+
508
+ .builder-editor__panel-tools {
509
+ display: flex;
510
+ gap: 2px;
511
+ margin-left: auto;
512
+ color: var(--be-muted);
513
+ }
514
+
515
+ // ---------------------------------------------------------------------------
516
+ // Insert panel (blocks and sections)
517
+ // ---------------------------------------------------------------------------
518
+
519
+ // The Blocks and Sections tabs of the left panel (layout/LeftPanel.tsx).
520
+ .builder-editor__insert {
521
+ display: flex;
522
+ flex: 1;
523
+ flex-direction: column;
524
+ min-height: 0;
525
+ }
526
+
527
+ .builder-editor__search {
528
+ display: flex;
529
+ flex: none;
530
+ align-items: center;
531
+ gap: 6px;
532
+ height: 30px;
533
+ margin: 0 12px 8px;
534
+ padding: 0 8px;
535
+ border: 1px solid var(--be-border);
536
+ border-radius: var(--be-radius-m);
537
+ background: var(--theme-input-bg, var(--theme-elevation-0));
538
+ color: var(--be-subtle);
539
+ cursor: text;
540
+
541
+ &:focus-within {
542
+ border-color: var(--be-accent);
543
+ color: var(--theme-text);
544
+ }
545
+
546
+ input {
547
+ flex: 1;
548
+ min-width: 0;
549
+ padding: 0;
550
+ border: 0;
551
+ outline: 0;
552
+ background: transparent;
553
+ color: var(--theme-text);
554
+ font: inherit;
555
+ font-size: var(--be-text-m);
556
+
557
+ &::placeholder {
558
+ color: var(--be-subtle);
559
+ }
560
+ }
561
+ }
562
+
563
+ .builder-editor__insert-body {
564
+ flex: 1;
565
+ min-height: 0;
566
+ padding: 0 12px 12px;
567
+ overflow: hidden auto;
568
+ scrollbar-width: thin;
569
+ }
570
+
571
+ .builder-editor__group-block + .builder-editor__group-block {
572
+ margin-top: 12px;
573
+ }
574
+
575
+ .builder-editor__group-title {
576
+ margin: 4px 0 6px;
577
+ color: var(--be-muted);
578
+ font-size: var(--be-text-s);
579
+ font-weight: var(--be-weight-strong);
580
+ letter-spacing: 0.06em;
581
+ text-transform: uppercase;
582
+ }
583
+
584
+ .builder-editor__tiles {
585
+ display: grid;
586
+ grid-template-columns: repeat(3, 1fr);
587
+ gap: 6px;
588
+ }
589
+
590
+ .builder-editor__tile {
591
+ display: flex;
592
+ flex-direction: column;
593
+ align-items: center;
594
+ justify-content: center;
595
+ gap: 6px;
596
+ min-width: 0;
597
+ min-height: 62px;
598
+ padding: 6px 4px;
599
+ border: 1px solid var(--be-border-soft);
600
+ border-radius: var(--be-radius-m);
601
+ background: var(--be-raised);
602
+ color: var(--theme-elevation-800);
603
+ cursor: grab;
604
+ touch-action: none;
605
+ transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, transform 120ms ease;
606
+
607
+ &:hover {
608
+ border-color: var(--theme-elevation-250);
609
+ background: var(--be-hover);
610
+ color: var(--theme-text);
611
+
612
+ .builder-editor__tile-icon {
613
+ color: var(--be-accent);
614
+ }
615
+ }
616
+
617
+ &:active {
618
+ transform: scale(0.97);
619
+ }
620
+ }
621
+
622
+ .builder-editor__tile-icon {
623
+ display: grid;
624
+ place-items: center;
625
+ color: var(--theme-elevation-600);
626
+ transition: color 120ms ease;
627
+ }
628
+
629
+ // Two lines at most, so a long name ("Collection list") wraps instead of "Collectio…".
630
+ .builder-editor__tile-label {
631
+ display: -webkit-box;
632
+ max-width: 100%;
633
+ overflow: hidden;
634
+ font-size: var(--be-text-s);
635
+ font-weight: var(--be-weight-medium);
636
+ line-height: 1.2;
637
+ text-align: center;
638
+ overflow-wrap: break-word;
639
+ -webkit-box-orient: vertical;
640
+ -webkit-line-clamp: 2;
641
+ }
642
+
643
+ .builder-editor__cards {
644
+ display: flex;
645
+ flex-direction: column;
646
+ gap: 8px;
647
+ }
648
+
649
+ .builder-editor__card {
650
+ display: flex;
651
+ flex-direction: column;
652
+ gap: 0;
653
+ width: 100%;
654
+ padding: 0;
655
+ overflow: hidden;
656
+ border: 1px solid var(--be-border-soft);
657
+ border-radius: var(--be-radius-m);
658
+ background: var(--be-raised);
659
+ color: var(--theme-text);
660
+ text-align: left;
661
+ cursor: grab;
662
+ touch-action: none;
663
+ transition: border-color 120ms ease, box-shadow 120ms ease;
664
+
665
+ &:hover {
666
+ border-color: var(--theme-elevation-250);
667
+ box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
668
+
669
+ .builder-editor__thumb {
670
+ background: var(--theme-elevation-0);
671
+ }
672
+ }
673
+ }
674
+
675
+ .builder-editor__card-text {
676
+ display: flex;
677
+ flex-direction: column;
678
+ gap: 2px;
679
+ padding: 8px 10px 9px;
680
+ border-top: 1px solid var(--be-border-soft);
681
+ }
682
+
683
+ .builder-editor__card-label {
684
+ font-size: var(--be-text-m);
685
+ font-weight: var(--be-weight-strong);
686
+ }
687
+
688
+ .builder-editor__card-desc {
689
+ display: -webkit-box;
690
+ overflow: hidden;
691
+ color: var(--be-muted);
692
+ font-size: var(--be-text-s);
693
+ line-height: 1.4;
694
+ -webkit-box-orient: vertical;
695
+ -webkit-line-clamp: 2;
696
+ }
697
+
698
+ // The thumbnail of a section: the wireframe, then the picture, in one box of a fixed shape. The
699
+ // box keeps its size when the picture loads, so the list never jumps. 2:1 is the top 1280 x 640 px
700
+ // of a section at the width pictures are made at (sections/thumbnails.ts).
701
+ .builder-editor__thumb {
702
+ position: relative;
703
+ display: flex;
704
+ flex-direction: column;
705
+ aspect-ratio: 2 / 1;
706
+ overflow: hidden;
707
+ background: var(--theme-elevation-0);
708
+ transition: background-color 120ms ease;
709
+ mask-image: linear-gradient(to bottom, #000 82%, transparent);
710
+ }
711
+
712
+ .builder-editor__thumb-inner {
713
+ box-sizing: border-box;
714
+ display: flex;
715
+ flex: 1 0 auto;
716
+ flex-direction: column;
717
+ justify-content: center;
718
+ gap: 4px;
719
+ min-height: 100%;
720
+ padding: 6px;
721
+
722
+ // The section root fills the thumbnail, its content centered vertically.
723
+ > .wf-box {
724
+ flex: 1 0 auto;
725
+ justify-content: center;
726
+ }
727
+
728
+ --wf-ink: var(--theme-elevation-500);
729
+ --wf-line: var(--theme-elevation-250);
730
+ --wf-fill: var(--theme-elevation-150);
731
+
732
+ .wf-box {
733
+ display: flex;
734
+ gap: 4px;
735
+ min-width: 0;
736
+ border-radius: 2px;
737
+ }
738
+
739
+ .wf-col {
740
+ flex-direction: column;
741
+ }
742
+
743
+ .wf-row {
744
+ flex-flow: row wrap;
745
+ align-items: center;
746
+ }
747
+
748
+ .wf-grid {
749
+ display: grid;
750
+ gap: 5px;
751
+ }
752
+
753
+ [data-center] {
754
+ align-items: center;
755
+ }
756
+
757
+ [data-between] {
758
+ justify-content: space-between;
759
+ }
760
+
761
+ [data-pad] {
762
+ padding: 6px 8px;
763
+ }
764
+
765
+ [data-tone='muted'] {
766
+ background: var(--theme-elevation-100);
767
+ }
768
+
769
+ [data-tone='primary'] {
770
+ background: color-mix(in srgb, var(--be-accent) 30%, transparent);
771
+ }
772
+
773
+ // A heading with its real words, so sections are easy to tell apart.
774
+ .wf-heading-text {
775
+ display: -webkit-box;
776
+ max-width: 92%;
777
+ overflow: hidden;
778
+ color: var(--theme-elevation-800);
779
+ font-size: 8px;
780
+ font-weight: 700;
781
+ line-height: 1.15;
782
+ -webkit-line-clamp: 2;
783
+ -webkit-box-orient: vertical;
784
+
785
+ &[data-level='1'] {
786
+ font-size: 9.5px;
787
+ }
788
+
789
+ &[data-level='3'] {
790
+ font-size: 7px;
791
+ font-weight: 600;
792
+ }
793
+
794
+ &[data-center] {
795
+ text-align: center;
796
+ }
797
+ }
798
+
799
+ .wf-row > .wf-heading-text {
800
+ max-width: 45%;
801
+ }
802
+
803
+ .wf-heading {
804
+ display: block;
805
+ width: 58%;
806
+ height: 5px;
807
+ border-radius: 2px;
808
+ background: var(--wf-ink);
809
+
810
+ &[data-level='1'] {
811
+ width: 68%;
812
+ height: 7px;
813
+ }
814
+
815
+ &[data-level='3'] {
816
+ width: 44%;
817
+ height: 4px;
818
+ }
819
+ }
820
+
821
+ .wf-text {
822
+ display: block;
823
+ width: 82%;
824
+ height: 3px;
825
+ border-radius: 2px;
826
+ background: var(--wf-line);
827
+ }
828
+
829
+ .wf-text--short {
830
+ width: 50%;
831
+ }
832
+
833
+ .wf-lines {
834
+ display: flex;
835
+ flex-direction: column;
836
+ gap: 3px;
837
+ width: 100%;
838
+ }
839
+
840
+ .wf-button {
841
+ display: block;
842
+ flex: none;
843
+ width: 22px;
844
+ height: 7px;
845
+ border: 1px solid var(--wf-ink);
846
+ border-radius: 4px;
847
+
848
+ &[data-primary] {
849
+ border-color: var(--be-accent);
850
+ background: var(--be-accent);
851
+ }
852
+ }
853
+
854
+ .wf-media {
855
+ display: block;
856
+ width: 100%;
857
+ min-height: 18px;
858
+ aspect-ratio: 16 / 9;
859
+ border-radius: 2px;
860
+ background: var(--wf-fill);
861
+ }
862
+
863
+ .wf-divider {
864
+ display: block;
865
+ width: 100%;
866
+ height: 1px;
867
+ background: var(--wf-line);
868
+ }
869
+
870
+ .wf-spacer {
871
+ display: block;
872
+ height: 6px;
873
+ }
874
+
875
+ .wf-form {
876
+ display: flex;
877
+ flex-direction: column;
878
+ gap: 3px;
879
+ width: 100%;
880
+ padding: 4px;
881
+ border: 1px solid var(--wf-line);
882
+ border-radius: 2px;
883
+ }
884
+
885
+ .wf-card {
886
+ display: flex;
887
+ flex-direction: column;
888
+ gap: 3px;
889
+ width: 100%;
890
+ padding: 5px;
891
+ border-radius: 2px;
892
+ background: var(--theme-elevation-50);
893
+ box-shadow: inset 0 0 0 1px var(--wf-line);
894
+ }
895
+
896
+ .wf-field {
897
+ display: block;
898
+ height: 5px;
899
+ border: 1px solid var(--wf-line);
900
+ border-radius: 1px;
901
+ }
902
+
903
+ // Inside rows, bars get a fixed size instead of a share of the row.
904
+ .wf-row > .wf-text,
905
+ .wf-inline .wf-text {
906
+ width: 14px;
907
+ }
908
+
909
+ .wf-row > .wf-heading {
910
+ width: 30px;
911
+ }
912
+
913
+ .wf-inline {
914
+ display: flex;
915
+ gap: 3px;
916
+ }
917
+ }
918
+
919
+ // ---------------------------------------------------------------------------
920
+ // Outline
921
+ // ---------------------------------------------------------------------------
922
+
923
+ .builder-editor__outline {
924
+ flex: 1;
925
+ padding: 0 6px 12px;
926
+ overflow: auto;
927
+ scrollbar-width: thin;
928
+ outline: 0;
929
+ }
930
+
931
+ .builder-editor__row {
932
+ position: relative;
933
+ display: flex;
934
+ align-items: center;
935
+ gap: 6px;
936
+ height: 28px;
937
+ margin: 0;
938
+ padding: 0 6px 0 4px;
939
+ border-radius: var(--be-radius);
940
+ color: var(--theme-elevation-800);
941
+ font-size: var(--be-text-m);
942
+ white-space: nowrap;
943
+ cursor: pointer;
944
+ user-select: none;
945
+ touch-action: none;
946
+ // Rows off screen skip style and layout work. Payload's admin CSS has `body:has(.drag-overlay) *`,
947
+ // so every DOM change restyles the whole document, and a large page has thousands of row elements.
948
+ content-visibility: auto;
949
+ contain-intrinsic-block-size: 28px;
950
+
951
+ &:hover .builder-editor__row-actions {
952
+ display: flex;
953
+ }
954
+
955
+ &:hover .builder-editor__row-hidden {
956
+ display: none;
957
+ }
958
+
959
+ &:focus-visible {
960
+ outline: 2px solid var(--be-accent);
961
+ outline-offset: -2px;
962
+ }
963
+ }
964
+
965
+ .builder-editor__guide {
966
+ position: absolute;
967
+ top: 0;
968
+ bottom: 0;
969
+ width: 1px;
970
+ background: var(--theme-elevation-150);
971
+ pointer-events: none;
972
+ }
973
+
974
+ .builder-editor__row-indent {
975
+ flex: none;
976
+ }
977
+
978
+ .builder-editor__row--hovered {
979
+ background: var(--be-hover);
980
+ }
981
+
982
+ .builder-editor__row--selected {
983
+ background: var(--be-accent-soft);
984
+ color: var(--theme-text);
985
+
986
+ .builder-editor__row-icon {
987
+ color: var(--be-accent);
988
+ }
989
+
990
+ .builder-editor__row-type {
991
+ font-weight: var(--be-weight-strong);
992
+ }
993
+ }
994
+
995
+ // Dark admin theme: a lighter text color, so it passes AA on the dark panel.
996
+ html[data-theme='dark'] .builder-editor {
997
+ --be-component-text: #a78bfa;
998
+ }
999
+
1000
+ // A component's Layers row: its icon and name in the component color.
1001
+ .builder-editor__row[data-component] {
1002
+ .builder-editor__row-icon,
1003
+ .builder-editor__row-type {
1004
+ color: var(--be-component-text);
1005
+ }
1006
+ }
1007
+
1008
+ .builder-editor__row--dragging {
1009
+ opacity: 0.4;
1010
+ }
1011
+
1012
+ .builder-editor__row--hidden {
1013
+ .builder-editor__row-icon,
1014
+ .builder-editor__row-type,
1015
+ .builder-editor__row-text {
1016
+ opacity: 0.45;
1017
+ }
1018
+ }
1019
+
1020
+ .builder-editor__caret {
1021
+ display: grid;
1022
+ flex: none;
1023
+ place-items: center;
1024
+ width: 16px;
1025
+ height: 16px;
1026
+ padding: 0;
1027
+ border: 0;
1028
+ border-radius: 3px;
1029
+ background: none;
1030
+ color: var(--be-muted);
1031
+ cursor: pointer;
1032
+
1033
+ &:hover {
1034
+ background: var(--theme-elevation-150);
1035
+ color: var(--theme-text);
1036
+ }
1037
+ }
1038
+
1039
+ .builder-editor__caret--empty {
1040
+ pointer-events: none;
1041
+ }
1042
+
1043
+ .builder-editor__row-icon {
1044
+ display: grid;
1045
+ flex: none;
1046
+ place-items: center;
1047
+ color: var(--be-muted);
1048
+ }
1049
+
1050
+ .builder-editor__row-type {
1051
+ flex: none;
1052
+ font-weight: var(--be-weight-medium);
1053
+ }
1054
+
1055
+ .builder-editor__row-text {
1056
+ flex: 1;
1057
+ min-width: 0;
1058
+ overflow: hidden;
1059
+ color: var(--be-muted);
1060
+ text-overflow: ellipsis;
1061
+ }
1062
+
1063
+ .builder-editor__row-count {
1064
+ flex: none;
1065
+ margin-left: auto;
1066
+ padding: 0 5px;
1067
+ border-radius: 8px;
1068
+ background: var(--theme-elevation-100);
1069
+ color: var(--be-muted);
1070
+ font-size: var(--be-text-s);
1071
+ line-height: 16px;
1072
+ }
1073
+
1074
+ .builder-editor__row-actions {
1075
+ display: none;
1076
+ flex: none;
1077
+ gap: 1px;
1078
+ margin-left: auto;
1079
+ padding-left: 4px;
1080
+ }
1081
+
1082
+ .builder-editor__row-action {
1083
+ display: grid;
1084
+ place-items: center;
1085
+ width: 22px;
1086
+ height: 22px;
1087
+ padding: 0;
1088
+ border: 0;
1089
+ border-radius: 3px;
1090
+ background: none;
1091
+ color: var(--be-muted);
1092
+ cursor: pointer;
1093
+
1094
+ &:hover {
1095
+ background: var(--theme-elevation-150);
1096
+ color: var(--theme-text);
1097
+ }
1098
+ }
1099
+
1100
+ .builder-editor__row-hidden {
1101
+ display: grid;
1102
+ flex: none;
1103
+ place-items: center;
1104
+ margin-left: auto;
1105
+ color: var(--be-subtle);
1106
+ }
1107
+
1108
+ // A block that stopped the last publish.
1109
+ .builder-editor__row-problem {
1110
+ display: grid;
1111
+ flex: none;
1112
+ place-items: center;
1113
+ margin-left: auto;
1114
+ color: var(--theme-error-500);
1115
+ }
1116
+
1117
+ .builder-editor__row--problem .builder-editor__row-type {
1118
+ color: var(--theme-error-500);
1119
+ }
1120
+
1121
+ .builder-editor__row:hover .builder-editor__row-problem {
1122
+ display: none;
1123
+ }
1124
+
1125
+ // A block with animations (`block.motion`).
1126
+ .builder-editor__row-motion {
1127
+ display: grid;
1128
+ flex: none;
1129
+ place-items: center;
1130
+ width: 18px;
1131
+ height: 18px;
1132
+ margin-left: auto;
1133
+ border-radius: 4px;
1134
+ color: var(--be-muted);
1135
+ }
1136
+
1137
+ .builder-editor__row--selected .builder-editor__row-motion {
1138
+ color: inherit;
1139
+ }
1140
+
1141
+ // Next to the motion icon, the other end-of-row marks sit close instead of splitting the space.
1142
+ .builder-editor__row-problem ~ .builder-editor__row-motion,
1143
+ .builder-editor__row-motion ~ .builder-editor__row-bound,
1144
+ .builder-editor__row:not(:hover) .builder-editor__row-motion ~ .builder-editor__row-count,
1145
+ .builder-editor__row:not(:hover) .builder-editor__row-motion ~ .builder-editor__row-hidden {
1146
+ margin-left: 2px;
1147
+ }
1148
+
1149
+ .builder-editor__row:hover .builder-editor__row-motion {
1150
+ display: none;
1151
+ }
1152
+
1153
+ // Inline rename in the outline and the inspector header.
1154
+ .builder-editor__rename {
1155
+ flex: 1;
1156
+ min-width: 0;
1157
+ height: 22px;
1158
+ padding: 0 6px;
1159
+ border: 1px solid var(--be-accent);
1160
+ border-radius: var(--be-radius);
1161
+ outline: 0;
1162
+ background: var(--theme-input-bg, var(--theme-bg));
1163
+ color: var(--theme-text);
1164
+ font: inherit;
1165
+ font-size: var(--be-text-m);
1166
+
1167
+ &::placeholder {
1168
+ color: var(--be-subtle);
1169
+ }
1170
+ }
1171
+
1172
+ // ---------------------------------------------------------------------------
1173
+ // Inspector
1174
+ // ---------------------------------------------------------------------------
1175
+
1176
+ .builder-editor__inspector {
1177
+ display: flex;
1178
+ flex-direction: column;
1179
+ flex: 1;
1180
+ min-height: 0;
1181
+ }
1182
+
1183
+ .builder-editor__inspector-head {
1184
+ flex: none;
1185
+ padding: 8px 12px;
1186
+ border-bottom: 1px solid var(--be-border);
1187
+ }
1188
+
1189
+ .builder-editor__inspector-body {
1190
+ flex: 1;
1191
+ min-height: 0;
1192
+ padding: 12px;
1193
+ // Payload keeps hidden tooltips in the DOM past the right edge. Clip the x axis.
1194
+ overflow: hidden auto;
1195
+ scrollbar-width: thin;
1196
+
1197
+ &[hidden] {
1198
+ display: none;
1199
+ }
1200
+ }
1201
+
1202
+ .builder-editor__block-head {
1203
+ display: flex;
1204
+ align-items: center;
1205
+ gap: 10px;
1206
+ margin-bottom: 10px;
1207
+ }
1208
+
1209
+ .builder-editor__block-icon {
1210
+ display: grid;
1211
+ flex: none;
1212
+ place-items: center;
1213
+ width: 32px;
1214
+ height: 32px;
1215
+ border-radius: var(--be-radius-m);
1216
+ background: var(--be-accent-soft);
1217
+ color: var(--be-accent);
1218
+ }
1219
+
1220
+ .builder-editor__block-name {
1221
+ display: flex;
1222
+ flex: 1;
1223
+ flex-direction: column;
1224
+ min-width: 0;
1225
+ }
1226
+
1227
+ // The block's name. A click renames it, so it looks like text with a quiet hover box.
1228
+ .builder-editor__block-title {
1229
+ align-self: flex-start;
1230
+ max-width: 100%;
1231
+ margin: 0 -4px;
1232
+ padding: 0 4px;
1233
+ overflow: hidden;
1234
+ border: 1px solid transparent;
1235
+ border-radius: var(--be-radius);
1236
+ background: none;
1237
+ color: var(--theme-text);
1238
+ font: inherit;
1239
+ font-size: var(--be-text-l);
1240
+ font-weight: var(--be-weight-strong);
1241
+ line-height: 1.3;
1242
+ text-align: left;
1243
+ text-overflow: ellipsis;
1244
+ white-space: nowrap;
1245
+ cursor: text;
1246
+
1247
+ &:hover {
1248
+ border-color: var(--be-border);
1249
+ }
1250
+ }
1251
+
1252
+ .builder-editor__block-name .builder-editor__rename {
1253
+ flex: none;
1254
+ height: 22px;
1255
+ font-size: var(--be-text-l);
1256
+ }
1257
+
1258
+ .builder-editor__block-problems {
1259
+ display: flex;
1260
+ gap: 8px;
1261
+ margin: 0 0 12px;
1262
+ padding: 8px 10px;
1263
+ border: 1px solid color-mix(in srgb, var(--theme-error-500) 40%, transparent);
1264
+ border-radius: var(--be-radius-m);
1265
+ background: color-mix(in srgb, var(--theme-error-500) 8%, transparent);
1266
+ color: var(--theme-text);
1267
+ font-size: var(--be-text-m);
1268
+
1269
+ > svg {
1270
+ flex: none;
1271
+ margin-top: 2px;
1272
+ color: var(--theme-error-500);
1273
+ }
1274
+
1275
+ ul {
1276
+ margin: 2px 0 0;
1277
+ padding: 0;
1278
+ list-style: none;
1279
+ }
1280
+ }
1281
+
1282
+ .builder-editor__block-problems-title {
1283
+ margin: 0;
1284
+ font-weight: var(--be-weight-strong);
1285
+ }
1286
+
1287
+ .builder-editor__block-sub {
1288
+ color: var(--be-muted);
1289
+ font-size: var(--be-text-s);
1290
+ }
1291
+
1292
+ .builder-editor__tabs {
1293
+ display: flex;
1294
+ gap: 16px;
1295
+ margin: 0 -12px 14px;
1296
+ padding: 0 12px;
1297
+ border-bottom: 1px solid var(--be-border);
1298
+ }
1299
+
1300
+ .builder-editor__tab {
1301
+ margin-bottom: -1px;
1302
+ padding: 8px 0;
1303
+ border: 0;
1304
+ border-bottom: 2px solid transparent;
1305
+ background: none;
1306
+ color: var(--be-muted);
1307
+ font-size: var(--be-text-m);
1308
+ font-weight: var(--be-weight-medium);
1309
+ cursor: pointer;
1310
+
1311
+ &:hover {
1312
+ color: var(--theme-text);
1313
+ }
1314
+
1315
+ &[aria-selected='true'] {
1316
+ border-bottom-color: var(--be-accent);
1317
+ color: var(--theme-text);
1318
+ }
1319
+ }
1320
+
1321
+ .builder-editor__fields {
1322
+ display: flex;
1323
+ flex-direction: column;
1324
+ gap: calc(var(--base) * 0.75);
1325
+ }
1326
+
1327
+ .builder-editor__empty--inspector {
1328
+ padding-top: 48px;
1329
+
1330
+ > svg {
1331
+ box-sizing: content-box;
1332
+ padding: 10px;
1333
+ border-radius: 50%;
1334
+ background: var(--theme-elevation-100);
1335
+ color: var(--be-muted);
1336
+ }
1337
+
1338
+ .builder-editor__hint {
1339
+ max-width: 260px;
1340
+ }
1341
+ }
1342
+
1343
+ .builder-editor__tips {
1344
+ display: flex;
1345
+ flex-direction: column;
1346
+ gap: 6px;
1347
+ width: 100%;
1348
+ max-width: 260px;
1349
+ margin: 18px 0 0;
1350
+ padding: 12px 0 0;
1351
+ border-top: 1px solid var(--be-border-soft);
1352
+ }
1353
+
1354
+ .builder-editor__menu.builder-styles__popover {
1355
+ // Menus outside the Styles panel do not inherit its border color.
1356
+ --bs-border: var(--be-border, var(--theme-elevation-150));
1357
+
1358
+ min-width: 200px;
1359
+ padding: 4px;
1360
+ }
1361
+
1362
+ .builder-editor__menu-item {
1363
+ display: flex;
1364
+ align-items: center;
1365
+ gap: 8px;
1366
+ width: 100%;
1367
+ height: 30px;
1368
+ padding: 0 8px;
1369
+ border: 0;
1370
+ border-radius: var(--be-radius);
1371
+ background: none;
1372
+ color: var(--theme-text);
1373
+ font: inherit;
1374
+ font-size: var(--be-text-m);
1375
+ text-align: left;
1376
+ cursor: pointer;
1377
+
1378
+ svg {
1379
+ color: var(--be-muted);
1380
+ }
1381
+
1382
+ &:hover:not(:disabled) {
1383
+ background: var(--be-hover);
1384
+ }
1385
+
1386
+ &:disabled {
1387
+ opacity: 0.4;
1388
+ cursor: default;
1389
+ }
1390
+ }
1391
+
1392
+ // A disabled destructive item is neutral: red says "this acts", and it cannot act.
1393
+ .builder-editor__menu-item--danger:not(:disabled) {
1394
+ color: var(--theme-error-500);
1395
+
1396
+ svg {
1397
+ color: currentColor;
1398
+ }
1399
+ }
1400
+
1401
+ .builder-editor__menu-meta {
1402
+ margin: 4px 0 0;
1403
+ padding: 6px 8px 4px;
1404
+ border-top: 1px solid var(--be-border-soft);
1405
+ color: var(--be-muted);
1406
+ font-size: var(--be-text-s);
1407
+ }
1408
+
1409
+ // ---------------------------------------------------------------------------
1410
+ // Stage and frame
1411
+ // ---------------------------------------------------------------------------
1412
+
1413
+ .builder-editor__stage {
1414
+ position: relative;
1415
+ display: flex;
1416
+ flex: 1;
1417
+ flex-direction: column;
1418
+ min-width: 0;
1419
+ background-color: var(--theme-elevation-50);
1420
+ background-image: radial-gradient(var(--theme-elevation-150) 1px, transparent 1px);
1421
+ background-size: 16px 16px;
1422
+ }
1423
+
1424
+ .builder-editor__viewport {
1425
+ position: relative;
1426
+ display: flex;
1427
+ flex: 1;
1428
+ // "safe": a frame wider than the stage (a fixed zoom) starts at the left edge and scrolls.
1429
+ justify-content: safe center;
1430
+ align-items: flex-start;
1431
+ min-height: 0;
1432
+ // Sideways scrolling only when the frame is wider than the stage (Canvas.tsx sets `data-scroll`).
1433
+ overflow: hidden;
1434
+
1435
+ &[data-scroll] {
1436
+ overflow-x: auto;
1437
+ }
1438
+ }
1439
+
1440
+ .builder-editor__frame-wrap {
1441
+ position: relative;
1442
+ flex: none;
1443
+ }
1444
+
1445
+ .builder-editor__frame {
1446
+ position: absolute;
1447
+ top: 0;
1448
+ left: 0;
1449
+ overflow: hidden;
1450
+ border-radius: var(--be-radius-m);
1451
+ background: #fff;
1452
+ box-shadow:
1453
+ 0 0 0 1px var(--be-border),
1454
+ 0 12px 40px rgb(0 0 0 / 0.14),
1455
+ 0 2px 6px rgb(0 0 0 / 0.08);
1456
+ transform-origin: 0 0;
1457
+ transition: transform 280ms var(--be-ease);
1458
+ }
1459
+
1460
+ .builder-editor__iframe {
1461
+ display: block;
1462
+ width: 100%;
1463
+ height: 100%;
1464
+ border: 0;
1465
+ }
1466
+
1467
+ .builder-editor__notice {
1468
+ position: absolute;
1469
+ z-index: 5;
1470
+ bottom: 20px;
1471
+ left: 50%;
1472
+ display: inline-flex;
1473
+ align-items: center;
1474
+ gap: 6px;
1475
+ padding: 6px 12px;
1476
+ border-radius: 16px;
1477
+ background: var(--theme-elevation-900);
1478
+ color: var(--theme-elevation-0);
1479
+ font-size: var(--be-text-m);
1480
+ font-weight: var(--be-weight-medium);
1481
+ pointer-events: none;
1482
+ transform: translateX(-50%);
1483
+ box-shadow: var(--be-shadow);
1484
+ animation: builder-fade-in 160ms var(--be-ease);
1485
+ }
1486
+
1487
+ .builder-editor__statusbar {
1488
+ display: flex;
1489
+ flex: none;
1490
+ align-items: center;
1491
+ justify-content: space-between;
1492
+ gap: 16px;
1493
+ height: 34px;
1494
+ padding: 0 8px 0 10px;
1495
+ border-top: 1px solid var(--be-border);
1496
+ background: var(--be-panel);
1497
+ font-size: var(--be-text-s);
1498
+ }
1499
+
1500
+ .builder-editor__breadcrumb {
1501
+ display: flex;
1502
+ align-items: center;
1503
+ min-width: 0;
1504
+ overflow: hidden;
1505
+ white-space: nowrap;
1506
+ }
1507
+
1508
+ .builder-editor__crumb-item {
1509
+ display: inline-flex;
1510
+ flex: none;
1511
+ align-items: center;
1512
+
1513
+ // Long paths: earlier items shrink first.
1514
+ &:not(:last-child) {
1515
+ flex-shrink: 1;
1516
+ min-width: 0;
1517
+ }
1518
+ }
1519
+
1520
+ .builder-editor__crumb-sep {
1521
+ flex: none;
1522
+ margin: 0 1px;
1523
+ color: var(--be-subtle);
1524
+ }
1525
+
1526
+ .builder-editor__crumb {
1527
+ display: inline-flex;
1528
+ align-items: center;
1529
+ gap: 5px;
1530
+ min-width: 0;
1531
+ height: 24px;
1532
+ padding: 0 6px;
1533
+ overflow: hidden;
1534
+ border: 0;
1535
+ border-radius: var(--be-radius);
1536
+ background: none;
1537
+ color: var(--be-muted);
1538
+ font-size: var(--be-text-s);
1539
+ text-overflow: ellipsis;
1540
+ cursor: pointer;
1541
+
1542
+ &:hover {
1543
+ background: var(--be-hover);
1544
+ color: var(--theme-text);
1545
+ }
1546
+
1547
+ &[aria-current='true'] {
1548
+ color: var(--theme-text);
1549
+ font-weight: var(--be-weight-strong);
1550
+
1551
+ svg {
1552
+ color: var(--be-accent);
1553
+ }
1554
+ }
1555
+ }
1556
+
1557
+ .builder-editor__crumb-empty {
1558
+ display: inline-flex;
1559
+ align-items: center;
1560
+ gap: 6px;
1561
+ padding: 0 6px;
1562
+ color: var(--be-muted);
1563
+ }
1564
+
1565
+ .builder-editor__frame-info {
1566
+ display: inline-flex;
1567
+ flex: none;
1568
+ align-items: center;
1569
+ gap: 8px;
1570
+ color: var(--be-muted);
1571
+ font-variant-numeric: tabular-nums;
1572
+ }
1573
+
1574
+ .builder-editor__zoom-control {
1575
+ display: inline-flex;
1576
+ align-items: center;
1577
+ gap: 2px;
1578
+ }
1579
+
1580
+ .builder-editor__zoom {
1581
+ min-width: 44px;
1582
+ height: 22px;
1583
+ padding: 0 6px;
1584
+ border: 0;
1585
+ border-radius: var(--be-radius);
1586
+ background: var(--theme-elevation-100);
1587
+ color: var(--theme-elevation-800);
1588
+ font: inherit;
1589
+ font-size: var(--be-text-s);
1590
+ font-weight: var(--be-weight-strong);
1591
+ font-variant-numeric: tabular-nums;
1592
+ cursor: pointer;
1593
+
1594
+ &:hover {
1595
+ background: var(--theme-elevation-150);
1596
+ }
1597
+
1598
+ &:focus-visible {
1599
+ outline: 2px solid var(--be-accent);
1600
+ outline-offset: 1px;
1601
+ }
1602
+ }
1603
+
1604
+ // ---------------------------------------------------------------------------
1605
+ // Overlay (iframe coordinates). `--be-inv` is 1 / zoom: lines and chips keep their screen size.
1606
+ // ---------------------------------------------------------------------------
1607
+
1608
+ .builder-editor__overlay {
1609
+ --be-px: calc(1px * var(--be-inv, 1));
1610
+
1611
+ position: absolute;
1612
+ inset: 0;
1613
+ overflow: hidden;
1614
+ pointer-events: none;
1615
+ }
1616
+
1617
+ .builder-editor__hover,
1618
+ .builder-editor__selection,
1619
+ .builder-editor__parent-hint,
1620
+ .builder-editor__source,
1621
+ .builder-editor__remote,
1622
+ .builder-editor__drop {
1623
+ position: absolute;
1624
+ box-sizing: border-box;
1625
+ }
1626
+
1627
+ .builder-editor__hover {
1628
+ box-shadow: inset 0 0 0 var(--be-px) var(--be-accent);
1629
+ }
1630
+
1631
+ // A component (`data-component`): its hover and selection outline, name tag, action bar and
1632
+ // Layers row use the component color instead of the accent.
1633
+ :is(.builder-editor__hover, .builder-editor__selection, .builder-editor__actions, .builder-editor__row)[data-component] {
1634
+ --be-accent: var(--be-component);
1635
+ --be-accent-strong: var(--be-component-solid);
1636
+ --be-accent-soft: color-mix(in srgb, var(--be-component) 14%, transparent);
1637
+ --be-accent-text: var(--be-component-text);
1638
+ --be-accent-solid: var(--be-component-solid);
1639
+ }
1640
+
1641
+ .builder-editor__parent-hint {
1642
+ outline: var(--be-px) dashed color-mix(in srgb, var(--be-accent) 55%, transparent);
1643
+ outline-offset: calc(var(--be-px) * -1);
1644
+ }
1645
+
1646
+ .builder-editor__selection {
1647
+ box-shadow: inset 0 0 0 calc(var(--be-px) * 2) var(--be-accent);
1648
+ }
1649
+
1650
+ .builder-editor__selection--hidden {
1651
+ box-shadow: none;
1652
+ outline: calc(var(--be-px) * 2) dashed var(--be-accent);
1653
+ outline-offset: calc(var(--be-px) * -2);
1654
+ }
1655
+
1656
+ .builder-editor__source {
1657
+ background: repeating-linear-gradient(
1658
+ 45deg,
1659
+ color-mix(in srgb, var(--be-accent) 14%, transparent) 0 6px,
1660
+ transparent 6px 12px
1661
+ );
1662
+ }
1663
+
1664
+ // The name tag and the action bar draw over the insert "+" and its line (z-index 3), so an
1665
+ // insert spot on the selected block's edge never cuts through them.
1666
+ .builder-editor__tag {
1667
+ position: absolute;
1668
+ top: 0;
1669
+ left: 0;
1670
+ z-index: 4;
1671
+ display: inline-flex;
1672
+ align-items: center;
1673
+ gap: 4px;
1674
+ height: 20px;
1675
+ padding: 0 7px 0 5px;
1676
+ border-radius: 4px 4px 0 0;
1677
+ background: var(--be-accent-solid);
1678
+ color: var(--be-accent-fg);
1679
+ font-size: var(--be-text-s);
1680
+ font-weight: var(--be-weight-strong);
1681
+ line-height: 1;
1682
+ white-space: nowrap;
1683
+ transform-origin: 0 0;
1684
+ transform: scale(var(--be-inv, 1)) translateY(-100%);
1685
+ }
1686
+
1687
+ .builder-editor__tag--hover {
1688
+ background: color-mix(in srgb, var(--be-accent) 82%, #000);
1689
+ font-weight: var(--be-weight-medium);
1690
+ }
1691
+
1692
+ .builder-editor__tag--inside {
1693
+ border-radius: 0 0 4px;
1694
+ transform: scale(var(--be-inv, 1));
1695
+ }
1696
+
1697
+ // Outside, under the block: used when there is no room above, so the tag does not cover the
1698
+ // block's first line.
1699
+ .builder-editor__tag--below {
1700
+ top: 100%;
1701
+ border-radius: 0 0 4px 4px;
1702
+ transform: scale(var(--be-inv, 1));
1703
+ }
1704
+
1705
+ .builder-editor__actions {
1706
+ position: absolute;
1707
+ z-index: 4;
1708
+ display: flex;
1709
+ align-items: center;
1710
+ gap: 1px;
1711
+ height: 26px;
1712
+ margin-top: -2px;
1713
+ padding: 2px;
1714
+ border-radius: 6px;
1715
+ background: var(--be-accent);
1716
+ box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
1717
+ pointer-events: auto;
1718
+ transform-origin: 0 0;
1719
+ transform: scale(var(--be-inv, 1)) translate(-100%, -100%);
1720
+ }
1721
+
1722
+ .builder-editor__actions--inside {
1723
+ margin-top: 4px;
1724
+ margin-left: -4px;
1725
+ transform: scale(var(--be-inv, 1)) translate(-100%, 0);
1726
+ }
1727
+
1728
+ // Narrow blocks: under the block, at its left edge, so the bar never covers the name tag.
1729
+ .builder-editor__actions--below {
1730
+ margin-top: 4px;
1731
+ transform: scale(var(--be-inv, 1));
1732
+ }
1733
+
1734
+ .builder-editor__menu-keys {
1735
+ margin-left: auto;
1736
+ padding-left: 12px;
1737
+ border: 0;
1738
+ background: none;
1739
+ color: var(--be-muted);
1740
+ font-size: var(--be-text-s);
1741
+ }
1742
+
1743
+ // Blocks that stopped the last publish.
1744
+ .builder-editor__problem-box {
1745
+ position: absolute;
1746
+ pointer-events: none;
1747
+ outline: calc(var(--be-px) * 2) dashed var(--theme-error-500);
1748
+ outline-offset: calc(var(--be-px) * -2);
1749
+ background: color-mix(in srgb, var(--theme-error-500) 6%, transparent);
1750
+ }
1751
+
1752
+ .builder-editor__problem-tag {
1753
+ position: absolute;
1754
+ right: 0;
1755
+ bottom: 0;
1756
+ display: inline-flex;
1757
+ align-items: center;
1758
+ gap: 4px;
1759
+ max-width: 280px;
1760
+ height: 20px;
1761
+ padding: 0 7px 0 5px;
1762
+ overflow: hidden;
1763
+ border-radius: 4px 0 0;
1764
+ background: var(--theme-error-500);
1765
+ color: #fff;
1766
+ font-size: var(--be-text-s);
1767
+ font-weight: var(--be-weight-strong);
1768
+ line-height: 1;
1769
+ text-overflow: ellipsis;
1770
+ white-space: nowrap;
1771
+ transform-origin: 100% 100%;
1772
+ transform: scale(var(--be-inv, 1));
1773
+
1774
+ svg {
1775
+ flex: none;
1776
+ }
1777
+ }
1778
+
1779
+ .builder-editor__actions-sep {
1780
+ width: 1px;
1781
+ height: 14px;
1782
+ margin: 0 2px;
1783
+ background: rgb(255 255 255 / 0.3);
1784
+ }
1785
+
1786
+ .builder-editor__action {
1787
+ display: grid;
1788
+ place-items: center;
1789
+ width: 22px;
1790
+ height: 22px;
1791
+ padding: 0;
1792
+ border: 0;
1793
+ border-radius: 4px;
1794
+ background: transparent;
1795
+ color: var(--be-accent-fg);
1796
+ cursor: pointer;
1797
+
1798
+ &:hover:not(:disabled) {
1799
+ background: rgb(255 255 255 / 0.2);
1800
+ }
1801
+
1802
+ &:disabled {
1803
+ opacity: 0.4;
1804
+ cursor: default;
1805
+ }
1806
+ }
1807
+
1808
+ .builder-editor__action--danger:hover:not(:disabled) {
1809
+ background: var(--theme-error-500);
1810
+ }
1811
+
1812
+ // A button with a word next to its icon ("Edit fields" on a page region).
1813
+ .builder-editor__action--text {
1814
+ display: inline-flex;
1815
+ gap: 4px;
1816
+ width: auto;
1817
+ padding: 0 6px;
1818
+ font-size: var(--be-text-s);
1819
+ font-weight: var(--be-weight-medium);
1820
+ white-space: nowrap;
1821
+ }
1822
+
1823
+ // Page regions: fixed parts of the page frame, drawn dashed so they read as "not a block".
1824
+ .builder-editor__hover--region {
1825
+ box-shadow: none;
1826
+ outline: var(--be-px) dashed var(--be-accent);
1827
+ outline-offset: calc(var(--be-px) * -1);
1828
+ }
1829
+
1830
+ .builder-editor__selection--region:not(.builder-editor__selection--editing) {
1831
+ box-shadow: none;
1832
+ outline: calc(var(--be-px) * 2) dashed var(--be-accent);
1833
+ outline-offset: calc(var(--be-px) * -2);
1834
+ }
1835
+
1836
+ .builder-editor__tag-note {
1837
+ margin-left: 2px;
1838
+ opacity: 0.75;
1839
+ font-weight: var(--be-weight-medium);
1840
+ }
1841
+
1842
+ .builder-region__rows {
1843
+ display: grid;
1844
+ gap: 1px;
1845
+ padding: 4px 6px;
1846
+ border-bottom: 1px solid var(--theme-elevation-100);
1847
+ }
1848
+
1849
+ .builder-region__row {
1850
+ width: 100%;
1851
+ border: 0;
1852
+ background: transparent;
1853
+ font: inherit;
1854
+ text-align: left;
1855
+ }
1856
+
1857
+ .builder-region__fields {
1858
+ display: grid;
1859
+ gap: 2px;
1860
+ margin: 0 0 12px;
1861
+ padding: 0;
1862
+ list-style: none;
1863
+ }
1864
+
1865
+ .builder-editor__handle {
1866
+ cursor: grab;
1867
+ touch-action: none;
1868
+ }
1869
+
1870
+ // Inline text editing on the canvas.
1871
+ .builder-editor__selection--editing {
1872
+ box-shadow:
1873
+ inset 0 0 0 calc(var(--be-px) * 2) var(--be-accent),
1874
+ 0 0 0 calc(var(--be-px) * 4) color-mix(in srgb, var(--be-accent) 22%, transparent);
1875
+ }
1876
+
1877
+ .builder-editor__tag--editing {
1878
+ font-weight: var(--be-weight-medium);
1879
+ }
1880
+
1881
+ .builder-editor__inline-toolbar {
1882
+ position: absolute;
1883
+ display: flex;
1884
+ flex-direction: column;
1885
+ align-items: flex-start;
1886
+ gap: 4px;
1887
+ pointer-events: auto;
1888
+ transform-origin: 0 0;
1889
+ transform: scale(var(--be-inv, 1));
1890
+ }
1891
+
1892
+ // InlineToolbar places it (placement.ts). Above the text, its bottom edge is the anchor.
1893
+ .builder-editor__inline-toolbar--above {
1894
+ flex-direction: column-reverse;
1895
+ transform: scale(var(--be-inv, 1)) translateY(-100%);
1896
+ }
1897
+
1898
+ .builder-editor__inline-row {
1899
+ display: flex;
1900
+ align-items: center;
1901
+ gap: 1px;
1902
+ height: 30px;
1903
+ padding: 3px;
1904
+ border-radius: 6px;
1905
+ background: var(--be-accent);
1906
+ color: var(--be-accent-fg);
1907
+ box-shadow: 0 2px 10px rgb(0 0 0 / 0.22);
1908
+ white-space: nowrap;
1909
+ }
1910
+
1911
+ .builder-editor__inline-button {
1912
+ display: grid;
1913
+ place-items: center;
1914
+ min-width: 24px;
1915
+ height: 24px;
1916
+ padding: 0 4px;
1917
+ border: 0;
1918
+ border-radius: 4px;
1919
+ background: transparent;
1920
+ color: inherit;
1921
+ font-size: var(--be-text-m);
1922
+ line-height: 1;
1923
+ cursor: pointer;
1924
+
1925
+ &:hover {
1926
+ background: rgb(255 255 255 / 0.18);
1927
+ }
1928
+
1929
+ &[aria-pressed='true'] {
1930
+ background: rgb(255 255 255 / 0.32);
1931
+ }
1932
+
1933
+ code {
1934
+ font-size: var(--be-text-s);
1935
+ }
1936
+ }
1937
+
1938
+ .builder-editor__inline-glyph {
1939
+ font-size: var(--be-text-m);
1940
+ font-weight: var(--be-weight-strong);
1941
+ }
1942
+
1943
+ .builder-editor__inline-link {
1944
+ display: flex;
1945
+ flex-direction: column;
1946
+ gap: 8px;
1947
+ width: 300px;
1948
+ padding: 10px;
1949
+ border: 1px solid var(--theme-elevation-150);
1950
+ border-radius: 6px;
1951
+ background: var(--theme-elevation-0);
1952
+ color: var(--theme-text);
1953
+ box-shadow: 0 4px 16px rgb(0 0 0 / 0.18);
1954
+ font-size: var(--be-text-m);
1955
+ }
1956
+
1957
+ .builder-editor__inline-url {
1958
+ width: 100%;
1959
+ height: 32px;
1960
+ padding: 0 8px;
1961
+ border: 1px solid var(--theme-elevation-150);
1962
+ border-radius: 4px;
1963
+ background: var(--theme-input-bg, var(--theme-elevation-0));
1964
+ color: var(--theme-text);
1965
+ font: inherit;
1966
+
1967
+ &:focus {
1968
+ border-color: var(--be-accent);
1969
+ outline: none;
1970
+ }
1971
+ }
1972
+
1973
+ .builder-editor__inline-note {
1974
+ margin: 0;
1975
+ color: var(--theme-elevation-600);
1976
+ }
1977
+
1978
+ .builder-editor__inline-actions {
1979
+ display: flex;
1980
+ justify-content: flex-end;
1981
+ gap: 6px;
1982
+ }
1983
+
1984
+ .builder-editor__inline-text-button {
1985
+ height: 28px;
1986
+ padding: 0 10px;
1987
+ border: 1px solid var(--theme-elevation-150);
1988
+ border-radius: 4px;
1989
+ background: var(--theme-elevation-0);
1990
+ color: var(--theme-text);
1991
+ font: inherit;
1992
+ cursor: pointer;
1993
+
1994
+ &:hover {
1995
+ background: var(--theme-elevation-50);
1996
+ }
1997
+ }
1998
+
1999
+ .builder-editor__inline-text-button--primary {
2000
+ border-color: var(--be-accent);
2001
+ background: var(--be-accent);
2002
+ color: var(--be-accent-fg);
2003
+
2004
+ &:hover {
2005
+ background: color-mix(in srgb, var(--be-accent) 88%, #000);
2006
+ }
2007
+ }
2008
+
2009
+ .builder-editor__drop--line {
2010
+ border-radius: 2px;
2011
+ background: var(--be-accent);
2012
+ box-shadow: 0 0 0 var(--be-px) color-mix(in srgb, var(--be-accent) 30%, transparent);
2013
+ }
2014
+
2015
+ .builder-editor__drop--box {
2016
+ border-radius: 2px;
2017
+ outline: calc(var(--be-px) * 2) solid var(--be-accent);
2018
+ outline-offset: calc(var(--be-px) * -2);
2019
+ background: color-mix(in srgb, var(--be-accent) 10%, transparent);
2020
+ }
2021
+
2022
+ .builder-editor__drop-label {
2023
+ position: absolute;
2024
+ top: 0;
2025
+ left: 0;
2026
+ display: inline-flex;
2027
+ align-items: center;
2028
+ gap: 4px;
2029
+ height: 20px;
2030
+ padding: 0 7px 0 5px;
2031
+ border-radius: 0 0 4px;
2032
+ background: var(--be-accent);
2033
+ color: var(--be-accent-fg);
2034
+ font-size: var(--be-text-s);
2035
+ font-weight: var(--be-weight-strong);
2036
+ white-space: nowrap;
2037
+ transform-origin: 0 0;
2038
+ transform: scale(var(--be-inv, 1));
2039
+ }
2040
+
2041
+ // Outline drop indicator (admin client coordinates).
2042
+ .builder-editor__drop--fixed {
2043
+ position: fixed;
2044
+ z-index: 1000;
2045
+ pointer-events: none;
2046
+
2047
+ &.builder-editor__drop--line::before {
2048
+ content: '';
2049
+ position: absolute;
2050
+ top: 50%;
2051
+ left: -3px;
2052
+ width: 6px;
2053
+ height: 6px;
2054
+ border: 2px solid var(--be-accent);
2055
+ border-radius: 50%;
2056
+ background: var(--be-panel, var(--theme-bg));
2057
+ transform: translateY(-50%);
2058
+ }
2059
+
2060
+ &.builder-editor__drop--box {
2061
+ outline-width: 2px;
2062
+ outline-offset: -2px;
2063
+ border-radius: var(--style-radius-s, 4px);
2064
+ }
2065
+ }
2066
+
2067
+ .builder-editor__ghost {
2068
+ position: fixed;
2069
+ z-index: 1001;
2070
+ display: inline-flex;
2071
+ align-items: center;
2072
+ gap: 6px;
2073
+ height: 28px;
2074
+ padding: 0 10px 0 8px;
2075
+ border-radius: 6px;
2076
+ background: var(--theme-success-500);
2077
+ color: #fff;
2078
+ font-family: var(--font-body);
2079
+ font-size: var(--be-text-m);
2080
+ font-weight: var(--be-weight-strong);
2081
+ pointer-events: none;
2082
+ box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
2083
+ }
2084
+
2085
+ .builder-editor__ghost--refused {
2086
+ background: var(--theme-elevation-600);
2087
+ }
2088
+
2089
+ .builder-editor__ghost-note {
2090
+ font-weight: var(--be-weight-regular);
2091
+ opacity: 0.85;
2092
+
2093
+ &::before {
2094
+ content: '·';
2095
+ margin-right: 6px;
2096
+ }
2097
+ }
2098
+
2099
+ // The layout field in Payload's edit view: admin/layoutField.scss.
2100
+
2101
+ // Live editing: changes from AI agents and other editors.
2102
+ .builder-editor {
2103
+ --be-remote: #8b5cf6;
2104
+ }
2105
+
2106
+ @keyframes builder-editor-remote-flash {
2107
+ from { background: color-mix(in srgb, var(--be-remote) 22%, transparent); }
2108
+ to { background: transparent; }
2109
+ }
2110
+
2111
+ .builder-editor__remote {
2112
+ pointer-events: none;
2113
+ box-shadow: inset 0 0 0 calc(var(--be-px) * 2) var(--be-remote);
2114
+ animation: builder-editor-remote-flash 1.5s ease-out both;
2115
+ }
2116
+
2117
+ .builder-editor__tag--remote {
2118
+ background: var(--be-remote);
2119
+ color: #fff;
2120
+ }
2121
+
2122
+ .builder-editor__live {
2123
+ display: inline-flex;
2124
+ flex: 0 1 auto;
2125
+ min-width: 0;
2126
+ align-items: center;
2127
+ gap: 8px;
2128
+ margin-right: 4px;
2129
+ font-size: var(--be-text-m);
2130
+ }
2131
+
2132
+ .builder-editor__live-activity {
2133
+ display: inline-flex;
2134
+ flex: 0 1 auto;
2135
+ align-items: center;
2136
+ gap: 5px;
2137
+ max-width: 200px;
2138
+ min-width: 0;
2139
+ overflow: hidden;
2140
+ text-overflow: ellipsis;
2141
+ padding: 2px 8px;
2142
+ border-radius: 999px;
2143
+ background: color-mix(in srgb, var(--be-peer, var(--be-remote)) 16%, transparent);
2144
+ color: var(--theme-text);
2145
+ white-space: nowrap;
2146
+ animation: builder-fade-in 160ms var(--be-ease);
2147
+ }
2148
+
2149
+ .builder-editor__live-activity svg {
2150
+ color: var(--be-peer, var(--be-remote));
2151
+ }
2152
+
2153
+ .builder-editor__live-error {
2154
+ max-width: 220px;
2155
+ overflow: hidden;
2156
+ color: var(--theme-error-500);
2157
+ text-overflow: ellipsis;
2158
+ white-space: nowrap;
2159
+ }
2160
+
2161
+ // ---------------------------------------------------------------------------
2162
+ // Multiplayer: avatars, cursors, others' selections, follow mode.
2163
+ // `--be-peer` is the collaborator's color, set inline.
2164
+ // ---------------------------------------------------------------------------
2165
+
2166
+ .builder-presence {
2167
+ display: inline-flex;
2168
+ align-items: center;
2169
+ min-width: 0;
2170
+ margin: 0;
2171
+ padding: 0 0 0 6px;
2172
+ border: 0;
2173
+ }
2174
+
2175
+ .builder-presence__avatar {
2176
+ position: relative;
2177
+ display: inline-grid;
2178
+ flex: none;
2179
+ place-items: center;
2180
+ width: 26px;
2181
+ height: 26px;
2182
+ margin: 0 0 0 -6px;
2183
+ padding: 0;
2184
+ border: 2px solid var(--theme-bg);
2185
+ border-radius: 50%;
2186
+ background: var(--be-peer, var(--theme-elevation-300));
2187
+ color: #fff;
2188
+ font: 700 10px/1 var(--font-body);
2189
+ letter-spacing: 0.02em;
2190
+ cursor: pointer;
2191
+ transition:
2192
+ transform 160ms var(--be-ease),
2193
+ box-shadow 160ms var(--be-ease);
2194
+
2195
+ &:hover,
2196
+ &:focus-visible {
2197
+ z-index: 2;
2198
+ transform: translateY(-1px);
2199
+ }
2200
+
2201
+ &[aria-pressed='true'] {
2202
+ z-index: 1;
2203
+ box-shadow: 0 0 0 2px var(--be-peer);
2204
+ }
2205
+ }
2206
+
2207
+ .builder-presence__avatar--ai {
2208
+ background: linear-gradient(135deg, var(--be-peer), color-mix(in srgb, var(--be-peer) 55%, #fff));
2209
+ }
2210
+
2211
+ .builder-presence__avatar--more {
2212
+ background: var(--theme-elevation-200);
2213
+ color: var(--theme-text);
2214
+ cursor: default;
2215
+ }
2216
+
2217
+ @keyframes builder-cursor-in {
2218
+ from {
2219
+ opacity: 0;
2220
+ }
2221
+ }
2222
+
2223
+ .builder-cursor {
2224
+ position: absolute;
2225
+ z-index: 4;
2226
+ top: 0;
2227
+ left: 0;
2228
+ pointer-events: none;
2229
+ // Updates arrive about 20 times a second: easing between them makes the motion smooth.
2230
+ transition: transform 120ms linear;
2231
+ will-change: transform;
2232
+ animation: builder-cursor-in 200ms ease-out;
2233
+ }
2234
+
2235
+ .builder-cursor__inner {
2236
+ position: absolute;
2237
+ display: block;
2238
+ transform-origin: 0 0;
2239
+ transform: scale(var(--be-inv, 1));
2240
+ }
2241
+
2242
+ .builder-cursor__arrow {
2243
+ display: block;
2244
+ overflow: visible;
2245
+ // The tip of the arrowhead sits on the pointer position.
2246
+ margin: -2px 0 0 -2px;
2247
+ filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.35));
2248
+
2249
+ path {
2250
+ fill: var(--be-peer);
2251
+ stroke: #fff;
2252
+ stroke-width: 1.5;
2253
+ stroke-linejoin: round;
2254
+ paint-order: stroke;
2255
+ }
2256
+ }
2257
+
2258
+ .builder-cursor__name {
2259
+ position: absolute;
2260
+ top: 15px;
2261
+ left: 13px;
2262
+ display: inline-flex;
2263
+ align-items: center;
2264
+ gap: 4px;
2265
+ padding: 3px 8px;
2266
+ border-radius: 3px 9px 9px;
2267
+ background: var(--be-peer);
2268
+ color: #fff;
2269
+ font: 600 11px/1.2 var(--font-body);
2270
+ white-space: nowrap;
2271
+ box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
2272
+ }
2273
+
2274
+ .builder-peer-selection {
2275
+ position: absolute;
2276
+ box-sizing: border-box;
2277
+ pointer-events: none;
2278
+ box-shadow: 0 0 0 calc(var(--be-px) * 2) var(--be-peer);
2279
+ }
2280
+
2281
+ // Name tags at the bottom left: the own selection uses the top edge.
2282
+ .builder-peer-selection__tags {
2283
+ position: absolute;
2284
+ top: 100%;
2285
+ left: 0;
2286
+ display: flex;
2287
+ gap: 2px;
2288
+ transform-origin: 0 0;
2289
+ transform: scale(var(--be-inv, 1)) translateY(2px);
2290
+ }
2291
+
2292
+ .builder-peer-selection__tag {
2293
+ display: inline-flex;
2294
+ align-items: center;
2295
+ gap: 3px;
2296
+ height: 18px;
2297
+ padding: 0 6px;
2298
+ border-radius: 0 0 4px 4px;
2299
+ background: var(--be-peer);
2300
+ color: #fff;
2301
+ font-size: var(--be-text-s);
2302
+ font-weight: var(--be-weight-strong);
2303
+ line-height: 1;
2304
+ white-space: nowrap;
2305
+ }
2306
+
2307
+ .builder-peer-dots {
2308
+ display: inline-flex;
2309
+ flex: none;
2310
+ gap: 3px;
2311
+ margin-left: 6px;
2312
+ }
2313
+
2314
+ .builder-peer-dots__dot {
2315
+ width: 7px;
2316
+ height: 7px;
2317
+ border-radius: 50%;
2318
+ background: var(--be-peer);
2319
+ box-shadow: 0 0 0 1.5px var(--theme-bg);
2320
+ }
2321
+
2322
+ .builder-editing-banner {
2323
+ display: flex;
2324
+ align-items: center;
2325
+ gap: 8px;
2326
+ margin-bottom: 10px;
2327
+ padding: 7px 10px;
2328
+ border: 1px solid color-mix(in srgb, var(--be-peer) 35%, transparent);
2329
+ border-radius: var(--be-radius-m);
2330
+ background: color-mix(in srgb, var(--be-peer) 10%, transparent);
2331
+ color: var(--theme-text);
2332
+ font-size: var(--be-text-m);
2333
+ line-height: 1.35;
2334
+ animation: builder-fade-in 160ms var(--be-ease);
2335
+
2336
+ strong {
2337
+ font-weight: var(--be-weight-strong);
2338
+ }
2339
+ }
2340
+
2341
+ .builder-editing-banner__avatars {
2342
+ display: inline-flex;
2343
+ flex: none;
2344
+ }
2345
+
2346
+ .builder-editing-banner__avatar {
2347
+ display: inline-grid;
2348
+ place-items: center;
2349
+ width: 20px;
2350
+ height: 20px;
2351
+ margin-left: -4px;
2352
+ border: 1.5px solid var(--theme-bg);
2353
+ border-radius: 50%;
2354
+ background: var(--be-peer);
2355
+ color: #fff;
2356
+ font-size: 9px;
2357
+ font-weight: 700;
2358
+
2359
+ &:first-child {
2360
+ margin-left: 0;
2361
+ }
2362
+ }
2363
+
2364
+ .builder-follow {
2365
+ position: absolute;
2366
+ z-index: 6;
2367
+ inset: 0;
2368
+ border: 2px solid var(--be-peer);
2369
+ pointer-events: none;
2370
+ animation: builder-tip-in 160ms ease-out;
2371
+ }
2372
+
2373
+ .builder-follow__chip {
2374
+ position: absolute;
2375
+ top: 8px;
2376
+ left: 50%;
2377
+ display: inline-flex;
2378
+ align-items: center;
2379
+ gap: 8px;
2380
+ padding: 4px 4px 4px 12px;
2381
+ border-radius: 999px;
2382
+ background: var(--be-peer);
2383
+ color: #fff;
2384
+ font-size: var(--be-text-m);
2385
+ font-weight: var(--be-weight-strong);
2386
+ white-space: nowrap;
2387
+ pointer-events: auto;
2388
+ transform: translateX(-50%);
2389
+ box-shadow: var(--be-shadow);
2390
+ }
2391
+
2392
+ .builder-follow__hint {
2393
+ font-weight: var(--be-weight-regular);
2394
+ opacity: 0.8;
2395
+ }
2396
+
2397
+ .builder-follow__stop {
2398
+ display: grid;
2399
+ place-items: center;
2400
+ width: 20px;
2401
+ height: 20px;
2402
+ padding: 0;
2403
+ border: 0;
2404
+ border-radius: 50%;
2405
+ background: rgb(255 255 255 / 0.2);
2406
+ color: inherit;
2407
+ cursor: pointer;
2408
+
2409
+ &:hover {
2410
+ background: rgb(255 255 255 / 0.35);
2411
+ }
2412
+ }
2413
+
2414
+ .builder-editor__notice--warning svg {
2415
+ color: var(--theme-warning-500, #f59e0b);
2416
+ }
2417
+
2418
+ // ---------------------------------------------------------------------------
2419
+ // Canvas "+" between blocks (insert/InsertHandle.tsx). Overlay coordinates: the button keeps
2420
+ // its screen size at any zoom (`--be-inv`).
2421
+ // ---------------------------------------------------------------------------
2422
+
2423
+ .builder-editor__overlay .builder-editor__insert-plus {
2424
+ position: absolute;
2425
+ z-index: 3;
2426
+ display: grid;
2427
+ place-items: center;
2428
+ width: 20px;
2429
+ height: 20px;
2430
+ padding: 0;
2431
+ border: 2px solid var(--theme-bg);
2432
+ border-radius: 50%;
2433
+ background: var(--be-accent);
2434
+ color: var(--be-accent-fg);
2435
+ box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
2436
+ cursor: pointer;
2437
+ pointer-events: auto;
2438
+ transform: translate(-50%, -50%) scale(var(--be-inv, 1));
2439
+ animation: builder-plus-in 120ms var(--be-ease) both;
2440
+ transition: background-color 120ms ease, box-shadow 120ms ease;
2441
+
2442
+ &:hover,
2443
+ &[aria-expanded='true'] {
2444
+ background: var(--be-accent-strong);
2445
+ box-shadow: 0 0 0 3px var(--be-accent-soft), 0 1px 4px rgb(0 0 0 / 0.3);
2446
+ }
2447
+
2448
+ &:focus-visible {
2449
+ outline: 2px solid var(--be-accent);
2450
+ outline-offset: 2px;
2451
+ }
2452
+
2453
+ svg {
2454
+ stroke-width: 2.25;
2455
+ }
2456
+ }
2457
+
2458
+ @keyframes builder-plus-in {
2459
+ from {
2460
+ opacity: 0;
2461
+ transform: translate(-50%, -50%) scale(calc(var(--be-inv, 1) * 0.6));
2462
+ }
2463
+ }
2464
+
2465
+ .builder-editor__insert-mark {
2466
+ position: absolute;
2467
+ z-index: 3;
2468
+ box-sizing: border-box;
2469
+ pointer-events: none;
2470
+ }
2471
+
2472
+ .builder-editor__insert-mark--between {
2473
+ background: var(--be-accent);
2474
+ }
2475
+
2476
+ .builder-editor__insert-mark--empty {
2477
+ outline: calc(var(--be-px) * 2) dashed var(--be-accent);
2478
+ outline-offset: calc(var(--be-px) * -2);
2479
+ background: var(--be-accent-soft);
2480
+ }
2481
+
2482
+ // The insert picker: a search field over one list of blocks and sections.
2483
+ // It renders into the editor root (not the overlay), so it takes the pointer and the wheel.
2484
+ .builder-editor__menu.builder-editor__picker {
2485
+ width: 280px;
2486
+ max-height: min(420px, calc(100vh - 16px));
2487
+ padding: 0;
2488
+ overflow: hidden;
2489
+ overscroll-behavior: contain;
2490
+ pointer-events: auto;
2491
+ }
2492
+
2493
+ .builder-editor__picker-body {
2494
+ display: flex;
2495
+ flex-direction: column;
2496
+ max-height: inherit;
2497
+ }
2498
+
2499
+ .builder-editor__search.builder-editor__picker-search {
2500
+ margin: 8px 8px 4px;
2501
+
2502
+ // The field's border shows the focus.
2503
+ input:focus-visible {
2504
+ outline: none;
2505
+ }
2506
+ }
2507
+
2508
+ .builder-editor__picker-list {
2509
+ flex: 1;
2510
+ min-height: 0;
2511
+ max-height: 340px;
2512
+ padding: 0 4px 6px;
2513
+ overflow: hidden auto;
2514
+ overscroll-behavior: contain;
2515
+ scrollbar-width: thin;
2516
+ }
2517
+
2518
+ .builder-editor__picker-heading {
2519
+ margin: 8px 8px 4px;
2520
+ color: var(--be-muted);
2521
+ font-size: var(--be-text-s);
2522
+ font-weight: var(--be-weight-strong);
2523
+ letter-spacing: 0.06em;
2524
+ text-transform: uppercase;
2525
+ }
2526
+
2527
+ .builder-editor__picker-item {
2528
+ display: flex;
2529
+ align-items: center;
2530
+ gap: 8px;
2531
+ height: 30px;
2532
+ padding: 0 8px;
2533
+ border-radius: var(--be-radius);
2534
+ color: var(--theme-text);
2535
+ font-size: var(--be-text-m);
2536
+ cursor: pointer;
2537
+
2538
+ &[aria-selected='true'] {
2539
+ background: var(--be-hover);
2540
+
2541
+ .builder-editor__picker-icon {
2542
+ color: var(--be-accent);
2543
+ }
2544
+ }
2545
+ }
2546
+
2547
+ .builder-editor__picker-icon {
2548
+ display: grid;
2549
+ flex: none;
2550
+ place-items: center;
2551
+ color: var(--be-muted);
2552
+ }
2553
+
2554
+ .builder-editor__picker-label {
2555
+ min-width: 0;
2556
+ overflow: hidden;
2557
+ white-space: nowrap;
2558
+ text-overflow: ellipsis;
2559
+ }
2560
+
2561
+ .builder-editor__picker-hint {
2562
+ flex: none;
2563
+ margin-left: auto;
2564
+ padding-left: 8px;
2565
+ color: var(--be-muted);
2566
+ font-size: var(--be-text-s);
2567
+ }
2568
+
2569
+ // ---------------------------------------------------------------------------
2570
+ // Section cards: real thumbnails and the saved section menu
2571
+ // ---------------------------------------------------------------------------
2572
+
2573
+ .builder-editor__card-wrap {
2574
+ position: relative;
2575
+
2576
+ &:hover .builder-editor__card-more,
2577
+ .builder-editor__card-more[aria-expanded='true'],
2578
+ .builder-editor__card-more:focus-visible {
2579
+ opacity: 1;
2580
+ }
2581
+ }
2582
+
2583
+ .builder-editor__card-wrap .builder-editor__card-more {
2584
+ position: absolute;
2585
+ top: 6px;
2586
+ right: 6px;
2587
+ background: var(--theme-bg);
2588
+ box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
2589
+ opacity: 0;
2590
+ transition: opacity 120ms ease, background-color 120ms ease;
2591
+ }
2592
+
2593
+ // A picture of the section, full width. A tall section shows its top part; a short one sits in
2594
+ // the middle of the box.
2595
+ .builder-editor__thumb--picture {
2596
+ background: #fff;
2597
+ mask-image: none;
2598
+ }
2599
+
2600
+ .builder-editor__thumb-img {
2601
+ display: block;
2602
+ flex: none;
2603
+ width: 100%;
2604
+ height: auto;
2605
+ // Auto margins center a short picture. A tall one overflows at the bottom, so its top shows.
2606
+ margin-block: auto;
2607
+ animation: builder-fade-in 160ms ease both;
2608
+ }
2609
+ }
2610
+
2611
+ // The saved section dialogs render in Payload's modal container, outside the editor.
2612
+ @layer payload-default {
2613
+ .builder-section-dialog .confirmation-modal__content {
2614
+ gap: 4px;
2615
+ }
2616
+
2617
+ .builder-section-dialog__fields {
2618
+ display: flex;
2619
+ flex-direction: column;
2620
+ gap: 16px;
2621
+ width: 100%;
2622
+ min-width: min(420px, 80vw);
2623
+ }
2624
+
2625
+ .builder-section-dialog__intro {
2626
+ margin: 0;
2627
+ color: var(--theme-elevation-600);
2628
+ }
2629
+ }