@maily-to/core 2.0.0-beta.7 → 2.0.0-beta.8

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 (48) hide show
  1. package/dist/blocks/index.cjs +8 -1
  2. package/dist/blocks/index.d.cts +1 -38
  3. package/dist/blocks/index.d.mts +14 -6
  4. package/dist/blocks/index.d.mts.map +1 -1
  5. package/dist/blocks/index.mjs +2 -2
  6. package/dist/extensions/index.cjs +252 -303
  7. package/dist/extensions/index.d.cts +1 -379
  8. package/dist/extensions/index.d.mts +127 -224
  9. package/dist/extensions/index.d.mts.map +1 -1
  10. package/dist/extensions/index.mjs +238 -271
  11. package/dist/index.cjs +4423 -12618
  12. package/dist/index.d.cts +1 -165
  13. package/dist/index.d.mts +701 -121
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +8460 -11567
  16. package/dist/{slash-command-BmWRVPbv.d.mts → slash-command-BrwA1bHs.d.mts} +10 -11
  17. package/dist/slash-command-BrwA1bHs.d.mts.map +1 -0
  18. package/dist/theme-D1CI7_8s.d.mts +70 -0
  19. package/dist/theme-D1CI7_8s.d.mts.map +1 -0
  20. package/dist/typography-BdOKvXfQ.mjs +911 -0
  21. package/dist/typography-D-VnwOSw.cjs +970 -0
  22. package/dist/typography-DW7VApAR.cjs +1072 -0
  23. package/dist/use-maily-editor-BP6Mt8Nn.cjs +3991 -0
  24. package/dist/use-maily-editor-DFuhg38t.cjs +4939 -0
  25. package/dist/use-maily-editor-xVILP7H8.mjs +4488 -0
  26. package/package.json +82 -74
  27. package/readme.md +169 -128
  28. package/src/styles/index.css +2537 -0
  29. package/dist/blocks/index.d.cts.map +0 -1
  30. package/dist/chunk-CfYAbeIz.mjs +0 -13
  31. package/dist/extensions/index.d.cts.map +0 -1
  32. package/dist/extensions/index.mjs.map +0 -1
  33. package/dist/index.css +0 -2312
  34. package/dist/index.d.cts.map +0 -1
  35. package/dist/index.mjs.map +0 -1
  36. package/dist/slash-command-BmWRVPbv.d.mts.map +0 -1
  37. package/dist/slash-command-CK0-1FwR.d.cts +0 -39
  38. package/dist/slash-command-CK0-1FwR.d.cts.map +0 -1
  39. package/dist/spacer-DBtsr3hu.cjs +0 -5768
  40. package/dist/spacer-DzZWX-wB.mjs +0 -5456
  41. package/dist/spacer-DzZWX-wB.mjs.map +0 -1
  42. package/dist/typography-CWL13acR.cjs +0 -400
  43. package/dist/typography-DhrUe809.mjs +0 -282
  44. package/dist/typography-DhrUe809.mjs.map +0 -1
  45. package/dist/variable-C9S9ZoHv.d.cts +0 -108
  46. package/dist/variable-C9S9ZoHv.d.cts.map +0 -1
  47. package/dist/variable-DVwGrg2a.d.mts +0 -108
  48. package/dist/variable-DVwGrg2a.d.mts.map +0 -1
