payload-canvas 0.6.3 → 0.6.4

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 (53) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +6 -5
  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/contentMode.scss +26 -26
  29. package/dist/admin/editor/topbar/screens/screens.scss +134 -134
  30. package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
  31. package/dist/admin/editor/topbar/topbar.scss +645 -645
  32. package/dist/admin/editor/ui/controls.scss +320 -320
  33. package/dist/admin/forms/submissions.scss +197 -197
  34. package/dist/admin/layoutField.scss +69 -69
  35. package/dist/admin/templateConditions.scss +24 -24
  36. package/dist/ai/prompt.js +40 -40
  37. package/dist/blocks/client/marquee.js +14 -14
  38. package/dist/blocks/payload.js +13 -3
  39. package/dist/core/responseError.d.ts +5 -0
  40. package/dist/core/responseError.js +8 -0
  41. package/dist/css/index.d.ts +6 -0
  42. package/dist/css/index.js +40 -1
  43. package/dist/css/shared.js +2 -2
  44. package/dist/live/session.js +18 -0
  45. package/dist/live/storage.d.ts +5 -0
  46. package/dist/live/storage.js +20 -0
  47. package/dist/mcp/shared.js +16 -16
  48. package/dist/plugin/index.d.ts +14 -1
  49. package/dist/plugin/index.js +46 -8
  50. package/dist/react/canvas/BuilderCanvas.js +4 -3
  51. package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +2 -1
  52. package/dist/theme/admin/fields.scss +363 -363
  53. package/package.json +1 -1