@@ -0,0 +1,2537 @@
1
+ :root {
2
+ --mly-color-white: #ffffff;
3
+ --mly-color-soft-gray: #f4f5f6;
4
+ --mly-color-gray-50: #f9fafb;
5
+ --mly-color-gray-200: #e5e7eb;
6
+ --mly-color-gray-300: #d1d5dc;
7
+ --mly-color-gray-400: #99a1af;
8
+ --mly-color-gray-500: #6a7282;
9
+ --mly-color-gray-900: #101828;
10
+ --mly-color-gray-950: #030712;
11
+ --mly-color-rose-50: #fef2f2;
12
+ --mly-color-rose-100: #ffe2e2;
13
+ --mly-color-rose-500: #fb2c36;
14
+ --mly-color-rose-600: #e7000b;
15
+ --mly-color-gray-100: #f3f4f6;
16
+ --mly-color-midnight-gray: #333333;
17
+
18
+ --mly-selection-background-color: rgba(35, 131, 226, 0.28);
19
+
20
+ --mly-bubble-border-color: rgb(229 231 235 / 70%);
21
+ --mly-radius-bubble-button: 10px;
22
+ --mly-placeholder-color: #9ca3af;
23
+ --mly-tiny-border: 0 0 0 1px
24
+ color-mix(in srgb, var(--mly-color-gray-200) 70%, transparent);
25
+ --mly-bubble-shadow:
26
+ 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
27
+
28
+ --mly-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
29
+
30
+ /* Font */
31
+ --mly-font-family: 'Inter';
32
+ --mly-font-fallback-family: sans-serif;
33
+ --mly-font: var(--mly-font-family), var(--mly-font-fallback-family);
34
+
35
+ /* Container */
36
+ --mly-container-max-width: 600px;
37
+ --mly-container-min-width: 300px;
38
+ }
39
+
40
+ /* A scroll container fades its own overflowing edges, driven by
41
+ `animation-timeline: scroll()` rather than a scroll listener. The registered
42
+ properties are what make the two lengths animatable; an unregistered custom
43
+ property would jump between the keyframes instead of interpolating. Engines
44
+ without scroll-linked animations get both edges faded permanently, which is
45
+ wrong only at the two ends of the range. A mask covers the border box and
46
+ clips whatever paints outside it, so these belong on an inner scroll region,
47
+ never on a bordered or shadowed card. */
48
+ @property --mly-scroll-fade-start {
49
+ syntax: '<length-percentage>';
50
+ inherits: false;
51
+ initial-value: 0px;
52
+ }
53
+
54
+ @property --mly-scroll-fade-end {
55
+ syntax: '<length-percentage>';
56
+ inherits: false;
57
+ initial-value: 0px;
58
+ }
59
+
60
+ @keyframes mly-scroll-fade-start {
61
+ from {
62
+ --mly-scroll-fade-start: 0px;
63
+ }
64
+
65
+ to {
66
+ --mly-scroll-fade-start: var(--mly-scroll-fade-size);
67
+ }
68
+ }
69
+
70
+ @keyframes mly-scroll-fade-end {
71
+ from {
72
+ --mly-scroll-fade-end: var(--mly-scroll-fade-size);
73
+ }
74
+
75
+ to {
76
+ --mly-scroll-fade-end: 0px;
77
+ }
78
+ }
79
+
80
+ [data-mly-scroll-fade] {
81
+ --mly-scroll-fade-size: min(12%, 40px);
82
+ --mly-scroll-fade-reveal: 96px;
83
+
84
+ scrollbar-width: none;
85
+ -ms-overflow-style: none;
86
+ mask-repeat: no-repeat;
87
+ }
88
+
89
+ [data-mly-scroll-fade]::-webkit-scrollbar {
90
+ display: none;
91
+ }
92
+
93
+ [data-mly-scroll-fade][data-axis='y'] {
94
+ overflow-x: hidden;
95
+ overflow-y: auto;
96
+ mask-image: linear-gradient(
97
+ to bottom,
98
+ transparent 0,
99
+ #000 var(--mly-scroll-fade-start),
100
+ #000 calc(100% - var(--mly-scroll-fade-end)),
101
+ transparent 100%
102
+ );
103
+ }
104
+
105
+ [data-mly-scroll-fade][data-axis='x'] {
106
+ overflow-x: auto;
107
+ overflow-y: hidden;
108
+ mask-image: linear-gradient(
109
+ to right,
110
+ transparent 0,
111
+ #000 var(--mly-scroll-fade-start),
112
+ #000 calc(100% - var(--mly-scroll-fade-end)),
113
+ transparent 100%
114
+ );
115
+ }
116
+
117
+ @supports (animation-timeline: scroll()) {
118
+ [data-mly-scroll-fade] {
119
+ animation:
120
+ mly-scroll-fade-start 1ms ease-in-out,
121
+ mly-scroll-fade-end 1ms ease-in-out;
122
+ animation-fill-mode: both;
123
+ animation-range:
124
+ 0 var(--mly-scroll-fade-reveal),
125
+ calc(100% - var(--mly-scroll-fade-reveal)) 100%;
126
+ }
127
+
128
+ [data-mly-scroll-fade][data-axis='y'] {
129
+ animation-timeline: scroll(self y), scroll(self y);
130
+ }
131
+
132
+ [data-mly-scroll-fade][data-axis='x'] {
133
+ animation-timeline: scroll(self x), scroll(self x);
134
+ }
135
+ }
136
+
137
+ @supports not (animation-timeline: scroll()) {
138
+ [data-mly-scroll-fade] {
139
+ --mly-scroll-fade-start: var(--mly-scroll-fade-size);
140
+ --mly-scroll-fade-end: var(--mly-scroll-fade-size);
141
+ }
142
+ }
143
+
144
+ /* Every width below is a border-box width. Nothing here may depend on the
145
+ host page having its own reset. */
146
+ [data-mly-editor-content],
147
+ [data-mly-editor-content] *,
148
+ [data-mly-toolbar],
149
+ [data-mly-toolbar] *,
150
+ [data-mly-bubble-menu],
151
+ [data-mly-bubble-menu] *,
152
+ [data-mly-popover],
153
+ [data-mly-popover] *,
154
+ [data-mly-tooltip],
155
+ [data-mly-tooltip] *,
156
+ [data-mly-dropdown-menu],
157
+ [data-mly-dropdown-menu] *,
158
+ [data-mly-select-content],
159
+ [data-mly-select-content] *,
160
+ [data-mly-suggestion],
161
+ [data-mly-suggestion] *,
162
+ [data-mly-html-code-block],
163
+ [data-mly-html-code-block] *,
164
+ [data-mly-drag-handle],
165
+ [data-mly-drag-handle] * {
166
+ box-sizing: border-box;
167
+ }
168
+
169
+ [data-mly-editor-body] {
170
+ font-family: var(--mly-font);
171
+ -webkit-font-smoothing: antialiased;
172
+ -moz-osx-font-smoothing: grayscale;
173
+ cursor: default;
174
+ }
175
+
176
+ [data-mly-editor-body][data-editable] {
177
+ cursor: text;
178
+ }
179
+
180
+ [data-mly-editor-content] [data-node-type='container'] {
181
+ margin-inline: auto;
182
+ max-width: var(--mly-container-max-width);
183
+ min-width: var(--mly-container-min-width);
184
+ }
185
+
186
+ [data-mly-editor-root] {
187
+ --mly-editor-border: #e4e4e7;
188
+ --mly-editor-focus: #a1a1aa;
189
+ }
190
+
191
+ [data-mly-editor-content] .ProseMirror {
192
+ position: relative;
193
+ outline: none;
194
+ }
195
+
196
+ [data-mly-editor-content] .ProseMirror-hideselection * {
197
+ caret-color: transparent;
198
+ }
199
+
200
+ [data-mly-editor-content] .selection {
201
+ padding-block: 2.5px;
202
+ background: var(--mly-selection-background-color);
203
+ box-decoration-break: clone;
204
+ -webkit-box-decoration-break: clone;
205
+ }
206
+
207
+ [data-mly-editor-content] .ProseMirror-gapcursor {
208
+ position: relative;
209
+ display: none;
210
+ pointer-events: none;
211
+ }
212
+
213
+ [data-mly-editor-content] .ProseMirror-gapcursor::after {
214
+ position: absolute;
215
+ top: -2px;
216
+ width: 20px;
217
+ border-top: 1px solid var(--mly-color-gray-900);
218
+ content: '';
219
+ animation: mly-gapcursor-blink 1.1s steps(2, start) infinite;
220
+ }
221
+
222
+ [data-mly-editor-content] .ProseMirror-focused .ProseMirror-gapcursor,
223
+ [data-mly-editor-content] .ProseMirror-gapcursor:focus {
224
+ display: block;
225
+ }
226
+
227
+ @keyframes mly-gapcursor-blink {
228
+ to {
229
+ visibility: hidden;
230
+ }
231
+ }
232
+
233
+ /* A host reset that blocks every image would stack an inline image. */
234
+ [data-mly-editor-content] img[data-node-type='inlineImage'] {
235
+ display: inline-block;
236
+ }
237
+
238
+ [data-mly-editor-content] img.ProseMirror-separator {
239
+ display: inline !important;
240
+ width: 0 !important;
241
+ height: 0 !important;
242
+ margin: 0 !important;
243
+ border: none !important;
244
+ }
245
+
246
+ [data-mly-editor-content] .ProseMirror-selectednode,
247
+ [data-mly-plain-variable-input] .ProseMirror-selectednode {
248
+ position: relative;
249
+ }
250
+
251
+ [data-mly-editor-content] .ProseMirror-selectednode::after,
252
+ [data-mly-plain-variable-input] .ProseMirror-selectednode::after {
253
+ position: absolute;
254
+ inset: -2px;
255
+ border-radius: 6px;
256
+ background: var(--mly-selection-background-color);
257
+ content: '';
258
+ pointer-events: none;
259
+ }
260
+
261
+ [data-mly-editor-content]
262
+ :where(.is-editor-empty:first-child, .is-empty):not(
263
+ :where([data-node-type='columns'], [data-node-type='section'], ul, li, ol)
264
+ ) {
265
+ position: relative;
266
+ }
267
+
268
+ [data-mly-editor-content]
269
+ :where(.is-editor-empty:first-child, .is-empty):not(
270
+ :where([data-node-type='columns'], [data-node-type='section'], ul, li, ol)
271
+ )::before {
272
+ position: absolute;
273
+ inset-inline: 0;
274
+ overflow: hidden;
275
+ /* The clip box is one line box tall, so a descender falls outside it. */
276
+ padding-block-end: 0.3em;
277
+ color: var(--mly-color-gray-400);
278
+ content: attr(data-placeholder);
279
+ pointer-events: none;
280
+ text-overflow: ellipsis;
281
+ white-space: nowrap;
282
+ }
283
+
284
+ [data-mly-editor-content]
285
+ .is-empty:where(.node-htmlCodeBlock):not([data-active-tab='preview'])::before,
286
+ [data-mly-editor-content]
287
+ .is-editor-empty:first-child:where(.node-htmlCodeBlock):not(
288
+ [data-active-tab='preview']
289
+ )::before {
290
+ top: 9px;
291
+ left: 9px;
292
+ font-size: 14px;
293
+ line-height: 20px;
294
+ }
295
+
296
+ [data-mly-editor-content]
297
+ .is-empty:where(.node-htmlCodeBlock):not([data-active-tab='code'])::before,
298
+ [data-mly-editor-content]
299
+ .is-editor-empty:first-child:where(.node-htmlCodeBlock):not(
300
+ [data-active-tab='code']
301
+ )::before {
302
+ content: '';
303
+ }
304
+
305
+ [data-mly-editor-content] table {
306
+ border-collapse: separate;
307
+ }
308
+
309
+ [data-mly-editor-content] :where(td, th) {
310
+ box-sizing: content-box;
311
+ }
312
+
313
+ [data-mly-image-view] {
314
+ cursor: default;
315
+ height: 100%;
316
+ }
317
+
318
+ [data-mly-image-wrapper] {
319
+ container: mly-image / inline-size;
320
+ position: relative;
321
+ max-width: 100%;
322
+ }
323
+
324
+ [data-mly-image-wrapper][data-align='left'] {
325
+ margin-left: 0;
326
+ }
327
+
328
+ [data-mly-image-wrapper][data-align='center'] {
329
+ margin-left: auto;
330
+ margin-right: auto;
331
+ }
332
+
333
+ [data-mly-image-wrapper][data-align='right'] {
334
+ margin-left: auto;
335
+ }
336
+
337
+ [data-mly-image] {
338
+ display: block;
339
+ width: 100%;
340
+ max-width: 100%;
341
+ height: auto;
342
+ }
343
+
344
+ [data-mly-image-handle] {
345
+ position: absolute;
346
+ top: 50%;
347
+ z-index: 10;
348
+ width: 8px;
349
+ height: 40px;
350
+ max-height: 50%;
351
+ transform: translateY(-50%);
352
+ cursor: col-resize;
353
+ border: 1px solid var(--mly-editor-border);
354
+ border-radius: 6px;
355
+ background: #ffffff;
356
+ }
357
+
358
+ [data-mly-image-handle][data-side='left'] {
359
+ left: 8px;
360
+ }
361
+
362
+ [data-mly-image-handle][data-side='right'] {
363
+ right: 8px;
364
+ }
365
+
366
+ @container mly-image (max-width: 150px) {
367
+ [data-mly-image-handle] {
368
+ width: 6px;
369
+ height: 20px;
370
+ }
371
+
372
+ [data-mly-image-handle][data-side='left'] {
373
+ left: 4px;
374
+ }
375
+
376
+ [data-mly-image-handle][data-side='right'] {
377
+ right: 4px;
378
+ }
379
+ }
380
+
381
+ [data-mly-image-state] {
382
+ display: flex;
383
+ align-items: center;
384
+ justify-content: center;
385
+ gap: 8px;
386
+ padding: 12px 16px;
387
+ border-radius: 8px;
388
+ background: #f4f4f5;
389
+ font-size: 14px;
390
+ font-weight: 500;
391
+ }
392
+
393
+ [data-mly-image-state][data-state='error'] {
394
+ color: #ef4444;
395
+ }
396
+
397
+ [data-mly-image-state][data-state='placeholder'] {
398
+ position: relative;
399
+ cursor: pointer;
400
+ }
401
+
402
+ [data-mly-image-input] {
403
+ position: absolute;
404
+ inset: 0;
405
+ cursor: pointer;
406
+ opacity: 0;
407
+ }
408
+
409
+ [data-mly-image-loading] {
410
+ position: relative;
411
+ }
412
+
413
+ [data-mly-image-preview] {
414
+ width: 100%;
415
+ max-width: 100%;
416
+ height: auto;
417
+ opacity: 0.4;
418
+ }
419
+
420
+ [data-mly-image-spinner] {
421
+ position: absolute;
422
+ top: 50%;
423
+ left: 50%;
424
+ width: 24px;
425
+ height: 24px;
426
+ margin: -12px 0 0 -12px;
427
+ border: 3px solid var(--mly-editor-border);
428
+ border-top-color: var(--mly-editor-focus);
429
+ border-radius: 50%;
430
+ animation: mly-image-spin 0.6s linear infinite;
431
+ }
432
+
433
+ @keyframes mly-image-spin {
434
+ to {
435
+ transform: rotate(360deg);
436
+ }
437
+ }
438
+
439
+ [data-mly-suggestion] {
440
+ z-index: 50;
441
+ width: 256px;
442
+ cursor: default;
443
+ overflow: hidden;
444
+ border: 1px solid var(--mly-bubble-border-color);
445
+ border-radius: 12px;
446
+ background: var(--mly-color-white);
447
+ box-shadow: var(--mly-bubble-shadow);
448
+ outline: none;
449
+ transition: all 0.15s ease;
450
+ }
451
+
452
+ [data-mly-suggestion-header] {
453
+ display: flex;
454
+ align-items: center;
455
+ justify-content: space-between;
456
+ gap: 8px;
457
+ padding: 6px;
458
+ background: var(--mly-color-gray-50);
459
+ color: var(--mly-color-gray-500);
460
+ }
461
+
462
+ [data-mly-suggestion-header] > span {
463
+ font-size: 12px;
464
+ line-height: 16px;
465
+ text-transform: uppercase;
466
+ }
467
+
468
+ [data-mly-suggestion-header] {
469
+ box-shadow: var(--mly-tiny-border);
470
+ }
471
+
472
+ [data-mly-suggestion-key] {
473
+ display: flex;
474
+ align-items: center;
475
+ justify-content: center;
476
+ width: 20px;
477
+ height: 20px;
478
+ border: 1px solid var(--mly-bubble-border-color);
479
+ border-radius: 8px;
480
+ }
481
+
482
+ [data-mly-suggestion-body] {
483
+ position: relative;
484
+ }
485
+
486
+ [data-mly-suggestion][data-variant='slash-command'] {
487
+ width: 272px;
488
+ }
489
+
490
+ [data-mly-suggestion][data-variant='slash-command']
491
+ [data-mly-suggestion-scroll] {
492
+ max-height: 312px;
493
+ }
494
+
495
+ [data-mly-suggestion-scroll] {
496
+ max-height: 208px;
497
+ }
498
+
499
+ [data-mly-suggestion-items] {
500
+ display: flex;
501
+ flex-direction: column;
502
+ gap: 2px;
503
+ width: 100%;
504
+ padding: 4px;
505
+ }
506
+
507
+ [data-mly-suggestion-item] {
508
+ display: flex;
509
+ align-items: center;
510
+ gap: 8px;
511
+ width: 100%;
512
+ padding: 4px 8px;
513
+ border: 0;
514
+ border-radius: 6px;
515
+ background: var(--mly-color-white);
516
+ color: var(--mly-color-gray-900);
517
+ font-family: var(--mly-font-mono);
518
+ font-size: 14px;
519
+ line-height: 20px;
520
+ text-align: left;
521
+ cursor: pointer;
522
+ }
523
+
524
+ [data-mly-suggestion-item]:hover,
525
+ [data-mly-suggestion-item][data-selected] {
526
+ background: var(--mly-color-soft-gray);
527
+ }
528
+
529
+ [data-mly-suggestion-item-icon] {
530
+ flex-shrink: 0;
531
+ color: var(--mly-color-rose-600);
532
+ }
533
+
534
+ [data-mly-suggestion-empty] {
535
+ display: flex;
536
+ align-items: center;
537
+ height: 28px;
538
+ padding: 4px 8px;
539
+ color: var(--mly-color-gray-900);
540
+ font-family: var(--mly-font-mono);
541
+ font-size: 14px;
542
+ line-height: 20px;
543
+ }
544
+
545
+ [data-mly-suggestion-footer] {
546
+ display: flex;
547
+ align-items: center;
548
+ justify-content: space-between;
549
+ gap: 8px;
550
+ padding: 6px;
551
+ color: var(--mly-color-gray-500);
552
+ }
553
+
554
+ [data-mly-suggestion-footer] {
555
+ box-shadow: var(--mly-tiny-border);
556
+ }
557
+
558
+ [data-mly-suggestion-hint] {
559
+ display: flex;
560
+ align-items: center;
561
+ gap: 4px;
562
+ font-size: 12px;
563
+ line-height: 16px;
564
+ }
565
+
566
+ [data-mly-spacer-view] {
567
+ position: relative;
568
+ cursor: default;
569
+ }
570
+
571
+ [data-mly-spacer-wrapper] {
572
+ position: relative;
573
+ width: 100%;
574
+ }
575
+
576
+ [data-mly-spacer-handle] {
577
+ position: absolute;
578
+ left: 50%;
579
+ z-index: 10;
580
+ width: 40px;
581
+ max-width: 50%;
582
+ height: 8px;
583
+ transform: translateX(-50%);
584
+ cursor: row-resize;
585
+ border: 1px solid var(--mly-editor-border);
586
+ border-radius: 6px;
587
+ background: #ffffff;
588
+ }
589
+
590
+ [data-mly-spacer-handle][data-side='top'] {
591
+ top: -4px;
592
+ }
593
+
594
+ [data-mly-spacer-handle][data-side='bottom'] {
595
+ bottom: -4px;
596
+ }
597
+
598
+ [data-mly-variable] {
599
+ white-space: nowrap;
600
+ }
601
+
602
+ [data-mly-variable-trigger] {
603
+ font-weight: 700;
604
+ opacity: 0.7;
605
+ }
606
+
607
+ [data-mly-slash-command-group] {
608
+ display: block;
609
+ padding: 8px;
610
+ border-bottom: 1px solid var(--mly-bubble-border-color);
611
+ background: var(--mly-color-soft-gray);
612
+ color: var(--mly-color-gray-400);
613
+ font-size: 12px;
614
+ line-height: 16px;
615
+ text-transform: uppercase;
616
+ }
617
+
618
+ [data-mly-slash-command-group]:not([data-first]) {
619
+ border-top: 1px solid var(--mly-bubble-border-color);
620
+ }
621
+
622
+ [data-mly-slash-command-item] {
623
+ display: flex;
624
+ align-items: center;
625
+ gap: 8px;
626
+ width: 100%;
627
+ padding: 4px 8px;
628
+ border: 0;
629
+ border-radius: 8px;
630
+ background: transparent;
631
+ color: var(--mly-color-gray-900);
632
+ font-family: inherit;
633
+ font-size: 14px;
634
+ line-height: 20px;
635
+ text-align: left;
636
+ cursor: pointer;
637
+ }
638
+
639
+ [data-mly-slash-command-item]:hover,
640
+ [data-mly-slash-command-item][data-selected] {
641
+ background: var(--mly-color-gray-100);
642
+ }
643
+
644
+ [data-mly-slash-command-icon] {
645
+ display: flex;
646
+ align-items: center;
647
+ justify-content: center;
648
+ flex-shrink: 0;
649
+ width: 24px;
650
+ height: 24px;
651
+ }
652
+
653
+ [data-mly-slash-command-text] {
654
+ display: block;
655
+ min-width: 0;
656
+ flex-grow: 1;
657
+ }
658
+
659
+ [data-mly-slash-command-title] {
660
+ display: block;
661
+ min-width: 0;
662
+ overflow: hidden;
663
+ text-overflow: ellipsis;
664
+ white-space: nowrap;
665
+ font-weight: 500;
666
+ }
667
+
668
+ [data-mly-slash-command-description] {
669
+ display: block;
670
+ min-width: 0;
671
+ overflow: hidden;
672
+ text-overflow: ellipsis;
673
+ white-space: nowrap;
674
+ color: rgb(51 51 51 / 60%);
675
+ font-size: 12px;
676
+ line-height: 16px;
677
+ }
678
+
679
+ [data-mly-toolbar] {
680
+ position: relative;
681
+ z-index: 10;
682
+ display: flex;
683
+ flex-wrap: wrap;
684
+ align-items: stretch;
685
+ gap: 8px;
686
+ margin-bottom: 16px;
687
+ }
688
+
689
+ [data-mly-toolbar-group] {
690
+ display: flex;
691
+ align-items: stretch;
692
+ gap: 2px;
693
+ padding: 2px;
694
+ border: 1px solid var(--mly-bubble-border-color);
695
+ border-radius: 12px;
696
+ background: var(--mly-color-white);
697
+ }
698
+
699
+ [data-mly-theme-settings] {
700
+ display: flex;
701
+ align-items: stretch;
702
+ gap: 2px;
703
+ padding: 4px;
704
+ border: 1px solid var(--mly-bubble-border-color);
705
+ border-radius: 16px;
706
+ background: var(--mly-color-white);
707
+ box-shadow: var(--mly-bubble-shadow);
708
+ }
709
+
710
+ [data-mly-theme-settings-trigger] {
711
+ display: inline-flex;
712
+ align-items: center;
713
+ justify-content: center;
714
+ flex-shrink: 0;
715
+ width: 28px;
716
+ height: 28px;
717
+ padding: 0;
718
+ border: 0;
719
+ border-radius: var(--mly-radius-bubble-button);
720
+ background: transparent;
721
+ color: var(--mly-color-gray-500);
722
+ font: inherit;
723
+ font-size: 14px;
724
+ font-weight: 500;
725
+ line-height: 20px;
726
+ cursor: pointer;
727
+ }
728
+
729
+ [data-mly-theme-settings-trigger]:hover {
730
+ background: var(--mly-color-soft-gray);
731
+ color: var(--mly-color-gray-900);
732
+ }
733
+
734
+ [data-mly-theme-settings-trigger][data-open] {
735
+ background: color-mix(in srgb, var(--mly-color-soft-gray) 70%, transparent);
736
+ color: var(--mly-color-gray-900);
737
+ }
738
+
739
+ [data-mly-theme-settings-trigger]:focus-visible {
740
+ position: relative;
741
+ z-index: 10;
742
+ background: var(--mly-color-soft-gray);
743
+ color: var(--mly-color-gray-900);
744
+ box-shadow: 0 0 0 1px var(--mly-color-gray-300);
745
+ outline: none;
746
+ }
747
+
748
+ [data-mly-popover][data-variant='theme-settings'] {
749
+ display: flex;
750
+ flex-direction: column;
751
+ gap: 8px;
752
+ width: 19rem;
753
+ padding: 8px;
754
+ }
755
+
756
+ [data-mly-popover][data-variant='theme-settings']
757
+ [data-mly-divider][data-type='horizontal'] {
758
+ margin: 0 -8px;
759
+ }
760
+
761
+ [data-mly-popover][data-variant='theme-settings'] [data-mly-field] {
762
+ display: grid;
763
+ grid-template-columns: 96px minmax(0, 1fr);
764
+ align-items: center;
765
+ gap: 8px;
766
+ padding-left: 0;
767
+ }
768
+
769
+ [data-mly-popover][data-variant='theme-settings'] [data-mly-field-label] {
770
+ padding-left: 4px;
771
+ overflow: hidden;
772
+ text-overflow: ellipsis;
773
+ white-space: nowrap;
774
+ }
775
+
776
+ [data-mly-popover][data-variant='theme-settings'] [data-mly-select-trigger] {
777
+ justify-content: flex-start;
778
+ width: 100%;
779
+ min-width: 0;
780
+ }
781
+
782
+ [data-mly-popover][data-variant='theme-settings']
783
+ [data-mly-unit-field-wrapper]
784
+ [data-mly-select-trigger] {
785
+ justify-content: center;
786
+ width: 28px;
787
+ }
788
+
789
+ [data-mly-popover][data-variant='theme-settings']
790
+ [data-mly-select-trigger]
791
+ > :not([data-mly-select-icon]) {
792
+ overflow: hidden;
793
+ white-space: nowrap;
794
+ text-overflow: ellipsis;
795
+ }
796
+
797
+ [data-mly-theme-settings-group] {
798
+ display: flex;
799
+ align-items: center;
800
+ gap: 4px;
801
+ min-width: 0;
802
+ }
803
+
804
+ [data-mly-bubble-button][data-mly-theme-settings-color] {
805
+ justify-content: flex-start;
806
+ gap: 8px;
807
+ width: 100%;
808
+ padding: 0 8px;
809
+ border-radius: 8px;
810
+ background: var(--mly-color-soft-gray);
811
+ color: var(--mly-color-gray-900);
812
+ font-weight: 400;
813
+ text-transform: uppercase;
814
+ }
815
+
816
+ [data-mly-bubble-button][data-mly-theme-settings-color]:hover,
817
+ [data-mly-bubble-button][data-mly-theme-settings-color][data-active] {
818
+ background: var(--mly-color-soft-gray);
819
+ box-shadow: 0 0 0 1px var(--mly-color-gray-300);
820
+ }
821
+
822
+ [data-mly-theme-settings-swatch] {
823
+ display: block;
824
+ flex-shrink: 0;
825
+ width: 14px;
826
+ height: 14px;
827
+ border-radius: 9999px;
828
+ box-shadow: var(--mly-tiny-border);
829
+ }
830
+
831
+ [data-mly-theme-settings-color-value] {
832
+ overflow: hidden;
833
+ text-overflow: ellipsis;
834
+ white-space: nowrap;
835
+ }
836
+
837
+ [data-mly-bubble-menu] {
838
+ display: flex;
839
+ flex-wrap: wrap;
840
+ max-width: 100%;
841
+ align-items: stretch;
842
+ gap: 2px;
843
+ padding: 2px;
844
+ border: 1px solid var(--mly-bubble-border-color);
845
+ border-radius: 12px;
846
+ background: var(--mly-color-white);
847
+ box-shadow: var(--mly-bubble-shadow);
848
+ outline: none;
849
+ }
850
+
851
+ [data-mly-bubble-button] {
852
+ display: inline-flex;
853
+ align-items: center;
854
+ justify-content: center;
855
+ flex-shrink: 0;
856
+ width: 28px;
857
+ height: 28px;
858
+ padding: 0;
859
+ border: 0;
860
+ border-radius: var(--mly-radius-bubble-button);
861
+ background: transparent;
862
+ color: var(--mly-color-gray-500);
863
+ font: inherit;
864
+ font-size: 14px;
865
+ font-weight: 500;
866
+ line-height: 20px;
867
+ cursor: pointer;
868
+ }
869
+
870
+ [data-mly-bubble-button]:hover,
871
+ [data-mly-bubble-button]:focus-visible {
872
+ background: var(--mly-color-soft-gray);
873
+ color: var(--mly-color-gray-900);
874
+ }
875
+
876
+ [data-mly-bubble-button]:focus-visible {
877
+ position: relative;
878
+ z-index: 10;
879
+ box-shadow: 0 0 0 1px var(--mly-color-gray-300);
880
+ outline: none;
881
+ }
882
+
883
+ [data-mly-bubble-button][data-active] {
884
+ background: color-mix(in srgb, var(--mly-color-soft-gray) 70%, transparent);
885
+ color: var(--mly-color-gray-900);
886
+ }
887
+
888
+ [data-mly-bubble-button]:disabled {
889
+ opacity: 0.6;
890
+ cursor: not-allowed;
891
+ }
892
+
893
+ [data-mly-bubble-button][data-variant='ai'],
894
+ [data-mly-bubble-button][data-variant='color'],
895
+ [data-mly-bubble-button][data-variant='turn-into'] {
896
+ gap: 4px;
897
+ width: auto;
898
+ padding: 0 6px;
899
+ }
900
+
901
+ [data-mly-bubble-button]:has(+ [data-mly-divider]) {
902
+ border-top-right-radius: 4px;
903
+ border-bottom-right-radius: 4px;
904
+ }
905
+
906
+ [data-mly-divider] + [data-mly-bubble-button] {
907
+ border-top-left-radius: 4px;
908
+ border-bottom-left-radius: 4px;
909
+ }
910
+
911
+ [data-mly-divider] {
912
+ flex-shrink: 0;
913
+ background: var(--mly-bubble-border-color);
914
+ }
915
+
916
+ [data-mly-divider][data-type='vertical'] {
917
+ width: 1px;
918
+ }
919
+
920
+ [data-mly-divider][data-type='horizontal'] {
921
+ height: 1px;
922
+ margin: 4px -4px;
923
+ }
924
+
925
+ [data-mly-popover] {
926
+ position: relative;
927
+ z-index: 60;
928
+ padding: 2px;
929
+ border: 1px solid var(--mly-bubble-border-color);
930
+ border-radius: 12px;
931
+ background: var(--mly-color-white);
932
+ color: var(--mly-color-gray-950);
933
+ box-shadow: var(--mly-bubble-shadow);
934
+ cursor: default;
935
+ outline: none;
936
+ }
937
+
938
+ [data-mly-popover][data-variant='text-field'] {
939
+ width: auto;
940
+ }
941
+
942
+ [data-mly-popover][data-variant='align'] {
943
+ display: flex;
944
+ flex-direction: column;
945
+ width: auto;
946
+ }
947
+
948
+ [data-mly-popover][data-variant='color-swatch'] {
949
+ display: flex;
950
+ flex-direction: column;
951
+ gap: 0;
952
+ width: fit-content;
953
+ padding: 4px;
954
+ }
955
+
956
+ [data-mly-popover][data-variant='image-metadata'],
957
+ [data-mly-popover][data-variant='link-card'] {
958
+ width: auto;
959
+ padding: 4px;
960
+ }
961
+
962
+ [data-mly-popover-arrow] {
963
+ display: flex;
964
+ }
965
+
966
+ [data-mly-popover-arrow][data-side='top'] {
967
+ bottom: -7px;
968
+ rotate: 180deg;
969
+ }
970
+
971
+ [data-mly-popover-arrow][data-side='bottom'] {
972
+ top: -7px;
973
+ }
974
+
975
+ [data-mly-popover-arrow][data-side='left'] {
976
+ right: -13px;
977
+ rotate: 90deg;
978
+ }
979
+
980
+ [data-mly-popover-arrow][data-side='right'] {
981
+ left: -13px;
982
+ rotate: -90deg;
983
+ }
984
+
985
+ [data-mly-popover-arrow][data-align='start'] {
986
+ left: calc(var(--anchor-width) / 2 + 2px);
987
+ }
988
+
989
+ [data-mly-popover-arrow][data-align='end'] {
990
+ right: calc(var(--anchor-width) / 2 + 5px);
991
+ }
992
+
993
+ [data-mly-arrow-fill] {
994
+ fill: var(--mly-color-white);
995
+ }
996
+
997
+ [data-mly-arrow-border] {
998
+ fill: var(--mly-color-gray-200);
999
+ }
1000
+
1001
+ [data-mly-align-group],
1002
+ [data-mly-vertical-alignment-switch] {
1003
+ display: flex;
1004
+ align-items: stretch;
1005
+ gap: 2px;
1006
+ }
1007
+
1008
+ [data-mly-text-field] {
1009
+ display: flex;
1010
+ align-items: stretch;
1011
+ gap: 2px;
1012
+ }
1013
+
1014
+ [data-mly-field] {
1015
+ display: flex;
1016
+ align-items: center;
1017
+ gap: 8px;
1018
+ padding-left: 4px;
1019
+ }
1020
+
1021
+ [data-mly-field-label] {
1022
+ color: var(--mly-color-gray-500);
1023
+ font-size: 14px;
1024
+ line-height: 20px;
1025
+ }
1026
+
1027
+ [data-mly-field-input] {
1028
+ width: 136px;
1029
+ height: 28px;
1030
+ padding: 0 8px;
1031
+ border: 0;
1032
+ border-radius: 8px;
1033
+ background: var(--mly-color-soft-gray);
1034
+ color: var(--mly-color-gray-900);
1035
+ font: inherit;
1036
+ font-size: 14px;
1037
+ outline: none;
1038
+ }
1039
+
1040
+ [data-mly-field-input]::placeholder {
1041
+ color: var(--mly-color-gray-500);
1042
+ }
1043
+
1044
+ [data-mly-field-control] {
1045
+ position: relative;
1046
+ }
1047
+
1048
+ [data-mly-field-control] [data-mly-field-input] {
1049
+ padding-right: 26px;
1050
+ }
1051
+
1052
+ [data-mly-field-icon] {
1053
+ position: absolute;
1054
+ top: 0;
1055
+ right: 8px;
1056
+ bottom: 0;
1057
+ display: flex;
1058
+ align-items: center;
1059
+ color: var(--mly-color-gray-500);
1060
+ pointer-events: none;
1061
+ }
1062
+
1063
+ [data-mly-field-icon] svg {
1064
+ width: 14px;
1065
+ height: 14px;
1066
+ }
1067
+
1068
+ [data-mly-skeleton-editor] {
1069
+ width: 184px;
1070
+ height: 28px;
1071
+ padding: 0 10px 0 6px;
1072
+ overflow-x: scroll;
1073
+ scrollbar-width: none;
1074
+ -ms-overflow-style: none;
1075
+ }
1076
+
1077
+ [data-mly-skeleton-editor]::-webkit-scrollbar {
1078
+ display: none;
1079
+ }
1080
+
1081
+ [data-mly-skeleton-editor] .tiptap {
1082
+ outline: none;
1083
+ }
1084
+
1085
+ [data-mly-variable-only-editor] {
1086
+ width: 136px;
1087
+ height: 28px;
1088
+ padding: 0 10px 0 6px;
1089
+ border-radius: 8px;
1090
+ background: var(--mly-color-soft-gray);
1091
+ overflow-x: scroll;
1092
+ scrollbar-width: none;
1093
+ -ms-overflow-style: none;
1094
+ }
1095
+
1096
+ [data-mly-variable-only-editor]::-webkit-scrollbar {
1097
+ display: none;
1098
+ }
1099
+
1100
+ [data-mly-variable-only-line] {
1101
+ height: 28px;
1102
+ margin: 0;
1103
+ padding-top: 4px;
1104
+ color: var(--mly-color-gray-900);
1105
+ font-size: 14px;
1106
+ line-height: 20px;
1107
+ white-space: nowrap;
1108
+ overflow-x: scroll;
1109
+ scrollbar-width: none;
1110
+ -ms-overflow-style: none;
1111
+ }
1112
+
1113
+ [data-mly-variable-only-line]::-webkit-scrollbar {
1114
+ display: none;
1115
+ }
1116
+
1117
+ [data-mly-variable-only-editor] .tiptap {
1118
+ outline: none;
1119
+ }
1120
+
1121
+ [data-mly-variable-only-line].is-editor-empty:first-child::before {
1122
+ content: attr(data-placeholder);
1123
+ color: var(--mly-color-gray-500);
1124
+ float: left;
1125
+ height: 0;
1126
+ pointer-events: none;
1127
+ }
1128
+
1129
+ [data-mly-plain-variable-input] .tiptap {
1130
+ outline: none;
1131
+ }
1132
+
1133
+ [data-mly-plain-variable-input-line] {
1134
+ margin: -2px;
1135
+ padding: 2px;
1136
+ white-space: pre;
1137
+ overflow-x: auto;
1138
+ scrollbar-width: none;
1139
+ }
1140
+
1141
+ [data-mly-plain-variable-input-line]::-webkit-scrollbar {
1142
+ display: none;
1143
+ }
1144
+
1145
+ [data-mly-plain-variable-input-line].is-editor-empty:first-child::before {
1146
+ content: attr(data-placeholder);
1147
+ color: var(--mly-color-gray-500);
1148
+ float: left;
1149
+ height: 0;
1150
+ pointer-events: none;
1151
+ }
1152
+
1153
+ [data-mly-field-input]:focus-visible {
1154
+ box-shadow: 0 0 0 1px var(--mly-color-gray-300);
1155
+ }
1156
+
1157
+ [data-mly-metadata-field] {
1158
+ gap: 4px;
1159
+ padding-left: 0;
1160
+ }
1161
+
1162
+ [data-mly-metadata-field] [data-mly-field-label] {
1163
+ min-width: 64px;
1164
+ padding-left: 8px;
1165
+ color: var(--mly-color-gray-400);
1166
+ font-weight: 500;
1167
+ }
1168
+
1169
+ [data-mly-popover][data-variant='link-card'] [data-mly-field-input] {
1170
+ width: 200px;
1171
+ padding: 0 10px 0 6px;
1172
+ }
1173
+
1174
+ [data-mly-text-field] [data-mly-field-input] {
1175
+ width: 184px;
1176
+ padding: 0 10px 0 6px;
1177
+ border-radius: 0;
1178
+ background: transparent;
1179
+ }
1180
+
1181
+ [data-mly-text-field] [data-mly-field-input]::placeholder {
1182
+ color: var(--mly-placeholder-color);
1183
+ }
1184
+
1185
+ [data-mly-text-field] [data-mly-field-input]:focus-visible {
1186
+ box-shadow: none;
1187
+ }
1188
+
1189
+ [data-mly-unit-field-wrapper] {
1190
+ display: flex;
1191
+ align-items: center;
1192
+ width: 100%;
1193
+ height: 28px;
1194
+ }
1195
+
1196
+ /* A bubble menu sizes its own fields; only the popovers stretch to the row. */
1197
+ [data-mly-bubble-menu] > [data-mly-unit-field-wrapper] {
1198
+ width: auto;
1199
+ }
1200
+
1201
+ [data-mly-bubble-menu] > [data-mly-unit-field-wrapper] [data-mly-unit-field] {
1202
+ width: 80px;
1203
+ }
1204
+
1205
+ [data-mly-image-width-field] [data-mly-unit-field-wrapper] {
1206
+ width: 80px;
1207
+ }
1208
+
1209
+ [data-mly-unit-field] {
1210
+ position: relative;
1211
+ z-index: 10;
1212
+ display: flex;
1213
+ align-items: stretch;
1214
+ width: 100%;
1215
+ height: 28px;
1216
+ border-radius: 8px;
1217
+ background: var(--mly-color-soft-gray);
1218
+ }
1219
+
1220
+ [data-mly-unit-field]:has(:focus-within) {
1221
+ box-shadow: 0 0 0 1px var(--mly-color-gray-300);
1222
+ }
1223
+
1224
+ [data-mly-unit-field] > span {
1225
+ display: flex;
1226
+ align-items: center;
1227
+ justify-content: center;
1228
+ flex-shrink: 0;
1229
+ aspect-ratio: 1;
1230
+ width: 28px;
1231
+ color: var(--mly-color-midnight-gray);
1232
+ cursor: ew-resize;
1233
+ pointer-events: auto;
1234
+ }
1235
+
1236
+ [data-mly-unit-field][data-with-presets] {
1237
+ border-top-right-radius: 0;
1238
+ border-bottom-right-radius: 0;
1239
+ }
1240
+
1241
+ [data-mly-unit-field-wrapper] [data-mly-select-trigger] {
1242
+ justify-content: center;
1243
+ flex-grow: 0;
1244
+ flex-shrink: 0;
1245
+ width: 28px;
1246
+ height: 28px;
1247
+ padding: 0;
1248
+ border-left: 1px solid var(--mly-color-white);
1249
+ border-top-left-radius: 0;
1250
+ border-bottom-left-radius: 0;
1251
+ }
1252
+
1253
+ [data-mly-unit-field-wrapper] [data-mly-select-icon] {
1254
+ width: auto;
1255
+ margin-left: 0;
1256
+ border-left: 0;
1257
+ opacity: 0.5;
1258
+ }
1259
+
1260
+ [data-mly-unit-field] > input {
1261
+ width: 100%;
1262
+ min-width: 0;
1263
+ padding: 0 6px 0 0;
1264
+ border: 0;
1265
+ background: transparent;
1266
+ color: var(--mly-color-gray-900);
1267
+ font: inherit;
1268
+ font-size: 14px;
1269
+ font-variant-numeric: tabular-nums;
1270
+ appearance: none;
1271
+ outline: none;
1272
+ }
1273
+
1274
+ body:has([data-mly-unit-field][data-dragging='true']) {
1275
+ cursor: ew-resize !important;
1276
+ user-select: none !important;
1277
+ }
1278
+
1279
+ body:has([data-mly-unit-field][data-dragging='true']) * {
1280
+ cursor: ew-resize !important;
1281
+ pointer-events: none !important;
1282
+ }
1283
+
1284
+ [data-mly-color-swatch] {
1285
+ display: grid;
1286
+ grid-template-columns: repeat(5, 1fr);
1287
+ gap: 2px;
1288
+ }
1289
+
1290
+ [data-mly-color-swatch-preview] {
1291
+ display: block;
1292
+ flex-shrink: 0;
1293
+ width: 20px;
1294
+ height: 20px;
1295
+ border: 1px solid transparent;
1296
+ border-radius: 8px;
1297
+ }
1298
+
1299
+ [data-mly-color-swatch-preview][data-transparent] {
1300
+ border-color: var(--mly-color-gray-300);
1301
+ background-image: conic-gradient(
1302
+ var(--mly-color-gray-200) 25%,
1303
+ var(--mly-color-white) 25% 50%,
1304
+ var(--mly-color-gray-200) 50% 75%,
1305
+ var(--mly-color-white) 75%
1306
+ );
1307
+ background-size: 8px 8px;
1308
+ }
1309
+
1310
+ [data-mly-color-trigger] {
1311
+ display: flex;
1312
+ align-items: center;
1313
+ justify-content: center;
1314
+ flex-shrink: 0;
1315
+ width: 20px;
1316
+ height: 20px;
1317
+ border: 1px solid var(--mly-color-gray-200);
1318
+ border-radius: 8px;
1319
+ background: var(--mly-color-white);
1320
+ font-size: 12px;
1321
+ line-height: 16px;
1322
+ }
1323
+
1324
+ [data-mly-color-trigger][data-group='background'] {
1325
+ font-weight: 600;
1326
+ }
1327
+
1328
+ [data-mly-color-trigger][data-group='text'] {
1329
+ font-weight: 400;
1330
+ }
1331
+
1332
+ [data-mly-bubble-button]:hover [data-mly-color-trigger] {
1333
+ border-color: var(--mly-color-gray-300);
1334
+ }
1335
+
1336
+ [data-mly-color-trigger-letter] {
1337
+ position: relative;
1338
+ top: -1px;
1339
+ line-height: 1;
1340
+ }
1341
+
1342
+ /* This swaps between white or black based on the background color. */
1343
+ /* After testing against all RGB background colors, 49.44 minimizes the number
1344
+ of WCAG 4.5:1 contrast failures. */
1345
+ [data-mly-dynamic-text-color] {
1346
+ color: lch(
1347
+ from var(--mly-dynamic-text-color-background) calc((49.44 - l) * infinity) 0
1348
+ 0
1349
+ );
1350
+ }
1351
+
1352
+ [data-mly-button] {
1353
+ align-items: center;
1354
+ background: var(--mly-button-background, #18181b);
1355
+ border: 1px solid var(--mly-button-border, #18181b);
1356
+ border-radius: var(--mly-button-radius, 6px);
1357
+ color: var(--mly-button-color, #fafafa);
1358
+ cursor: pointer;
1359
+ display: inline-flex;
1360
+ font: inherit;
1361
+ justify-content: center;
1362
+ min-height: var(--mly-button-height, 32px);
1363
+ padding: var(--mly-button-padding, 6px 12px);
1364
+ }
1365
+
1366
+ [data-mly-button][data-disabled] {
1367
+ cursor: not-allowed;
1368
+ opacity: 0.5;
1369
+ }
1370
+
1371
+ [data-mly-tooltip] {
1372
+ z-index: 50;
1373
+ width: fit-content;
1374
+ overflow: hidden;
1375
+ padding: 4px 8px;
1376
+ border: 1px solid var(--mly-color-gray-200);
1377
+ border-radius: 12px;
1378
+ background: var(--mly-color-white);
1379
+ color: var(--mly-color-gray-950);
1380
+ font-size: 12px;
1381
+ line-height: 16px;
1382
+ white-space: nowrap;
1383
+ }
1384
+
1385
+ [data-mly-tooltip-arrow] {
1386
+ display: flex;
1387
+ }
1388
+
1389
+ [data-mly-tooltip-arrow][data-side='top'] {
1390
+ bottom: -7px;
1391
+ rotate: 180deg;
1392
+ }
1393
+
1394
+ [data-mly-tooltip-arrow][data-side='bottom'] {
1395
+ top: -7px;
1396
+ }
1397
+
1398
+ [data-mly-tooltip-arrow][data-side='left'] {
1399
+ right: -13px;
1400
+ rotate: 90deg;
1401
+ }
1402
+
1403
+ [data-mly-tooltip-arrow][data-side='right'] {
1404
+ left: -13px;
1405
+ rotate: -90deg;
1406
+ }
1407
+
1408
+ [data-mly-popover][data-variant='color-swatch'][data-picker] {
1409
+ min-width: 220px;
1410
+ }
1411
+
1412
+ [data-mly-color-palette-icon] {
1413
+ width: 14px;
1414
+ height: 14px;
1415
+ flex-shrink: 0;
1416
+ }
1417
+
1418
+ [data-mly-popover-back] {
1419
+ display: inline-flex;
1420
+ align-items: center;
1421
+ justify-content: flex-start;
1422
+ gap: 6px;
1423
+ width: 100%;
1424
+ min-height: 28px;
1425
+ height: 28px;
1426
+ padding: 8px;
1427
+ border: 0;
1428
+ border-radius: 8px;
1429
+ background: transparent;
1430
+ color: var(--mly-color-gray-500);
1431
+ font: inherit;
1432
+ font-size: 14px;
1433
+ font-weight: 400;
1434
+ line-height: 20px;
1435
+ cursor: pointer;
1436
+ }
1437
+
1438
+ [data-mly-popover-back]:hover {
1439
+ background: var(--mly-color-soft-gray);
1440
+ color: var(--mly-color-gray-900);
1441
+ }
1442
+
1443
+ [data-mly-color-picker] {
1444
+ display: block;
1445
+ padding: 2px;
1446
+ }
1447
+
1448
+ [data-mly-color-picker-area] {
1449
+ position: relative;
1450
+ width: 100%;
1451
+ height: 160px;
1452
+ border-radius: 8px;
1453
+ cursor: crosshair;
1454
+ }
1455
+
1456
+ [data-mly-color-picker-area-background] {
1457
+ overflow: hidden;
1458
+ border-radius: 8px;
1459
+ background:
1460
+ linear-gradient(to top, #000000, transparent),
1461
+ linear-gradient(to right, #ffffff, transparent);
1462
+ }
1463
+
1464
+ [data-mly-color-picker-thumb] {
1465
+ width: 14px;
1466
+ height: 14px;
1467
+ border: 2px solid var(--mly-color-white);
1468
+ border-radius: 9999px;
1469
+ box-shadow: 0 0 0 1px rgb(0 0 0 / 10%);
1470
+ }
1471
+
1472
+ [data-mly-color-picker-slider] {
1473
+ position: relative;
1474
+ width: 100%;
1475
+ height: 16px;
1476
+ margin-top: 8px;
1477
+ }
1478
+
1479
+ [data-mly-color-picker-slider-track] {
1480
+ width: 100%;
1481
+ height: 100%;
1482
+ border-radius: 9999px;
1483
+ }
1484
+
1485
+ [data-mly-color-picker-input] {
1486
+ width: 100%;
1487
+ min-width: 0;
1488
+ margin-top: 4px;
1489
+ padding: 6px 8px;
1490
+ border: 1px solid var(--mly-color-gray-200);
1491
+ border-radius: var(--mly-radius-bubble-button);
1492
+ background: var(--mly-color-white);
1493
+ font: inherit;
1494
+ font-size: 14px;
1495
+ text-transform: uppercase;
1496
+ outline: none;
1497
+ }
1498
+
1499
+ [data-mly-color-picker-input]:focus-visible {
1500
+ border-color: var(--mly-color-gray-300);
1501
+ }
1502
+
1503
+ [data-mly-editor-content] [data-visibility-action] {
1504
+ position: relative;
1505
+ }
1506
+
1507
+ [data-mly-editor-content] [data-visibility-action]::before {
1508
+ position: absolute;
1509
+ top: 0;
1510
+ inset-inline-end: -24px;
1511
+ width: 16px;
1512
+ height: 16px;
1513
+ background: color-mix(
1514
+ in oklab,
1515
+ var(--mly-color-midnight-gray) 70%,
1516
+ transparent
1517
+ );
1518
+ content: '';
1519
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
1520
+ mask-size: contain;
1521
+ mask-repeat: no-repeat;
1522
+ mask-position: center;
1523
+ pointer-events: none;
1524
+ }
1525
+
1526
+ [data-mly-editor-content] [data-node-type='button'] {
1527
+ display: flex;
1528
+ align-items: center;
1529
+ justify-content: center;
1530
+ width: fit-content;
1531
+ }
1532
+
1533
+ [data-mly-editor-content] [data-node-type='button'][data-align='center'] {
1534
+ margin-inline: auto;
1535
+ }
1536
+
1537
+ [data-mly-editor-content] [data-node-type='button'][data-align='right'] {
1538
+ margin-inline-start: auto;
1539
+ }
1540
+
1541
+ [data-mly-editor-content] [data-node-type='button'][data-kind='full-width'] {
1542
+ width: 100%;
1543
+ }
1544
+
1545
+ [data-mly-editor-content]
1546
+ [data-node-type='button'][data-kind='full-width'][data-align='left'] {
1547
+ justify-content: flex-start;
1548
+ }
1549
+
1550
+ [data-mly-editor-content]
1551
+ [data-node-type='button'][data-kind='full-width'][data-align='right'] {
1552
+ justify-content: flex-end;
1553
+ }
1554
+
1555
+ [data-mly-editor-content] [data-node-type='columns'] {
1556
+ display: flex;
1557
+ margin: 0;
1558
+ padding: 0;
1559
+ }
1560
+
1561
+ [data-mly-editor-content] [data-node-type='column'] {
1562
+ flex-grow: 1;
1563
+ flex-basis: 0;
1564
+ overflow: hidden;
1565
+ }
1566
+
1567
+ [data-mly-editor-content] [data-node-type='column'] > *:first-child {
1568
+ margin-top: 0;
1569
+ }
1570
+
1571
+ [data-mly-editor-content] [data-node-type='column'] > *:last-child {
1572
+ margin-bottom: 0;
1573
+ }
1574
+
1575
+ [data-mly-editor-content]
1576
+ [data-node-type='columns'].has-focus
1577
+ [data-node-type='column'],
1578
+ [data-mly-editor-content]
1579
+ [data-node-type='columns']:hover
1580
+ [data-node-type='column'] {
1581
+ outline: 1.5px dashed #e9ecef;
1582
+ }
1583
+
1584
+ [data-mly-editor-content]
1585
+ [data-node-type='columns']
1586
+ [data-node-type='column'].has-focus {
1587
+ outline-style: solid;
1588
+ }
1589
+
1590
+ [data-mly-popover][data-variant='style'] {
1591
+ width: 260px;
1592
+ padding: 4px;
1593
+ }
1594
+
1595
+ [data-mly-border-style-config] {
1596
+ display: flex;
1597
+ flex-direction: column;
1598
+ gap: 4px;
1599
+ }
1600
+
1601
+ [data-mly-border-style-config] [data-mly-divider][data-type='horizontal'] {
1602
+ margin: 0 -4px;
1603
+ }
1604
+
1605
+ [data-mly-style-config-row] {
1606
+ display: flex;
1607
+ align-items: center;
1608
+ justify-content: space-between;
1609
+ gap: 8px;
1610
+ width: 100%;
1611
+ padding-right: 32px;
1612
+ }
1613
+
1614
+ [data-mly-style-config-row][data-align='start'] {
1615
+ align-items: flex-start;
1616
+ }
1617
+
1618
+ [data-mly-style-config-row] [data-mly-field-label] {
1619
+ min-width: 64px;
1620
+ padding-left: 8px;
1621
+ }
1622
+
1623
+ [data-mly-style-config-row][data-align='start'] [data-mly-field-label] {
1624
+ display: flex;
1625
+ align-items: center;
1626
+ height: 28px;
1627
+ }
1628
+
1629
+ [data-mly-image-width-field] {
1630
+ display: flex;
1631
+ align-items: center;
1632
+ justify-content: space-between;
1633
+ gap: 10px;
1634
+ width: 100%;
1635
+ padding-left: 4px;
1636
+ }
1637
+
1638
+ [data-mly-image-width-field] [data-mly-field-label] {
1639
+ padding-left: 4px;
1640
+ }
1641
+
1642
+ [data-mly-style-config-link] {
1643
+ display: flex;
1644
+ align-items: center;
1645
+ justify-content: space-between;
1646
+ gap: 6px;
1647
+ width: 100%;
1648
+ min-height: 28px;
1649
+ height: 28px;
1650
+ padding: 8px;
1651
+ border: 0;
1652
+ border-radius: 8px;
1653
+ background: transparent;
1654
+ color: var(--mly-color-gray-500);
1655
+ font: inherit;
1656
+ font-size: 14px;
1657
+ font-weight: 400;
1658
+ line-height: 20px;
1659
+ cursor: pointer;
1660
+ }
1661
+
1662
+ [data-mly-style-config-link] > span {
1663
+ display: flex;
1664
+ align-items: center;
1665
+ gap: 6px;
1666
+ }
1667
+
1668
+ [data-mly-style-config-link]:hover {
1669
+ background: var(--mly-color-soft-gray);
1670
+ color: var(--mly-color-gray-900);
1671
+ }
1672
+
1673
+ [data-mly-style-config-link][data-active] {
1674
+ background: color-mix(in srgb, var(--mly-color-soft-gray) 70%, transparent);
1675
+ color: var(--mly-color-gray-900);
1676
+ }
1677
+
1678
+ [data-mly-popover][data-variant='columns-width'] {
1679
+ width: 280px;
1680
+ padding: 4px;
1681
+ }
1682
+
1683
+ [data-mly-popover][data-variant='columns-width']
1684
+ [data-mly-divider][data-type='horizontal'] {
1685
+ margin: 4px 0;
1686
+ }
1687
+
1688
+ [data-mly-columns-count-switch] {
1689
+ display: grid;
1690
+ grid-template-columns: repeat(2, 1fr);
1691
+ gap: 4px;
1692
+ }
1693
+
1694
+ [data-mly-columns-count-button] {
1695
+ display: flex;
1696
+ align-items: center;
1697
+ justify-content: flex-start;
1698
+ gap: 6px;
1699
+ min-height: 28px;
1700
+ height: 28px;
1701
+ padding: 0 8px;
1702
+ border: 0;
1703
+ border-radius: 6px;
1704
+ background: transparent;
1705
+ color: var(--mly-color-gray-500);
1706
+ font: inherit;
1707
+ font-size: 14px;
1708
+ line-height: 20px;
1709
+ }
1710
+
1711
+ [data-mly-columns-count-button]:hover,
1712
+ [data-mly-columns-count-button][data-active] {
1713
+ background: var(--mly-color-soft-gray);
1714
+ color: var(--mly-color-midnight-gray);
1715
+ }
1716
+
1717
+ [data-mly-column-width-fields] {
1718
+ display: grid;
1719
+ gap: 6px;
1720
+ padding: 4px;
1721
+ }
1722
+
1723
+ [data-mly-column-width-field] {
1724
+ display: flex;
1725
+ flex-direction: column;
1726
+ gap: 4px;
1727
+ }
1728
+
1729
+ [data-mly-column-width-field] [data-mly-unit-field-wrapper],
1730
+ [data-mly-column-width-field] [data-mly-unit-field] {
1731
+ width: 100%;
1732
+ }
1733
+
1734
+ [data-mly-column-width-label] {
1735
+ color: var(--mly-color-gray-400);
1736
+ font-size: 12px;
1737
+ line-height: 16px;
1738
+ }
1739
+
1740
+ [data-mly-multi-unit-field] {
1741
+ display: flex;
1742
+ flex-direction: column;
1743
+ gap: 4px;
1744
+ }
1745
+
1746
+ [data-mly-multi-unit-field-row] {
1747
+ display: flex;
1748
+ align-items: center;
1749
+ justify-content: space-between;
1750
+ gap: 8px;
1751
+ width: 100%;
1752
+ }
1753
+
1754
+ [data-mly-multi-unit-field-row] [data-mly-field-label] {
1755
+ min-width: 64px;
1756
+ padding-left: 8px;
1757
+ }
1758
+
1759
+ [data-mly-multi-unit-field-controls] {
1760
+ display: flex;
1761
+ align-items: flex-start;
1762
+ flex: 1;
1763
+ gap: 4px;
1764
+ }
1765
+
1766
+ [data-mly-multi-unit-field-axes] {
1767
+ display: grid;
1768
+ grid-template-columns: repeat(2, 1fr);
1769
+ gap: 4px;
1770
+ padding-left: 72px;
1771
+ }
1772
+
1773
+ [data-mly-side-icon] [data-lit],
1774
+ [data-mly-corner-icon] [data-lit] {
1775
+ stroke: currentColor;
1776
+ }
1777
+
1778
+ [data-mly-side-icon] path:not([data-lit]),
1779
+ [data-mly-corner-icon] path:not([data-lit]) {
1780
+ opacity: 0.3;
1781
+ }
1782
+
1783
+ [data-mly-select-trigger] {
1784
+ display: inline-flex;
1785
+ align-items: center;
1786
+ justify-content: center;
1787
+ flex-grow: 1;
1788
+ flex-shrink: 1;
1789
+ min-width: 0;
1790
+ overflow: hidden;
1791
+ height: 28px;
1792
+ padding: 0 0 0 8px;
1793
+ border: 0;
1794
+ border-radius: 8px;
1795
+ background: var(--mly-color-soft-gray);
1796
+ color: var(--mly-color-gray-500);
1797
+ font: inherit;
1798
+ font-size: 14px;
1799
+ font-weight: 400;
1800
+ cursor: default;
1801
+ outline: none;
1802
+ }
1803
+
1804
+ [data-mly-select-trigger]:hover,
1805
+ [data-mly-select-trigger][data-popup-open] {
1806
+ color: var(--mly-color-gray-900);
1807
+ }
1808
+
1809
+ [data-mly-select-trigger]:focus-visible {
1810
+ position: relative;
1811
+ z-index: 10;
1812
+ box-shadow: 0 0 0 1px var(--mly-color-gray-300);
1813
+ }
1814
+
1815
+ [data-mly-select-icon] {
1816
+ display: flex;
1817
+ align-items: center;
1818
+ justify-content: center;
1819
+ flex-shrink: 0;
1820
+ width: 28px;
1821
+ height: 28px;
1822
+ margin-left: auto;
1823
+ border-left: 1px solid var(--mly-color-white);
1824
+ }
1825
+
1826
+ [data-mly-select-positioner] {
1827
+ z-index: 99;
1828
+ }
1829
+
1830
+ [data-mly-select-content] {
1831
+ position: relative;
1832
+ z-index: 99;
1833
+ width: 122px;
1834
+ min-width: var(--anchor-width);
1835
+ padding: 2px;
1836
+ border: 1px solid var(--mly-color-gray-200);
1837
+ border-radius: 12px;
1838
+ background: var(--mly-color-white);
1839
+ box-shadow: var(--mly-bubble-shadow);
1840
+ cursor: default;
1841
+ outline: none;
1842
+ }
1843
+
1844
+ [data-mly-select-list] {
1845
+ max-height: calc(var(--available-height) - 4px);
1846
+ }
1847
+
1848
+ [data-mly-select-trigger] > :not([data-mly-select-icon]),
1849
+ [data-mly-drag-context-item] > :not([data-mly-drag-context-item-chevron]),
1850
+ [data-mly-suggestion-item] > :not([data-mly-suggestion-item-icon]),
1851
+ [data-mly-style-config-link] > span {
1852
+ min-width: 0;
1853
+ overflow: hidden;
1854
+ text-overflow: ellipsis;
1855
+ white-space: nowrap;
1856
+ }
1857
+
1858
+ [data-mly-select-item] {
1859
+ position: relative;
1860
+ display: flex;
1861
+ align-items: center;
1862
+ justify-content: flex-start;
1863
+ gap: 8px;
1864
+ width: 100%;
1865
+ height: 28px;
1866
+ padding: 4px 32px 4px 8px;
1867
+ border-radius: 8px;
1868
+ color: var(--mly-color-gray-500);
1869
+ font-size: 14px;
1870
+ font-weight: 400;
1871
+ line-height: 20px;
1872
+ cursor: default;
1873
+ outline: none;
1874
+ }
1875
+
1876
+ [data-mly-select-item][data-highlighted] {
1877
+ background: var(--mly-color-soft-gray);
1878
+ color: var(--mly-color-gray-900);
1879
+ }
1880
+
1881
+ [data-mly-select-indicator] {
1882
+ position: absolute;
1883
+ top: 50%;
1884
+ right: 8px;
1885
+ display: flex;
1886
+ transform: translateY(-50%);
1887
+ }
1888
+
1889
+ [data-mly-drag-handle] {
1890
+ z-index: 50;
1891
+ }
1892
+
1893
+ [data-mly-drag-bridge] {
1894
+ position: absolute;
1895
+ left: 0;
1896
+ width: 100%;
1897
+ }
1898
+
1899
+ [data-mly-drag-context] {
1900
+ position: relative;
1901
+ display: flex;
1902
+ align-items: center;
1903
+ gap: 2px;
1904
+ padding-inline: 6px;
1905
+ }
1906
+
1907
+ [data-mly-drag-context-add],
1908
+ [data-mly-drag-context-trigger] {
1909
+ width: 24px;
1910
+ height: 24px;
1911
+ min-height: 24px;
1912
+ padding: 0;
1913
+ border: 0;
1914
+ border-radius: 8px;
1915
+ background: transparent;
1916
+ color: var(--mly-color-gray-500);
1917
+ }
1918
+
1919
+ [data-mly-drag-context-add]:hover,
1920
+ [data-mly-drag-context-trigger]:hover,
1921
+ [data-mly-drag-context-trigger][data-active] {
1922
+ background: var(--mly-color-soft-gray);
1923
+ color: var(--mly-color-gray-900);
1924
+ }
1925
+
1926
+ [data-mly-drag-context-trigger] {
1927
+ cursor: grab;
1928
+ }
1929
+
1930
+ [data-mly-popover][data-variant='drag-context'] {
1931
+ width: auto;
1932
+ min-width: 192px;
1933
+ padding: 2px;
1934
+ }
1935
+
1936
+ [data-mly-popover][data-variant='drag-context']:has(
1937
+ [data-mly-font-style-config]
1938
+ ),
1939
+ [data-mly-popover][data-variant='drag-context']:has(
1940
+ [data-mly-visibility-config]
1941
+ ) {
1942
+ width: 232px;
1943
+ padding: 4px;
1944
+ }
1945
+
1946
+ [data-mly-popover][data-variant='drag-context']:has(
1947
+ [data-mly-text-direction-config]
1948
+ ) {
1949
+ padding: 4px;
1950
+ }
1951
+
1952
+ [data-mly-text-direction-config] {
1953
+ display: flex;
1954
+ flex-direction: column;
1955
+ }
1956
+
1957
+ [data-mly-text-direction-config] [data-mly-divider][data-type='horizontal'] {
1958
+ margin: 4px -4px;
1959
+ }
1960
+
1961
+ [data-mly-text-direction-options] {
1962
+ display: grid;
1963
+ gap: 2px;
1964
+ padding: 2px;
1965
+ }
1966
+
1967
+ [data-mly-text-direction-option] {
1968
+ display: flex;
1969
+ align-items: center;
1970
+ justify-content: flex-start;
1971
+ gap: 8px;
1972
+ width: 100%;
1973
+ min-height: 28px;
1974
+ padding: 4px 8px;
1975
+ border: 0;
1976
+ border-radius: 8px;
1977
+ background: transparent;
1978
+ color: var(--mly-color-gray-500);
1979
+ font: inherit;
1980
+ font-size: 14px;
1981
+ font-weight: 400;
1982
+ line-height: 20px;
1983
+ cursor: default;
1984
+ }
1985
+
1986
+ [data-mly-text-direction-option]:hover,
1987
+ [data-mly-text-direction-option][data-active] {
1988
+ background: color-mix(in srgb, var(--mly-color-soft-gray) 70%, transparent);
1989
+ color: var(--mly-color-gray-900);
1990
+ }
1991
+
1992
+ [data-mly-text-direction-check] {
1993
+ margin-left: auto;
1994
+ flex-shrink: 0;
1995
+ }
1996
+
1997
+ [data-mly-font-style-config] {
1998
+ display: flex;
1999
+ flex-direction: column;
2000
+ }
2001
+
2002
+ [data-mly-font-style-config] [data-mly-divider][data-type='horizontal'] {
2003
+ margin: 8px -4px;
2004
+ }
2005
+
2006
+ [data-mly-font-style-config]
2007
+ [data-mly-popover-back]
2008
+ + [data-mly-divider][data-type='horizontal'] {
2009
+ margin-top: 4px;
2010
+ }
2011
+
2012
+ [data-mly-font-style-fields] {
2013
+ display: grid;
2014
+ gap: 8px;
2015
+ padding: 0 6px;
2016
+ }
2017
+
2018
+ [data-mly-font-style-metrics] {
2019
+ display: grid;
2020
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2021
+ gap: 8px;
2022
+ padding: 0 6px 6px;
2023
+ }
2024
+
2025
+ [data-mly-font-style-config] [data-mly-field] {
2026
+ display: block;
2027
+ padding-left: 0;
2028
+ }
2029
+
2030
+ [data-mly-font-style-config] [data-mly-field-label] {
2031
+ display: block;
2032
+ margin-bottom: 4px;
2033
+ }
2034
+
2035
+ [data-mly-font-style-config] [data-mly-field] > [data-mly-select-trigger] {
2036
+ justify-content: flex-start;
2037
+ width: 100%;
2038
+ min-width: 0;
2039
+ }
2040
+
2041
+ [data-mly-font-style-config]
2042
+ [data-mly-field]
2043
+ > [data-mly-select-trigger]
2044
+ > :not([data-mly-select-icon]) {
2045
+ overflow: hidden;
2046
+ white-space: nowrap;
2047
+ text-overflow: ellipsis;
2048
+ }
2049
+
2050
+ [data-mly-font-style-metrics] [data-mly-unit-field-wrapper] {
2051
+ width: 100%;
2052
+ }
2053
+
2054
+ [data-mly-visibility-config] {
2055
+ display: flex;
2056
+ flex-direction: column;
2057
+ }
2058
+
2059
+ [data-mly-visibility-config] [data-mly-divider][data-type='horizontal'] {
2060
+ margin: 4px -4px;
2061
+ }
2062
+
2063
+ [data-mly-visibility-fields] {
2064
+ display: grid;
2065
+ gap: 8px;
2066
+ padding-top: 4px;
2067
+ }
2068
+
2069
+ [data-mly-visibility-condition] {
2070
+ display: grid;
2071
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2072
+ gap: 8px;
2073
+ }
2074
+
2075
+ [data-mly-visibility-config] [data-mly-field] {
2076
+ display: block;
2077
+ padding-left: 0;
2078
+ }
2079
+
2080
+ [data-mly-visibility-config] [data-mly-select-trigger] {
2081
+ justify-content: flex-start;
2082
+ width: 100%;
2083
+ min-width: 0;
2084
+ }
2085
+
2086
+ [data-mly-visibility-config]
2087
+ [data-mly-select-trigger]
2088
+ > :not([data-mly-select-icon]) {
2089
+ overflow: hidden;
2090
+ white-space: nowrap;
2091
+ text-overflow: ellipsis;
2092
+ }
2093
+
2094
+ [data-mly-visibility-config] [data-mly-variable-only-editor],
2095
+ [data-mly-visibility-config] [data-mly-field-input] {
2096
+ width: 100%;
2097
+ }
2098
+
2099
+ [data-mly-select-content][data-variant='visibility-action'],
2100
+ [data-mly-select-content][data-variant='visibility-operator'] {
2101
+ width: max-content;
2102
+ }
2103
+
2104
+ [data-mly-select-content][data-variant='visibility-action']
2105
+ [data-mly-select-item],
2106
+ [data-mly-select-content][data-variant='visibility-operator']
2107
+ [data-mly-select-item] {
2108
+ white-space: nowrap;
2109
+ }
2110
+
2111
+ [data-mly-drag-context-items] {
2112
+ max-height: calc(var(--available-height) - 8px);
2113
+ padding: 2px;
2114
+ }
2115
+
2116
+ [data-mly-drag-context-item] {
2117
+ display: flex;
2118
+ align-items: center;
2119
+ justify-content: flex-start;
2120
+ gap: 8px;
2121
+ width: 100%;
2122
+ min-height: 28px;
2123
+ padding: 4px 8px;
2124
+ border: 0;
2125
+ border-radius: 8px;
2126
+ background: transparent;
2127
+ color: var(--mly-color-gray-500);
2128
+ font: inherit;
2129
+ font-size: 14px;
2130
+ font-weight: 400;
2131
+ line-height: 20px;
2132
+ cursor: default;
2133
+ }
2134
+
2135
+ [data-mly-drag-context-item]:hover,
2136
+ [data-mly-drag-context-item]:focus-visible {
2137
+ background: var(--mly-color-soft-gray);
2138
+ color: var(--mly-color-gray-900);
2139
+ outline: none;
2140
+ }
2141
+
2142
+ [data-mly-drag-context-item-chevron] {
2143
+ margin-left: auto;
2144
+ color: var(--mly-color-gray-400);
2145
+ }
2146
+
2147
+ [data-mly-drag-context-item][data-variant='danger'] {
2148
+ color: var(--mly-color-rose-600);
2149
+ }
2150
+
2151
+ [data-mly-drag-context-item][data-variant='danger']:hover,
2152
+ [data-mly-drag-context-item][data-variant='danger']:focus-visible {
2153
+ background: color-mix(in srgb, var(--mly-color-rose-100) 50%, transparent);
2154
+ color: var(--mly-color-rose-600);
2155
+ }
2156
+
2157
+ [data-mly-drag-context-item][data-disabled],
2158
+ [data-mly-drag-context-item][data-disabled]:hover {
2159
+ background: transparent;
2160
+ cursor: not-allowed;
2161
+ }
2162
+
2163
+ [data-mly-toggle-tab-group] {
2164
+ display: flex;
2165
+ align-items: center;
2166
+ }
2167
+
2168
+ [data-mly-toggle-tab] {
2169
+ display: flex;
2170
+ flex-shrink: 0;
2171
+ align-items: center;
2172
+ justify-content: center;
2173
+ width: 28px;
2174
+ height: 28px;
2175
+ padding: 0;
2176
+ border: 0;
2177
+ border-radius: var(--mly-radius-bubble-button);
2178
+ background: color-mix(in srgb, var(--mly-color-soft-gray) 40%, transparent);
2179
+ color: var(--mly-color-gray-500);
2180
+ cursor: default;
2181
+ outline: none;
2182
+ }
2183
+
2184
+ [data-mly-toggle-tab]:hover {
2185
+ background: color-mix(in srgb, var(--mly-color-gray-200) 70%, transparent);
2186
+ color: var(--mly-color-gray-900);
2187
+ }
2188
+
2189
+ [data-mly-toggle-tab][data-pressed] {
2190
+ background: color-mix(in srgb, var(--mly-color-gray-200) 50%, transparent);
2191
+ color: var(--mly-color-gray-900);
2192
+ }
2193
+
2194
+ [data-mly-toggle-tab-group] > [data-mly-toggle-tab]:not(:last-child) {
2195
+ border-top-right-radius: 0;
2196
+ border-bottom-right-radius: 0;
2197
+ }
2198
+
2199
+ [data-mly-toggle-tab-group] > [data-mly-toggle-tab]:not(:first-child) {
2200
+ border-top-left-radius: 0;
2201
+ border-bottom-left-radius: 0;
2202
+ }
2203
+
2204
+ [data-mly-editor-content] [data-node-type='repeat'] {
2205
+ position: relative;
2206
+ }
2207
+
2208
+ [data-mly-editor-content] [data-node-type='repeat']::before {
2209
+ content: '';
2210
+ position: absolute;
2211
+ top: 0;
2212
+ inset-inline-end: -26px;
2213
+ width: 16px;
2214
+ height: 16px;
2215
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb2c36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 9 3-3 3 3'/%3E%3Cpath d='M13 18H7a2 2 0 0 1-2-2V6'/%3E%3Cpath d='m22 15-3 3-3-3'/%3E%3Cpath d='M11 6h6a2 2 0 0 1 2 2v10'/%3E%3C/svg%3E");
2216
+ background-repeat: no-repeat;
2217
+ opacity: 0.6;
2218
+ }
2219
+
2220
+ [data-mly-editor-content] [data-node-type='repeat']::after {
2221
+ content: '';
2222
+ position: absolute;
2223
+ top: 22px;
2224
+ inset-inline-end: -19px;
2225
+ bottom: 0;
2226
+ width: 2px;
2227
+ border-radius: 9999px;
2228
+ background: color-mix(in srgb, var(--mly-color-rose-500) 40%, transparent);
2229
+ }
2230
+
2231
+ [data-mly-editor-content] [data-node-type='htmlCodeBlock'] {
2232
+ position: relative;
2233
+ }
2234
+
2235
+ [data-mly-html-code-block] {
2236
+ margin: 0;
2237
+ overflow-x: auto;
2238
+ padding: 8px;
2239
+ border: 1px solid var(--mly-color-soft-gray);
2240
+ border-radius: 8px;
2241
+ background: var(--mly-color-white);
2242
+ color: #000000;
2243
+ font-size: 14px;
2244
+ }
2245
+
2246
+ [data-mly-html-code-block-preview] {
2247
+ padding: 8px;
2248
+ border: 1px solid var(--mly-color-soft-gray);
2249
+ border-radius: 8px;
2250
+ }
2251
+
2252
+ [data-mly-html-code-block-preview][data-empty] {
2253
+ min-height: 38px;
2254
+ }
2255
+
2256
+ [data-mly-bubble-button][data-variant='danger'] {
2257
+ color: var(--mly-color-rose-500);
2258
+ }
2259
+
2260
+ [data-mly-bubble-button][data-variant='danger']:hover {
2261
+ background: var(--mly-color-rose-50);
2262
+ color: var(--mly-color-rose-600);
2263
+ }
2264
+
2265
+ [data-mly-link-card] {
2266
+ display: block;
2267
+ margin-bottom: 20px;
2268
+ border: 1px solid #eaeaea;
2269
+ border-radius: 10px;
2270
+ cursor: default;
2271
+ }
2272
+
2273
+ [data-mly-link-card-image] {
2274
+ display: block;
2275
+ width: 100%;
2276
+ height: auto;
2277
+ margin-bottom: 6px;
2278
+ border-radius: 10px 10px 0 0;
2279
+ object-fit: cover;
2280
+ }
2281
+
2282
+ [data-mly-link-card-content] {
2283
+ padding: 15px;
2284
+ }
2285
+
2286
+ [data-mly-link-card-heading] {
2287
+ margin-bottom: 8px;
2288
+ }
2289
+
2290
+ [data-mly-link-card-title] {
2291
+ color: #111827;
2292
+ font-size: 18px;
2293
+ font-weight: 600;
2294
+ line-height: 24px;
2295
+ }
2296
+
2297
+ [data-mly-link-card-badge] {
2298
+ margin-left: 6px;
2299
+ padding: 4px 8px;
2300
+ border-radius: 8px;
2301
+ background: #f3f4f6;
2302
+ color: #6b7280;
2303
+ font-size: 12px;
2304
+ font-weight: 600;
2305
+ line-height: 12px;
2306
+ }
2307
+
2308
+ [data-mly-link-card-sub-title] {
2309
+ margin-left: 6px;
2310
+ color: #6b7280;
2311
+ font-size: 12px;
2312
+ font-weight: normal;
2313
+ line-height: 12px;
2314
+ }
2315
+
2316
+ [data-mly-link-card-description] {
2317
+ margin-top: 0;
2318
+ margin-bottom: 0;
2319
+ color: #374151;
2320
+ font-size: 16px;
2321
+ line-height: 24px;
2322
+ }
2323
+
2324
+ [data-mly-link-card-cta] {
2325
+ color: #111827;
2326
+ font-size: 14px;
2327
+ font-weight: 600;
2328
+ text-decoration: underline;
2329
+ }
2330
+
2331
+ [data-mly-tooltip][data-variant='preview'] {
2332
+ width: 208px;
2333
+ padding: 4px;
2334
+ border: none;
2335
+ border-radius: 8px;
2336
+ box-shadow:
2337
+ 0 1px 3px 0 rgb(0 0 0 / 10%),
2338
+ 0 1px 2px -1px rgb(0 0 0 / 10%);
2339
+ white-space: normal;
2340
+ }
2341
+
2342
+ [data-mly-slash-command-preview] {
2343
+ position: relative;
2344
+ aspect-ratio: 2.5;
2345
+ overflow: hidden;
2346
+ width: 100%;
2347
+ margin: 0;
2348
+ border: 1px solid var(--mly-color-gray-200);
2349
+ border-radius: 6px;
2350
+ }
2351
+
2352
+ [data-mly-slash-command-preview] img {
2353
+ position: absolute;
2354
+ inset: 0;
2355
+ width: 100%;
2356
+ height: 100%;
2357
+ object-fit: cover;
2358
+ }
2359
+
2360
+ [data-mly-slash-command-preview-description] {
2361
+ margin: 8px 0 0;
2362
+ padding: 0 2px;
2363
+ color: var(--mly-color-gray-500);
2364
+ }
2365
+
2366
+ [data-mly-slash-command-chevron] {
2367
+ display: block;
2368
+ padding: 0 4px;
2369
+ color: var(--mly-color-gray-400);
2370
+ }
2371
+
2372
+ [data-inline-suggestion]::after {
2373
+ content: attr(data-inline-suggestion);
2374
+ pointer-events: none;
2375
+ color: var(--mly-color-gray-400);
2376
+ }
2377
+
2378
+ [data-mly-dropdown-menu] {
2379
+ z-index: 50;
2380
+ min-width: 128px;
2381
+ padding: 4px;
2382
+ border: 1px solid var(--mly-color-gray-200);
2383
+ border-radius: 12px;
2384
+ background: var(--mly-color-white);
2385
+ box-shadow: var(--mly-bubble-shadow);
2386
+ cursor: default;
2387
+ outline: none;
2388
+ }
2389
+
2390
+ [data-mly-dropdown-menu][data-variant='ai-actions'] {
2391
+ display: flex;
2392
+ flex-direction: column;
2393
+ width: 180px;
2394
+ }
2395
+
2396
+ [data-mly-dropdown-menu][data-variant='turn-into'] {
2397
+ display: flex;
2398
+ flex-direction: column;
2399
+ width: 160px;
2400
+ }
2401
+
2402
+ [data-mly-dropdown-menu-item] {
2403
+ display: inline-flex;
2404
+ align-items: center;
2405
+ justify-content: flex-start;
2406
+ gap: 8px;
2407
+ width: 100%;
2408
+ height: 28px;
2409
+ padding: 4px 8px;
2410
+ border-radius: 8px;
2411
+ background: transparent;
2412
+ color: var(--mly-color-gray-500);
2413
+ font-size: 14px;
2414
+ font-weight: 400;
2415
+ line-height: 20px;
2416
+ cursor: default;
2417
+ outline: none;
2418
+ }
2419
+
2420
+ [data-mly-dropdown-menu-item]:hover,
2421
+ [data-mly-dropdown-menu-item][data-highlighted] {
2422
+ background: var(--mly-color-soft-gray);
2423
+ color: var(--mly-color-gray-900);
2424
+ }
2425
+
2426
+ [data-mly-dropdown-menu-item][data-disabled] {
2427
+ opacity: 0.6;
2428
+ }
2429
+
2430
+ [data-mly-dropdown-menu-separator] {
2431
+ height: 1px;
2432
+ margin: 4px -4px;
2433
+ background: var(--mly-color-gray-200);
2434
+ }
2435
+
2436
+ [data-mly-dropdown-menu-category] {
2437
+ margin: 8px 0;
2438
+ padding: 0 8px;
2439
+ color: color-mix(in oklab, var(--mly-color-midnight-gray) 60%, transparent);
2440
+ font-size: 12px;
2441
+ font-weight: 500;
2442
+ line-height: 16px;
2443
+ }
2444
+
2445
+ [data-mly-dropdown-menu-category]:first-child {
2446
+ margin-top: 4px;
2447
+ }
2448
+
2449
+ [data-mly-ai-actions-label] {
2450
+ margin-left: 4px;
2451
+ font-size: 12px;
2452
+ line-height: 16px;
2453
+ }
2454
+
2455
+ [data-mly-ai-error] {
2456
+ display: inline-flex;
2457
+ align-items: center;
2458
+ justify-content: center;
2459
+ flex-shrink: 0;
2460
+ gap: 8px;
2461
+ height: 28px;
2462
+ padding: 4px 10px 4px 8px;
2463
+ border-radius: var(--mly-radius-bubble-button);
2464
+ background: var(--mly-color-rose-100);
2465
+ color: var(--mly-color-rose-600);
2466
+ font-size: 13px;
2467
+ font-weight: 500;
2468
+ line-height: 20px;
2469
+ white-space: nowrap;
2470
+ }
2471
+
2472
+ [data-mly-ai-error-dismiss] {
2473
+ display: inline-flex;
2474
+ align-items: center;
2475
+ justify-content: center;
2476
+ flex-shrink: 0;
2477
+ width: 18px;
2478
+ height: 18px;
2479
+ padding: 0;
2480
+ border: 0;
2481
+ border-radius: 4px;
2482
+ background: transparent;
2483
+ color: inherit;
2484
+ opacity: 0.7;
2485
+ cursor: pointer;
2486
+ }
2487
+
2488
+ [data-mly-ai-error-dismiss]:hover,
2489
+ [data-mly-ai-error-dismiss]:focus-visible {
2490
+ opacity: 1;
2491
+ }
2492
+
2493
+ [data-mly-spinner] {
2494
+ animation: mly-spin 1s linear infinite;
2495
+ }
2496
+
2497
+ [data-mly-ai-loading] {
2498
+ border-radius: 2px;
2499
+ background: var(--mly-color-soft-gray);
2500
+ color: var(--mly-color-gray-500);
2501
+ }
2502
+
2503
+ [data-mly-ai-loading-widget] {
2504
+ pointer-events: none;
2505
+ user-select: none;
2506
+ }
2507
+
2508
+ [data-mly-ai-spinner] {
2509
+ display: inline-block;
2510
+ width: 0.75em;
2511
+ height: 0.75em;
2512
+ margin-left: 0.25em;
2513
+ border: 1.5px solid var(--mly-color-gray-300);
2514
+ border-top-color: var(--mly-color-gray-500);
2515
+ border-radius: 50%;
2516
+ vertical-align: middle;
2517
+ animation: mly-spin 1s linear infinite;
2518
+ }
2519
+
2520
+ @keyframes mly-spin {
2521
+ to {
2522
+ transform: rotate(360deg);
2523
+ }
2524
+ }
2525
+
2526
+ @media (prefers-reduced-motion: reduce) {
2527
+ [data-mly-ai-spinner],
2528
+ [data-mly-editor-content] .ProseMirror-gapcursor::after,
2529
+ [data-mly-image-spinner],
2530
+ [data-mly-spinner] {
2531
+ animation: none;
2532
+ }
2533
+
2534
+ [data-mly-suggestion] {
2535
+ transition: none;
2536
+ }
2537
+ }