@@ -1,778 +1,778 @@
1
- // Block inspector inputs that Payload has no controlled component for: group, array, json, rich text.
2
- // Payload CSS variables only, inside Payload's own layer.
3
-
4
- @layer payload-default {
5
- // Payload's grey help and meta text (elevation-400/500) is below 4.5:1 on white. In the
6
- // inspector it uses the darker grey, so every field reads well.
7
- .builder-editor__fields {
8
- .field-description,
9
- .upload-relationship-details__meta {
10
- color: var(--theme-elevation-600);
11
- }
12
- }
13
-
14
- .builder-field-group {
15
- display: flex;
16
- flex-direction: column;
17
- gap: calc(var(--base) * 0.5);
18
- min-width: 0;
19
- margin: 0;
20
- padding: calc(var(--base) * 0.5) 0 0 calc(var(--base) * 0.6);
21
- border: 0;
22
- border-left: 2px solid var(--theme-elevation-100);
23
- }
24
-
25
- // A group whose section already names it (the Form block's Spam protection): no heading, no indent.
26
- .builder-field-group--plain {
27
- padding: 0;
28
- border-left: 0;
29
- }
30
-
31
- .builder-field-group__label {
32
- margin: 0 0 calc(var(--base) * 0.25);
33
- padding: 0;
34
- color: var(--theme-elevation-600);
35
- font-size: var(--be-text-s);
36
- font-weight: var(--be-weight-strong);
37
- letter-spacing: 0.04em;
38
- text-transform: uppercase;
39
- }
40
-
41
- // A collapsible with `initCollapsed`: the heading opens and closes it.
42
- .builder-field-group--fold > .builder-field-group__label {
43
- cursor: pointer;
44
- }
45
-
46
- .builder-field-group--fold:not([open]) {
47
- padding-bottom: 0;
48
- }
49
-
50
- .builder-field-group__description {
51
- margin: 0;
52
- color: var(--theme-elevation-600);
53
- font-size: var(--be-text-m);
54
- }
55
-
56
- // The where builder (WhereField): rows of field, operator, value and a remove button.
57
- .builder-where {
58
- display: flex;
59
- flex-direction: column;
60
- gap: calc(var(--base) * 0.4);
61
- align-items: flex-start;
62
- }
63
-
64
- .builder-where__head {
65
- display: flex;
66
- align-items: baseline;
67
- justify-content: space-between;
68
- align-self: stretch;
69
- gap: 8px;
70
-
71
- .field-label {
72
- margin: 0;
73
- }
74
- }
75
-
76
- // "Edit as JSON" / "Edit as conditions": a quiet text switch next to the label.
77
- .builder-where__switch {
78
- padding: 0;
79
- border: 0;
80
- background: none;
81
- color: var(--theme-elevation-600);
82
- font: inherit;
83
- font-size: var(--be-text-s);
84
- cursor: pointer;
85
-
86
- &:hover,
87
- &:focus-visible {
88
- color: var(--theme-text);
89
- text-decoration: underline;
90
- text-underline-offset: 2px;
91
- }
92
- }
93
-
94
- // The inspector's "+ Add …" action (AddButton): muted text with a plus, no border. The negative
95
- // margin lines the plus up with the left edge of the inputs above it.
96
- .builder-add {
97
- display: inline-flex;
98
- flex: none;
99
- align-items: center;
100
- align-self: flex-start;
101
- gap: 6px;
102
- height: 26px;
103
- margin: 0 0 0 -6px;
104
- padding: 0 8px 0 6px;
105
- border: 0;
106
- border-radius: var(--style-radius-s, 4px);
107
- background: none;
108
- color: var(--theme-elevation-600);
109
- font: inherit;
110
- font-size: var(--be-text-m, 13px);
111
- font-weight: var(--be-weight-medium, 500);
112
- line-height: 1;
113
- white-space: nowrap;
114
- cursor: pointer;
115
- transition:
116
- background-color 120ms ease,
117
- color 120ms ease;
118
-
119
- > svg {
120
- flex: none;
121
- }
122
-
123
- &:hover:not(:disabled) {
124
- background: var(--theme-elevation-100);
125
- color: var(--theme-text);
126
- }
127
-
128
- &:focus-visible {
129
- outline: 2px solid var(--be-accent, var(--theme-success-500));
130
- outline-offset: 1px;
131
- }
132
-
133
- &:disabled {
134
- opacity: 0.5;
135
- cursor: not-allowed;
136
- }
137
- }
138
-
139
- // Two add actions side by side ("Add condition", "Add “or” group").
140
- .builder-add-row {
141
- display: flex;
142
- flex-wrap: wrap;
143
- align-self: stretch;
144
- gap: 2px 4px;
145
-
146
- > .builder-add + .builder-add {
147
- margin-left: 0;
148
- }
149
- }
150
-
151
- // `admin.custom.builderHeading`: a small heading that starts a group of fields (the collection
152
- // list's Filter, Sort and count, Pages). More space above it than below.
153
- .builder-field-heading {
154
- margin: calc(var(--base) * 0.5) 0 calc(var(--base) * -0.25);
155
- padding-top: calc(var(--base) * 0.75);
156
- border-top: 1px solid var(--theme-elevation-100);
157
- color: var(--theme-elevation-600);
158
- font-size: var(--be-text-s);
159
- font-weight: var(--be-weight-strong);
160
- line-height: 1.2;
161
- letter-spacing: 0.04em;
162
- text-transform: uppercase;
163
- }
164
-
165
- // One short line under a control ("Works only in a template.").
166
- .builder-field-note {
167
- margin: 4px 0 0;
168
- color: var(--theme-elevation-600);
169
- font-size: var(--be-text-m);
170
- }
171
-
172
- // A note that needs attention: renaming a field of a form with submissions.
173
- .builder-field-note--warning {
174
- color: var(--theme-warning-800);
175
- }
176
-
177
- // The Form block's actions: where its answers go, "Edit form", "Move into this page".
178
- .builder-form-actions {
179
- display: flex;
180
- flex-direction: column;
181
- align-items: flex-start;
182
- gap: calc(var(--base) * 0.5);
183
-
184
- .builder-field-note {
185
- margin: 0;
186
- }
187
- }
188
-
189
- .builder-form-actions--source {
190
- margin-bottom: calc(var(--base) * 0.75);
191
- }
192
-
193
- .builder-form-actions__row {
194
- display: flex;
195
- flex-wrap: wrap;
196
- gap: calc(var(--base) * 0.25);
197
- }
198
-
199
- // The list's sort (SortField) and "Related to this page" (RelatedField): a label over selects.
200
- .builder-sort,
201
- .builder-related {
202
- display: flex;
203
- flex-direction: column;
204
- min-width: 0;
205
-
206
- .field-label {
207
- margin-bottom: calc(var(--base) * 0.25);
208
- }
209
- }
210
-
211
- // Field and direction side by side; one select alone fills the row.
212
- .builder-sort__row {
213
- display: flex;
214
- gap: 4px;
215
- min-width: 0;
216
-
217
- > * {
218
- flex: 1 1 0;
219
- min-width: 0;
220
- }
221
-
222
- > :first-child {
223
- flex-grow: 1.4;
224
- }
225
- }
226
-
227
- .builder-where__row {
228
- display: grid;
229
- // Field, operator and remove on the first line; the value under them (ConditionRows).
230
- grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
231
- align-items: center;
232
- align-self: stretch;
233
- gap: 4px;
234
- min-width: 0;
235
- margin: 0;
236
- padding: 0;
237
- border: 0;
238
- }
239
-
240
- // Two inputs and a remove button (QueryFiltersField: URL parameter, field).
241
- .builder-where__row--pair {
242
- grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
243
- }
244
-
245
- // The value line of a condition row: where the value comes from, then the value input.
246
- .builder-where__value {
247
- display: flex;
248
- grid-column: 1 / 3;
249
- align-items: center;
250
- gap: 4px;
251
- min-width: 0;
252
-
253
- > * {
254
- flex: 1 1 0;
255
- min-width: 0;
256
- }
257
-
258
- > .builder-where__source {
259
- flex: 0 0 auto;
260
- max-width: 45%;
261
- }
262
- }
263
-
264
- .builder-where__inline {
265
- display: flex;
266
- align-items: center;
267
- gap: 4px;
268
- min-width: 0;
269
-
270
- > * {
271
- flex: 1 1 auto;
272
- min-width: 0;
273
- }
274
- }
275
-
276
- .builder-where__prefix,
277
- .builder-where__suffix {
278
- flex: none !important;
279
- color: var(--theme-elevation-600);
280
- font-size: var(--be-text-m);
281
- }
282
-
283
- .builder-where__input--amount {
284
- flex: 0 0 calc(var(--base) * 3.5) !important;
285
- }
286
-
287
- // Payload's own inputs in a row (the document picker, a select of several options): no label, no field margin.
288
- .builder-where__payload {
289
- margin: 0;
290
-
291
- .field-label {
292
- display: none;
293
- }
294
- }
295
-
296
- // "Or" groups of "and" rows (ConditionRows).
297
- .builder-conditions {
298
- display: flex;
299
- flex-direction: column;
300
- gap: calc(var(--base) * 0.4);
301
- align-items: flex-start;
302
- align-self: stretch;
303
- }
304
-
305
- .builder-conditions__group {
306
- display: flex;
307
- flex-direction: column;
308
- gap: calc(var(--base) * 0.4);
309
- align-items: flex-start;
310
- align-self: stretch;
311
- min-width: 0;
312
- margin: 0;
313
- padding: 0;
314
- border: 0;
315
- }
316
-
317
- .builder-conditions__group--boxed {
318
- padding: calc(var(--base) * 0.5);
319
- border: 1px solid var(--theme-elevation-150);
320
- border-radius: var(--style-radius-m);
321
- }
322
-
323
- .builder-conditions__legend {
324
- padding: 0 4px;
325
- color: var(--theme-elevation-600);
326
- font-size: var(--be-text-s);
327
- font-weight: var(--be-weight-strong);
328
- }
329
-
330
- .builder-conditions__and,
331
- .builder-conditions__or {
332
- margin: 0;
333
- color: var(--theme-elevation-600);
334
- font-size: var(--be-text-s);
335
- font-weight: var(--be-weight-strong);
336
- text-transform: uppercase;
337
- letter-spacing: 0.04em;
338
- }
339
-
340
- .builder-conditions__or {
341
- align-self: center;
342
- }
343
-
344
- .builder-where__input {
345
- box-sizing: border-box;
346
- width: 100%;
347
- min-width: 0;
348
- height: calc(var(--base) * 2);
349
- padding: 0 calc(var(--base) * 0.5);
350
- border: 1px solid var(--theme-elevation-150);
351
- border-radius: var(--style-radius-s);
352
- background: var(--theme-input-bg, var(--theme-elevation-0));
353
- color: var(--theme-elevation-800);
354
- font: inherit;
355
- font-size: var(--be-text-m);
356
-
357
- &:focus-visible {
358
- outline: 2px solid var(--theme-success-500);
359
- outline-offset: 1px;
360
- }
361
- }
362
-
363
- .builder-where__remove {
364
- display: inline-grid;
365
- place-items: center;
366
- width: 26px;
367
- height: 26px;
368
- padding: 0;
369
- border: 0;
370
- border-radius: var(--style-radius-s);
371
- background: none;
372
- color: var(--theme-elevation-600);
373
- cursor: pointer;
374
-
375
- &:hover {
376
- background: var(--theme-elevation-100);
377
- color: var(--theme-elevation-900);
378
- }
379
-
380
- &:focus-visible {
381
- outline: 2px solid var(--be-accent, var(--theme-success-500));
382
- outline-offset: 1px;
383
- }
384
- }
385
-
386
- .builder-field-group__fields {
387
- display: flex;
388
- flex-direction: column;
389
- gap: calc(var(--base) * 0.75);
390
- }
391
-
392
- // Point field: longitude and latitude side by side.
393
- .builder-field-point {
394
- display: flex;
395
- flex-direction: column;
396
- gap: calc(var(--base) * 0.25);
397
- }
398
-
399
- .builder-field-point__inputs {
400
- display: grid;
401
- grid-template-columns: repeat(2, minmax(0, 1fr));
402
- gap: calc(var(--base) * 0.5);
403
- }
404
-
405
- // Array field: Payload's look (Collapsible rows, drag handle, "..." row menu), sized for the
406
- // narrow inspector.
407
- .builder-field-array {
408
- display: flex;
409
- flex-direction: column;
410
- align-items: flex-start;
411
- gap: calc(var(--base) * 0.4);
412
-
413
- > * {
414
- align-self: stretch;
415
- }
416
-
417
- > .builder-add {
418
- align-self: flex-start;
419
- }
420
- }
421
-
422
- .builder-field-array__head {
423
- display: flex;
424
- flex-wrap: wrap;
425
- align-items: baseline;
426
- justify-content: space-between;
427
- gap: 2px 8px;
428
-
429
- > .field-label {
430
- margin: 0;
431
- }
432
- }
433
-
434
- .builder-field-array__head-actions {
435
- display: flex;
436
- gap: 8px;
437
-
438
- button {
439
- padding: 0;
440
- border: 0;
441
- background: none;
442
- color: var(--theme-elevation-800);
443
- font: inherit;
444
- font-size: var(--be-text-m);
445
- cursor: pointer;
446
-
447
- &:hover,
448
- &:focus-visible {
449
- color: var(--theme-elevation-600);
450
- text-decoration: underline;
451
- }
452
- }
453
- }
454
-
455
- .builder-field-array__rows {
456
- display: flex;
457
- flex-direction: column;
458
- gap: 6px;
459
- }
460
-
461
- .builder-field-array__row {
462
- position: relative;
463
-
464
- &[data-dragging] .builder-field-array__collapsible {
465
- box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);
466
- }
467
- }
468
-
469
- .builder-field-array .builder-field-array__collapsible {
470
- border-radius: var(--style-radius-s, 4px);
471
- background: var(--theme-elevation-0);
472
-
473
- > .collapsible__toggle-wrap {
474
- gap: 2px;
475
- padding: 2px 4px;
476
- border-top-left-radius: var(--style-radius-s, 4px);
477
- border-top-right-radius: var(--style-radius-s, 4px);
478
- line-height: 24px;
479
-
480
- > .collapsible__toggle {
481
- border-radius: var(--style-radius-s, 4px);
482
- }
483
- }
484
-
485
- &.collapsible--collapsed > .collapsible__toggle-wrap {
486
- border-bottom-left-radius: var(--style-radius-s, 4px);
487
- border-bottom-right-radius: var(--style-radius-s, 4px);
488
- }
489
-
490
- // The toggle button covers the whole header. The handle sits above it, so a drag starts there.
491
- .collapsible__drag {
492
- position: relative;
493
- // Payload sets `top` for its own layout; with `position: relative` it would push the handle down.
494
- top: 0;
495
- z-index: 1;
496
- flex: none;
497
- width: 20px;
498
- height: 20px;
499
- padding: 2px;
500
- border-radius: var(--style-radius-s, 4px);
501
- color: var(--theme-elevation-800);
502
-
503
- &:hover {
504
- opacity: 1;
505
- }
506
-
507
- &:focus-visible {
508
- opacity: 1;
509
- outline: 2px solid var(--theme-elevation-400);
510
- }
511
- }
512
-
513
- .collapsible__header-wrap {
514
- flex: 1;
515
- min-width: 0;
516
- }
517
-
518
- .collapsible__actions-wrap {
519
- margin: 0;
520
- }
521
-
522
- .collapsible__indicator {
523
- width: 20px;
524
- height: 20px;
525
- }
526
-
527
- .collapsible__content {
528
- padding: 0;
529
- border-bottom-left-radius: var(--style-radius-s, 4px);
530
- border-bottom-right-radius: var(--style-radius-s, 4px);
531
- }
532
- }
533
-
534
- .builder-field-array__title {
535
- display: block;
536
- overflow: hidden;
537
- color: var(--theme-text);
538
- font-size: var(--be-text-m);
539
- text-overflow: ellipsis;
540
- white-space: nowrap;
541
- }
542
-
543
- // Nested under the field: wins over the editor's `.builder-editor [data-tooltip]` rules.
544
- .builder-field-array .builder-field-array__menu-button {
545
- position: relative;
546
- display: inline-grid;
547
- place-items: center;
548
- width: 22px;
549
- height: 22px;
550
- padding: 0;
551
- border: 0;
552
- border-radius: 50%;
553
- background: none;
554
- color: var(--theme-elevation-800);
555
- cursor: pointer;
556
-
557
- &:hover,
558
- &[aria-expanded='true'] {
559
- background: var(--theme-elevation-0);
560
- }
561
-
562
- // Near the inspector's right edge: the tooltip opens to the left.
563
- &[data-tooltip]:hover::after {
564
- left: auto;
565
- right: 0;
566
- transform: none;
567
- }
568
- }
569
-
570
- .builder-field-array__fields {
571
- display: flex;
572
- flex-direction: column;
573
- gap: calc(var(--base) * 0.75);
574
- padding: 10px;
575
- }
576
-
577
- // The message under an input (`InputError`).
578
- .builder-field-error {
579
- margin: 4px 0 0;
580
- color: var(--theme-error-500);
581
- font-size: var(--be-text-m);
582
- }
583
-
584
- .builder-field-richtext {
585
- min-width: 0;
586
-
587
- // The inspector column is narrow: no gutter for the block handles.
588
- .rich-text-lexical--show-gutter .editor-scroller > .editor {
589
- padding-left: 0;
590
- }
591
-
592
- // The inline toolbar is wider than the inspector. Its groups wrap onto more lines, so every
593
- // button (link included) stays inside the column. Lexical moves a toolbar that reaches the
594
- // right edge 32 px further left, so the toolbar stays 40 px narrower than the editor.
595
- .inline-toolbar-popup {
596
- flex-wrap: wrap;
597
- row-gap: 2px;
598
- max-width: calc(100% - 40px);
599
- }
600
- }
601
-
602
- // A prop the user may read but not change (field `access.update`): a lock at the top right,
603
- // the input dimmed and inert.
604
- .builder-field-locked {
605
- position: relative;
606
- min-width: 0;
607
- }
608
-
609
- // `.builder-editor [data-tooltip]` sets `position: relative`; this rule is more specific.
610
- // The lock sits on the label row, at the right edge, left of a bind button when there is one.
611
- .builder-editor .builder-field-locked > .builder-field-locked__badge {
612
- position: absolute;
613
-
614
- &:hover::after {
615
- left: auto;
616
- right: 0;
617
- transform: none;
618
- }
619
- }
620
-
621
- .builder-field-locked:has(.builder-bind__button) > .builder-field-locked__badge {
622
- right: 26px;
623
- }
624
-
625
- .builder-field-locked__badge {
626
- z-index: 1;
627
- top: -2px;
628
- right: 0;
629
- display: inline-flex;
630
- align-items: center;
631
- justify-content: center;
632
- width: 20px;
633
- height: 20px;
634
- border-radius: var(--style-radius-s);
635
- color: var(--theme-elevation-600);
636
- background: var(--theme-elevation-50);
637
- cursor: help;
638
- }
639
-
640
- // Read by screen readers; the tooltip shows it to everyone else.
641
- .builder-field-locked__text {
642
- position: absolute;
643
- width: 1px;
644
- height: 1px;
645
- overflow: hidden;
646
- clip-path: inset(50%);
647
- white-space: nowrap;
648
- }
649
-
650
- .builder-field-locked__body {
651
- opacity: 0.65;
652
- cursor: not-allowed;
653
- }
654
-
655
- .builder-field-hidden-note {
656
- display: flex;
657
- align-items: center;
658
- gap: 6px;
659
- margin: 0;
660
- }
661
-
662
- // A block's Payload `tabs` field (FieldTabs): a segmented switch over the chosen tab's fields.
663
- .builder-field-tabs {
664
- display: flex;
665
- flex-direction: column;
666
- gap: calc(var(--base) * 0.75);
667
- }
668
-
669
- .builder-field-tabs__panel {
670
- display: flex;
671
- flex-direction: column;
672
- gap: calc(var(--base) * 0.75);
673
- }
674
-
675
- // The folding sections of a settings panel, in one box without a gap: one border between rows.
676
- .builder-panel-sections {
677
- display: flex;
678
- flex-direction: column;
679
-
680
- &:empty {
681
- display: none;
682
- }
683
- }
684
-
685
- // A section of a settings panel (PanelSection): a full-width heading row that folds its fields.
686
- .builder-panel-section {
687
- margin: 0 -12px;
688
- border-top: 1px solid var(--be-border);
689
-
690
- &:last-child {
691
- border-bottom: 1px solid var(--be-border);
692
- }
693
- }
694
-
695
- .builder-panel-section__head {
696
- display: flex;
697
- align-items: center;
698
- justify-content: space-between;
699
- gap: 8px;
700
- padding: 10px 12px;
701
- color: var(--theme-text);
702
- font-size: var(--be-text-m);
703
- font-weight: var(--be-weight-strong);
704
- list-style: none;
705
- cursor: pointer;
706
- user-select: none;
707
-
708
- &::-webkit-details-marker {
709
- display: none;
710
- }
711
-
712
- &:hover {
713
- background: var(--be-hover);
714
- }
715
-
716
- &:focus-visible {
717
- outline: 2px solid var(--be-accent);
718
- outline-offset: -2px;
719
- }
720
- }
721
-
722
- .builder-panel-section__chevron {
723
- flex: none;
724
- color: var(--be-muted);
725
- transform: rotate(-90deg);
726
- transition: transform 120ms var(--be-ease);
727
- }
728
-
729
- .builder-panel-section[open] > .builder-panel-section__head .builder-panel-section__chevron {
730
- transform: none;
731
- }
732
-
733
- .builder-panel-section__fields {
734
- display: flex;
735
- flex-direction: column;
736
- gap: calc(var(--base) * 0.75);
737
- padding: 2px 12px 16px;
738
- }
739
-
740
- @media (prefers-reduced-motion: reduce) {
741
- .builder-panel-section__chevron {
742
- transition: none;
743
- }
744
- }
745
-
746
- // "Insert field" over an email line or body (MergeTagsFrame), on the label's line.
747
- .builder-merge-tags {
748
- position: relative;
749
- }
750
-
751
- .builder-merge-tags__button {
752
- position: absolute;
753
- z-index: 1;
754
- top: 0;
755
- right: 0;
756
- display: inline-flex;
757
- align-items: center;
758
- gap: 4px;
759
- height: 20px;
760
- padding: 0 6px;
761
- border: 0;
762
- border-radius: var(--be-radius);
763
- background: transparent;
764
- color: var(--be-accent-text);
765
- font-size: var(--be-text-s);
766
- font-weight: var(--be-weight-medium);
767
- cursor: pointer;
768
-
769
- &:hover,
770
- &[data-popup-open] {
771
- background: var(--be-accent-soft);
772
- }
773
-
774
- &:focus-visible {
775
- outline: 2px solid var(--be-accent);
776
- }
777
- }
778
- }
1
+ // Block inspector inputs that Payload has no controlled component for: group, array, json, rich text.
2
+ // Payload CSS variables only, inside Payload's own layer.
3
+
4
+ @layer payload-default {
5
+ // Payload's grey help and meta text (elevation-400/500) is below 4.5:1 on white. In the
6
+ // inspector it uses the darker grey, so every field reads well.
7
+ .builder-editor__fields {
8
+ .field-description,
9
+ .upload-relationship-details__meta {
10
+ color: var(--theme-elevation-600);
11
+ }
12
+ }
13
+
14
+ .builder-field-group {
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: calc(var(--base) * 0.5);
18
+ min-width: 0;
19
+ margin: 0;
20
+ padding: calc(var(--base) * 0.5) 0 0 calc(var(--base) * 0.6);
21
+ border: 0;
22
+ border-left: 2px solid var(--theme-elevation-100);
23
+ }
24
+
25
+ // A group whose section already names it (the Form block's Spam protection): no heading, no indent.
26
+ .builder-field-group--plain {
27
+ padding: 0;
28
+ border-left: 0;
29
+ }
30
+
31
+ .builder-field-group__label {
32
+ margin: 0 0 calc(var(--base) * 0.25);
33
+ padding: 0;
34
+ color: var(--theme-elevation-600);
35
+ font-size: var(--be-text-s);
36
+ font-weight: var(--be-weight-strong);
37
+ letter-spacing: 0.04em;
38
+ text-transform: uppercase;
39
+ }
40
+
41
+ // A collapsible with `initCollapsed`: the heading opens and closes it.
42
+ .builder-field-group--fold > .builder-field-group__label {
43
+ cursor: pointer;
44
+ }
45
+
46
+ .builder-field-group--fold:not([open]) {
47
+ padding-bottom: 0;
48
+ }
49
+
50
+ .builder-field-group__description {
51
+ margin: 0;
52
+ color: var(--theme-elevation-600);
53
+ font-size: var(--be-text-m);
54
+ }
55
+
56
+ // The where builder (WhereField): rows of field, operator, value and a remove button.
57
+ .builder-where {
58
+ display: flex;
59
+ flex-direction: column;
60
+ gap: calc(var(--base) * 0.4);
61
+ align-items: flex-start;
62
+ }
63
+
64
+ .builder-where__head {
65
+ display: flex;
66
+ align-items: baseline;
67
+ justify-content: space-between;
68
+ align-self: stretch;
69
+ gap: 8px;
70
+
71
+ .field-label {
72
+ margin: 0;
73
+ }
74
+ }
75
+
76
+ // "Edit as JSON" / "Edit as conditions": a quiet text switch next to the label.
77
+ .builder-where__switch {
78
+ padding: 0;
79
+ border: 0;
80
+ background: none;
81
+ color: var(--theme-elevation-600);
82
+ font: inherit;
83
+ font-size: var(--be-text-s);
84
+ cursor: pointer;
85
+
86
+ &:hover,
87
+ &:focus-visible {
88
+ color: var(--theme-text);
89
+ text-decoration: underline;
90
+ text-underline-offset: 2px;
91
+ }
92
+ }
93
+
94
+ // The inspector's "+ Add …" action (AddButton): muted text with a plus, no border. The negative
95
+ // margin lines the plus up with the left edge of the inputs above it.
96
+ .builder-add {
97
+ display: inline-flex;
98
+ flex: none;
99
+ align-items: center;
100
+ align-self: flex-start;
101
+ gap: 6px;
102
+ height: 26px;
103
+ margin: 0 0 0 -6px;
104
+ padding: 0 8px 0 6px;
105
+ border: 0;
106
+ border-radius: var(--style-radius-s, 4px);
107
+ background: none;
108
+ color: var(--theme-elevation-600);
109
+ font: inherit;
110
+ font-size: var(--be-text-m, 13px);
111
+ font-weight: var(--be-weight-medium, 500);
112
+ line-height: 1;
113
+ white-space: nowrap;
114
+ cursor: pointer;
115
+ transition:
116
+ background-color 120ms ease,
117
+ color 120ms ease;
118
+
119
+ > svg {
120
+ flex: none;
121
+ }
122
+
123
+ &:hover:not(:disabled) {
124
+ background: var(--theme-elevation-100);
125
+ color: var(--theme-text);
126
+ }
127
+
128
+ &:focus-visible {
129
+ outline: 2px solid var(--be-accent, var(--theme-success-500));
130
+ outline-offset: 1px;
131
+ }
132
+
133
+ &:disabled {
134
+ opacity: 0.5;
135
+ cursor: not-allowed;
136
+ }
137
+ }
138
+
139
+ // Two add actions side by side ("Add condition", "Add “or” group").
140
+ .builder-add-row {
141
+ display: flex;
142
+ flex-wrap: wrap;
143
+ align-self: stretch;
144
+ gap: 2px 4px;
145
+
146
+ > .builder-add + .builder-add {
147
+ margin-left: 0;
148
+ }
149
+ }
150
+
151
+ // `admin.custom.builderHeading`: a small heading that starts a group of fields (the collection
152
+ // list's Filter, Sort and count, Pages). More space above it than below.
153
+ .builder-field-heading {
154
+ margin: calc(var(--base) * 0.5) 0 calc(var(--base) * -0.25);
155
+ padding-top: calc(var(--base) * 0.75);
156
+ border-top: 1px solid var(--theme-elevation-100);
157
+ color: var(--theme-elevation-600);
158
+ font-size: var(--be-text-s);
159
+ font-weight: var(--be-weight-strong);
160
+ line-height: 1.2;
161
+ letter-spacing: 0.04em;
162
+ text-transform: uppercase;
163
+ }
164
+
165
+ // One short line under a control ("Works only in a template.").
166
+ .builder-field-note {
167
+ margin: 4px 0 0;
168
+ color: var(--theme-elevation-600);
169
+ font-size: var(--be-text-m);
170
+ }
171
+
172
+ // A note that needs attention: renaming a field of a form with submissions.
173
+ .builder-field-note--warning {
174
+ color: var(--theme-warning-800);
175
+ }
176
+
177
+ // The Form block's actions: where its answers go, "Edit form", "Move into this page".
178
+ .builder-form-actions {
179
+ display: flex;
180
+ flex-direction: column;
181
+ align-items: flex-start;
182
+ gap: calc(var(--base) * 0.5);
183
+
184
+ .builder-field-note {
185
+ margin: 0;
186
+ }
187
+ }
188
+
189
+ .builder-form-actions--source {
190
+ margin-bottom: calc(var(--base) * 0.75);
191
+ }
192
+
193
+ .builder-form-actions__row {
194
+ display: flex;
195
+ flex-wrap: wrap;
196
+ gap: calc(var(--base) * 0.25);
197
+ }
198
+
199
+ // The list's sort (SortField) and "Related to this page" (RelatedField): a label over selects.
200
+ .builder-sort,
201
+ .builder-related {
202
+ display: flex;
203
+ flex-direction: column;
204
+ min-width: 0;
205
+
206
+ .field-label {
207
+ margin-bottom: calc(var(--base) * 0.25);
208
+ }
209
+ }
210
+
211
+ // Field and direction side by side; one select alone fills the row.
212
+ .builder-sort__row {
213
+ display: flex;
214
+ gap: 4px;
215
+ min-width: 0;
216
+
217
+ > * {
218
+ flex: 1 1 0;
219
+ min-width: 0;
220
+ }
221
+
222
+ > :first-child {
223
+ flex-grow: 1.4;
224
+ }
225
+ }
226
+
227
+ .builder-where__row {
228
+ display: grid;
229
+ // Field, operator and remove on the first line; the value under them (ConditionRows).
230
+ grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
231
+ align-items: center;
232
+ align-self: stretch;
233
+ gap: 4px;
234
+ min-width: 0;
235
+ margin: 0;
236
+ padding: 0;
237
+ border: 0;
238
+ }
239
+
240
+ // Two inputs and a remove button (QueryFiltersField: URL parameter, field).
241
+ .builder-where__row--pair {
242
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
243
+ }
244
+
245
+ // The value line of a condition row: where the value comes from, then the value input.
246
+ .builder-where__value {
247
+ display: flex;
248
+ grid-column: 1 / 3;
249
+ align-items: center;
250
+ gap: 4px;
251
+ min-width: 0;
252
+
253
+ > * {
254
+ flex: 1 1 0;
255
+ min-width: 0;
256
+ }
257
+
258
+ > .builder-where__source {
259
+ flex: 0 0 auto;
260
+ max-width: 45%;
261
+ }
262
+ }
263
+
264
+ .builder-where__inline {
265
+ display: flex;
266
+ align-items: center;
267
+ gap: 4px;
268
+ min-width: 0;
269
+
270
+ > * {
271
+ flex: 1 1 auto;
272
+ min-width: 0;
273
+ }
274
+ }
275
+
276
+ .builder-where__prefix,
277
+ .builder-where__suffix {
278
+ flex: none !important;
279
+ color: var(--theme-elevation-600);
280
+ font-size: var(--be-text-m);
281
+ }
282
+
283
+ .builder-where__input--amount {
284
+ flex: 0 0 calc(var(--base) * 3.5) !important;
285
+ }
286
+
287
+ // Payload's own inputs in a row (the document picker, a select of several options): no label, no field margin.
288
+ .builder-where__payload {
289
+ margin: 0;
290
+
291
+ .field-label {
292
+ display: none;
293
+ }
294
+ }
295
+
296
+ // "Or" groups of "and" rows (ConditionRows).
297
+ .builder-conditions {
298
+ display: flex;
299
+ flex-direction: column;
300
+ gap: calc(var(--base) * 0.4);
301
+ align-items: flex-start;
302
+ align-self: stretch;
303
+ }
304
+
305
+ .builder-conditions__group {
306
+ display: flex;
307
+ flex-direction: column;
308
+ gap: calc(var(--base) * 0.4);
309
+ align-items: flex-start;
310
+ align-self: stretch;
311
+ min-width: 0;
312
+ margin: 0;
313
+ padding: 0;
314
+ border: 0;
315
+ }
316
+
317
+ .builder-conditions__group--boxed {
318
+ padding: calc(var(--base) * 0.5);
319
+ border: 1px solid var(--theme-elevation-150);
320
+ border-radius: var(--style-radius-m);
321
+ }
322
+
323
+ .builder-conditions__legend {
324
+ padding: 0 4px;
325
+ color: var(--theme-elevation-600);
326
+ font-size: var(--be-text-s);
327
+ font-weight: var(--be-weight-strong);
328
+ }
329
+
330
+ .builder-conditions__and,
331
+ .builder-conditions__or {
332
+ margin: 0;
333
+ color: var(--theme-elevation-600);
334
+ font-size: var(--be-text-s);
335
+ font-weight: var(--be-weight-strong);
336
+ text-transform: uppercase;
337
+ letter-spacing: 0.04em;
338
+ }
339
+
340
+ .builder-conditions__or {
341
+ align-self: center;
342
+ }
343
+
344
+ .builder-where__input {
345
+ box-sizing: border-box;
346
+ width: 100%;
347
+ min-width: 0;
348
+ height: calc(var(--base) * 2);
349
+ padding: 0 calc(var(--base) * 0.5);
350
+ border: 1px solid var(--theme-elevation-150);
351
+ border-radius: var(--style-radius-s);
352
+ background: var(--theme-input-bg, var(--theme-elevation-0));
353
+ color: var(--theme-elevation-800);
354
+ font: inherit;
355
+ font-size: var(--be-text-m);
356
+
357
+ &:focus-visible {
358
+ outline: 2px solid var(--theme-success-500);
359
+ outline-offset: 1px;
360
+ }
361
+ }
362
+
363
+ .builder-where__remove {
364
+ display: inline-grid;
365
+ place-items: center;
366
+ width: 26px;
367
+ height: 26px;
368
+ padding: 0;
369
+ border: 0;
370
+ border-radius: var(--style-radius-s);
371
+ background: none;
372
+ color: var(--theme-elevation-600);
373
+ cursor: pointer;
374
+
375
+ &:hover {
376
+ background: var(--theme-elevation-100);
377
+ color: var(--theme-elevation-900);
378
+ }
379
+
380
+ &:focus-visible {
381
+ outline: 2px solid var(--be-accent, var(--theme-success-500));
382
+ outline-offset: 1px;
383
+ }
384
+ }
385
+
386
+ .builder-field-group__fields {
387
+ display: flex;
388
+ flex-direction: column;
389
+ gap: calc(var(--base) * 0.75);
390
+ }
391
+
392
+ // Point field: longitude and latitude side by side.
393
+ .builder-field-point {
394
+ display: flex;
395
+ flex-direction: column;
396
+ gap: calc(var(--base) * 0.25);
397
+ }
398
+
399
+ .builder-field-point__inputs {
400
+ display: grid;
401
+ grid-template-columns: repeat(2, minmax(0, 1fr));
402
+ gap: calc(var(--base) * 0.5);
403
+ }
404
+
405
+ // Array field: Payload's look (Collapsible rows, drag handle, "..." row menu), sized for the
406
+ // narrow inspector.
407
+ .builder-field-array {
408
+ display: flex;
409
+ flex-direction: column;
410
+ align-items: flex-start;
411
+ gap: calc(var(--base) * 0.4);
412
+
413
+ > * {
414
+ align-self: stretch;
415
+ }
416
+
417
+ > .builder-add {
418
+ align-self: flex-start;
419
+ }
420
+ }
421
+
422
+ .builder-field-array__head {
423
+ display: flex;
424
+ flex-wrap: wrap;
425
+ align-items: baseline;
426
+ justify-content: space-between;
427
+ gap: 2px 8px;
428
+
429
+ > .field-label {
430
+ margin: 0;
431
+ }
432
+ }
433
+
434
+ .builder-field-array__head-actions {
435
+ display: flex;
436
+ gap: 8px;
437
+
438
+ button {
439
+ padding: 0;
440
+ border: 0;
441
+ background: none;
442
+ color: var(--theme-elevation-800);
443
+ font: inherit;
444
+ font-size: var(--be-text-m);
445
+ cursor: pointer;
446
+
447
+ &:hover,
448
+ &:focus-visible {
449
+ color: var(--theme-elevation-600);
450
+ text-decoration: underline;
451
+ }
452
+ }
453
+ }
454
+
455
+ .builder-field-array__rows {
456
+ display: flex;
457
+ flex-direction: column;
458
+ gap: 6px;
459
+ }
460
+
461
+ .builder-field-array__row {
462
+ position: relative;
463
+
464
+ &[data-dragging] .builder-field-array__collapsible {
465
+ box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);
466
+ }
467
+ }
468
+
469
+ .builder-field-array .builder-field-array__collapsible {
470
+ border-radius: var(--style-radius-s, 4px);
471
+ background: var(--theme-elevation-0);
472
+
473
+ > .collapsible__toggle-wrap {
474
+ gap: 2px;
475
+ padding: 2px 4px;
476
+ border-top-left-radius: var(--style-radius-s, 4px);
477
+ border-top-right-radius: var(--style-radius-s, 4px);
478
+ line-height: 24px;
479
+
480
+ > .collapsible__toggle {
481
+ border-radius: var(--style-radius-s, 4px);
482
+ }
483
+ }
484
+
485
+ &.collapsible--collapsed > .collapsible__toggle-wrap {
486
+ border-bottom-left-radius: var(--style-radius-s, 4px);
487
+ border-bottom-right-radius: var(--style-radius-s, 4px);
488
+ }
489
+
490
+ // The toggle button covers the whole header. The handle sits above it, so a drag starts there.
491
+ .collapsible__drag {
492
+ position: relative;
493
+ // Payload sets `top` for its own layout; with `position: relative` it would push the handle down.
494
+ top: 0;
495
+ z-index: 1;
496
+ flex: none;
497
+ width: 20px;
498
+ height: 20px;
499
+ padding: 2px;
500
+ border-radius: var(--style-radius-s, 4px);
501
+ color: var(--theme-elevation-800);
502
+
503
+ &:hover {
504
+ opacity: 1;
505
+ }
506
+
507
+ &:focus-visible {
508
+ opacity: 1;
509
+ outline: 2px solid var(--theme-elevation-400);
510
+ }
511
+ }
512
+
513
+ .collapsible__header-wrap {
514
+ flex: 1;
515
+ min-width: 0;
516
+ }
517
+
518
+ .collapsible__actions-wrap {
519
+ margin: 0;
520
+ }
521
+
522
+ .collapsible__indicator {
523
+ width: 20px;
524
+ height: 20px;
525
+ }
526
+
527
+ .collapsible__content {
528
+ padding: 0;
529
+ border-bottom-left-radius: var(--style-radius-s, 4px);
530
+ border-bottom-right-radius: var(--style-radius-s, 4px);
531
+ }
532
+ }
533
+
534
+ .builder-field-array__title {
535
+ display: block;
536
+ overflow: hidden;
537
+ color: var(--theme-text);
538
+ font-size: var(--be-text-m);
539
+ text-overflow: ellipsis;
540
+ white-space: nowrap;
541
+ }
542
+
543
+ // Nested under the field: wins over the editor's `.builder-editor [data-tooltip]` rules.
544
+ .builder-field-array .builder-field-array__menu-button {
545
+ position: relative;
546
+ display: inline-grid;
547
+ place-items: center;
548
+ width: 22px;
549
+ height: 22px;
550
+ padding: 0;
551
+ border: 0;
552
+ border-radius: 50%;
553
+ background: none;
554
+ color: var(--theme-elevation-800);
555
+ cursor: pointer;
556
+
557
+ &:hover,
558
+ &[aria-expanded='true'] {
559
+ background: var(--theme-elevation-0);
560
+ }
561
+
562
+ // Near the inspector's right edge: the tooltip opens to the left.
563
+ &[data-tooltip]:hover::after {
564
+ left: auto;
565
+ right: 0;
566
+ transform: none;
567
+ }
568
+ }
569
+
570
+ .builder-field-array__fields {
571
+ display: flex;
572
+ flex-direction: column;
573
+ gap: calc(var(--base) * 0.75);
574
+ padding: 10px;
575
+ }
576
+
577
+ // The message under an input (`InputError`).
578
+ .builder-field-error {
579
+ margin: 4px 0 0;
580
+ color: var(--theme-error-500);
581
+ font-size: var(--be-text-m);
582
+ }
583
+
584
+ .builder-field-richtext {
585
+ min-width: 0;
586
+
587
+ // The inspector column is narrow: no gutter for the block handles.
588
+ .rich-text-lexical--show-gutter .editor-scroller > .editor {
589
+ padding-left: 0;
590
+ }
591
+
592
+ // The inline toolbar is wider than the inspector. Its groups wrap onto more lines, so every
593
+ // button (link included) stays inside the column. Lexical moves a toolbar that reaches the
594
+ // right edge 32 px further left, so the toolbar stays 40 px narrower than the editor.
595
+ .inline-toolbar-popup {
596
+ flex-wrap: wrap;
597
+ row-gap: 2px;
598
+ max-width: calc(100% - 40px);
599
+ }
600
+ }
601
+
602
+ // A prop the user may read but not change (field `access.update`): a lock at the top right,
603
+ // the input dimmed and inert.
604
+ .builder-field-locked {
605
+ position: relative;
606
+ min-width: 0;
607
+ }
608
+
609
+ // `.builder-editor [data-tooltip]` sets `position: relative`; this rule is more specific.
610
+ // The lock sits on the label row, at the right edge, left of a bind button when there is one.
611
+ .builder-editor .builder-field-locked > .builder-field-locked__badge {
612
+ position: absolute;
613
+
614
+ &:hover::after {
615
+ left: auto;
616
+ right: 0;
617
+ transform: none;
618
+ }
619
+ }
620
+
621
+ .builder-field-locked:has(.builder-bind__button) > .builder-field-locked__badge {
622
+ right: 26px;
623
+ }
624
+
625
+ .builder-field-locked__badge {
626
+ z-index: 1;
627
+ top: -2px;
628
+ right: 0;
629
+ display: inline-flex;
630
+ align-items: center;
631
+ justify-content: center;
632
+ width: 20px;
633
+ height: 20px;
634
+ border-radius: var(--style-radius-s);
635
+ color: var(--theme-elevation-600);
636
+ background: var(--theme-elevation-50);
637
+ cursor: help;
638
+ }
639
+
640
+ // Read by screen readers; the tooltip shows it to everyone else.
641
+ .builder-field-locked__text {
642
+ position: absolute;
643
+ width: 1px;
644
+ height: 1px;
645
+ overflow: hidden;
646
+ clip-path: inset(50%);
647
+ white-space: nowrap;
648
+ }
649
+
650
+ .builder-field-locked__body {
651
+ opacity: 0.65;
652
+ cursor: not-allowed;
653
+ }
654
+
655
+ .builder-field-hidden-note {
656
+ display: flex;
657
+ align-items: center;
658
+ gap: 6px;
659
+ margin: 0;
660
+ }
661
+
662
+ // A block's Payload `tabs` field (FieldTabs): a segmented switch over the chosen tab's fields.
663
+ .builder-field-tabs {
664
+ display: flex;
665
+ flex-direction: column;
666
+ gap: calc(var(--base) * 0.75);
667
+ }
668
+
669
+ .builder-field-tabs__panel {
670
+ display: flex;
671
+ flex-direction: column;
672
+ gap: calc(var(--base) * 0.75);
673
+ }
674
+
675
+ // The folding sections of a settings panel, in one box without a gap: one border between rows.
676
+ .builder-panel-sections {
677
+ display: flex;
678
+ flex-direction: column;
679
+
680
+ &:empty {
681
+ display: none;
682
+ }
683
+ }
684
+
685
+ // A section of a settings panel (PanelSection): a full-width heading row that folds its fields.
686
+ .builder-panel-section {
687
+ margin: 0 -12px;
688
+ border-top: 1px solid var(--be-border);
689
+
690
+ &:last-child {
691
+ border-bottom: 1px solid var(--be-border);
692
+ }
693
+ }
694
+
695
+ .builder-panel-section__head {
696
+ display: flex;
697
+ align-items: center;
698
+ justify-content: space-between;
699
+ gap: 8px;
700
+ padding: 10px 12px;
701
+ color: var(--theme-text);
702
+ font-size: var(--be-text-m);
703
+ font-weight: var(--be-weight-strong);
704
+ list-style: none;
705
+ cursor: pointer;
706
+ user-select: none;
707
+
708
+ &::-webkit-details-marker {
709
+ display: none;
710
+ }
711
+
712
+ &:hover {
713
+ background: var(--be-hover);
714
+ }
715
+
716
+ &:focus-visible {
717
+ outline: 2px solid var(--be-accent);
718
+ outline-offset: -2px;
719
+ }
720
+ }
721
+
722
+ .builder-panel-section__chevron {
723
+ flex: none;
724
+ color: var(--be-muted);
725
+ transform: rotate(-90deg);
726
+ transition: transform 120ms var(--be-ease);
727
+ }
728
+
729
+ .builder-panel-section[open] > .builder-panel-section__head .builder-panel-section__chevron {
730
+ transform: none;
731
+ }
732
+
733
+ .builder-panel-section__fields {
734
+ display: flex;
735
+ flex-direction: column;
736
+ gap: calc(var(--base) * 0.75);
737
+ padding: 2px 12px 16px;
738
+ }
739
+
740
+ @media (prefers-reduced-motion: reduce) {
741
+ .builder-panel-section__chevron {
742
+ transition: none;
743
+ }
744
+ }
745
+
746
+ // "Insert field" over an email line or body (MergeTagsFrame), on the label's line.
747
+ .builder-merge-tags {
748
+ position: relative;
749
+ }
750
+
751
+ .builder-merge-tags__button {
752
+ position: absolute;
753
+ z-index: 1;
754
+ top: 0;
755
+ right: 0;
756
+ display: inline-flex;
757
+ align-items: center;
758
+ gap: 4px;
759
+ height: 20px;
760
+ padding: 0 6px;
761
+ border: 0;
762
+ border-radius: var(--be-radius);
763
+ background: transparent;
764
+ color: var(--be-accent-text);
765
+ font-size: var(--be-text-s);
766
+ font-weight: var(--be-weight-medium);
767
+ cursor: pointer;
768
+
769
+ &:hover,
770
+ &[data-popup-open] {
771
+ background: var(--be-accent-soft);
772
+ }
773
+
774
+ &:focus-visible {
775
+ outline: 2px solid var(--be-accent);
776
+ }
777
+ }
778
+ }