@labnol/email-editor 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css ADDED
@@ -0,0 +1,807 @@
1
+ /*
2
+ * @labnol/email-editor
3
+ * Plain, unlayered CSS so it wins over Tailwind's preflight. Every class starts with "lee-".
4
+ * Theme it with the custom properties on .lee-editor.
5
+ */
6
+
7
+ .lee-editor {
8
+ /* Neutrals */
9
+ --lee-bg: #ffffff;
10
+ --lee-toolbar-bg: #ffffff;
11
+ --lee-subtle: #f5f5f5;
12
+ --lee-hover: #f0f0f0;
13
+ --lee-border: #e5e5e5;
14
+ --lee-border-strong: #d4d4d4;
15
+ --lee-text: #171717;
16
+ --lee-icon: #525252;
17
+ --lee-muted: #a3a3a3;
18
+
19
+ /* Accent: pressed buttons, selected items, keyboard focus, the Apply button */
20
+ --lee-focus: #171717;
21
+ --lee-focus-ring: rgb(23 23 23 / 0.08); /* around inputs in the link and field menus */
22
+ --lee-active: #ededed;
23
+ --lee-active-text: #171717;
24
+ --lee-on-accent: #ffffff;
25
+ --lee-field-bg: #f1f1f1; /* merge field chips in the editor */
26
+ --lee-field-border: transparent;
27
+ --lee-field-text: inherit;
28
+ --lee-field-mark: #a3a3a3; /* the {{ and }} around a field name */
29
+ --lee-tooltip-bg: #171717;
30
+ --lee-tooltip-text: #ffffff;
31
+ --lee-link: #1155cc; /* Gmail's link colour, which recipients see */
32
+
33
+ --lee-font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
34
+ --lee-font-size: 15px;
35
+ --lee-min-height: 14rem;
36
+ --lee-max-height: 28rem;
37
+
38
+ display: flex;
39
+ flex-direction: column;
40
+ container-type: inline-size;
41
+ container-name: lee-editor;
42
+ overflow: visible;
43
+ /* No border, shadow or focus ring of its own: the container frames the editor. Corners follow the container's. */
44
+ border-radius: inherit;
45
+ background: var(--lee-bg);
46
+ color: var(--lee-text);
47
+ font-family: var(--lee-font);
48
+ font-size: var(--lee-font-size);
49
+ }
50
+
51
+ .lee-editor[data-disabled] {
52
+ background: var(--lee-subtle);
53
+ }
54
+
55
+ .lee-editor *,
56
+ .lee-editor *::before,
57
+ .lee-editor *::after {
58
+ box-sizing: border-box;
59
+ }
60
+
61
+ /* Toolbar */
62
+
63
+ .lee-toolbar {
64
+ position: relative;
65
+ display: flex;
66
+ flex-wrap: wrap;
67
+ align-items: center;
68
+ gap: 2px 0;
69
+ padding: 6px 4px;
70
+ border-bottom: 1px solid var(--lee-border);
71
+ border-start-start-radius: inherit;
72
+ border-start-end-radius: inherit;
73
+ background: var(--lee-toolbar-bg);
74
+ }
75
+
76
+ .lee-group {
77
+ display: flex;
78
+ align-items: center;
79
+ gap: 2px;
80
+ }
81
+
82
+ .lee-divider {
83
+ width: 1px;
84
+ height: 18px;
85
+ margin: 0 2px;
86
+ background: var(--lee-border);
87
+ }
88
+
89
+ .lee-spacer {
90
+ flex: 1 0 4px;
91
+ }
92
+
93
+ .lee-toolbar-end {
94
+ display: flex;
95
+ align-items: center;
96
+ margin-inline-start: auto;
97
+ padding-inline-start: 2px;
98
+ }
99
+
100
+ /* Link, Image and Insert field: labelled so they stand out from the formatting buttons */
101
+ .lee-insert,
102
+ .lee-toolbar-end .lee-button-text {
103
+ color: var(--lee-text);
104
+ }
105
+
106
+ .lee-button {
107
+ display: inline-flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ gap: 4px;
111
+ min-width: 28px;
112
+ height: 28px;
113
+ padding: 0 5px;
114
+ border: 0;
115
+ border-radius: 6px;
116
+ background: transparent;
117
+ color: var(--lee-icon);
118
+ cursor: pointer;
119
+ font: inherit;
120
+ font-size: 13px;
121
+ line-height: 1;
122
+ white-space: nowrap;
123
+ transition:
124
+ background-color 0.12s,
125
+ color 0.12s;
126
+ }
127
+
128
+ .lee-button svg {
129
+ flex: none;
130
+ }
131
+
132
+ .lee-button:hover:not(:disabled) {
133
+ background: var(--lee-hover);
134
+ color: var(--lee-text);
135
+ }
136
+
137
+ .lee-button[data-active] {
138
+ background: var(--lee-active);
139
+ color: var(--lee-active-text);
140
+ }
141
+
142
+ .lee-button:disabled {
143
+ cursor: default;
144
+ opacity: 0.35;
145
+ }
146
+
147
+ .lee-button svg {
148
+ display: block;
149
+ }
150
+
151
+ .lee-button-text {
152
+ padding: 0 6px;
153
+ font-weight: 500;
154
+ }
155
+
156
+ .lee-button-text > svg:last-child {
157
+ margin-inline-start: -1px;
158
+ opacity: 0.6;
159
+ }
160
+
161
+ .lee-heading-button {
162
+ justify-content: space-between;
163
+ min-width: 76px;
164
+ color: var(--lee-text);
165
+ }
166
+
167
+ .lee-button:focus-visible,
168
+ .lee-menu-item:focus-visible,
169
+ .lee-swatch:focus-visible,
170
+ .lee-text-button:focus-visible {
171
+ outline: 2px solid var(--lee-focus);
172
+ outline-offset: 1px;
173
+ }
174
+
175
+ .lee-color-bar {
176
+ stroke: rgb(0 0 0 / 0.15);
177
+ stroke-width: 12px;
178
+ }
179
+
180
+ .lee-spin {
181
+ animation: lee-spin 0.8s linear infinite;
182
+ }
183
+
184
+ @keyframes lee-spin {
185
+ to {
186
+ transform: rotate(360deg);
187
+ }
188
+ }
189
+
190
+ /* Narrower editors: the toolbar measures itself and drops labels in steps; dividers go once it wraps */
191
+
192
+ .lee-toolbar[data-compact='1'] .lee-button-label:not(.lee-field-label),
193
+ .lee-toolbar[data-compact='2'] .lee-button-label {
194
+ display: none;
195
+ }
196
+
197
+ @container lee-editor (max-width: 560px) {
198
+ .lee-divider {
199
+ display: none;
200
+ }
201
+
202
+ .lee-group + .lee-group {
203
+ margin-inline-start: 6px;
204
+ }
205
+ }
206
+
207
+ /* Right-to-left editors: arrows that point along the text flip */
208
+
209
+ .lee-editor[dir='rtl'] .lee-flip svg {
210
+ transform: scaleX(-1);
211
+ }
212
+
213
+ /* Tooltips */
214
+
215
+ .lee-tooltip {
216
+ position: absolute;
217
+ z-index: 70;
218
+ padding: 4px 8px;
219
+ border-radius: 6px;
220
+ background: var(--lee-tooltip-bg);
221
+ box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
222
+ color: var(--lee-tooltip-text);
223
+ font-size: 12px;
224
+ font-weight: 500;
225
+ line-height: 1.4;
226
+ white-space: nowrap;
227
+ pointer-events: none;
228
+ animation: lee-fade 0.1s ease-out;
229
+ }
230
+
231
+ @keyframes lee-fade {
232
+ from {
233
+ opacity: 0;
234
+ }
235
+ }
236
+
237
+ /* Popovers and menus */
238
+
239
+ .lee-popover {
240
+ position: relative;
241
+ }
242
+
243
+ .lee-panel {
244
+ position: absolute;
245
+ z-index: 50;
246
+ top: calc(100% + 6px);
247
+ inset-inline-start: 0;
248
+ padding: 6px;
249
+ border: 1px solid var(--lee-border);
250
+ border-radius: 10px;
251
+ background: var(--lee-bg);
252
+ box-shadow:
253
+ 0 10px 30px -8px rgb(0 0 0 / 0.18),
254
+ 0 2px 6px rgb(0 0 0 / 0.06);
255
+ animation: lee-pop 0.12s ease-out;
256
+ }
257
+
258
+ .lee-panel[data-align='end'] {
259
+ inset-inline-end: 0;
260
+ inset-inline-start: auto;
261
+ }
262
+
263
+ @keyframes lee-pop {
264
+ from {
265
+ opacity: 0;
266
+ transform: translateY(-4px);
267
+ }
268
+ }
269
+
270
+ .lee-menu {
271
+ display: flex;
272
+ align-items: center;
273
+ gap: 2px;
274
+ }
275
+
276
+ .lee-menu-list {
277
+ display: flex;
278
+ flex-direction: column;
279
+ min-width: 180px;
280
+ }
281
+
282
+ .lee-menu-list .lee-menu-item {
283
+ white-space: nowrap;
284
+ }
285
+
286
+ .lee-menu-item {
287
+ display: flex;
288
+ align-items: center;
289
+ justify-content: space-between;
290
+ gap: 16px;
291
+ width: 100%;
292
+ padding: 7px 10px;
293
+ border: 0;
294
+ border-radius: 6px;
295
+ background: transparent;
296
+ color: var(--lee-text);
297
+ cursor: pointer;
298
+ font: inherit;
299
+ font-size: 14px;
300
+ text-align: start;
301
+ }
302
+
303
+ .lee-menu-item:hover,
304
+ .lee-menu-item[data-active] {
305
+ background: var(--lee-hover);
306
+ }
307
+
308
+ .lee-menu-item-icon {
309
+ justify-content: flex-start;
310
+ gap: 10px;
311
+ color: var(--lee-text);
312
+ }
313
+
314
+ .lee-menu-item-icon svg {
315
+ flex: none;
316
+ color: var(--lee-icon);
317
+ }
318
+
319
+ .lee-menu-item[data-checked] {
320
+ background: var(--lee-active);
321
+ }
322
+
323
+ .lee-menu-item[data-checked] svg,
324
+ .lee-menu-item[aria-checked='true'] {
325
+ color: var(--lee-active-text);
326
+ }
327
+
328
+ .lee-heading-preview {
329
+ line-height: 1.2;
330
+ }
331
+
332
+ .lee-h1 {
333
+ font-size: 22px;
334
+ font-weight: 700;
335
+ }
336
+
337
+ .lee-h2 {
338
+ font-size: 19px;
339
+ font-weight: 700;
340
+ }
341
+
342
+ .lee-h3 {
343
+ font-size: 16px;
344
+ font-weight: 600;
345
+ }
346
+
347
+ .lee-h4 {
348
+ font-size: 14px;
349
+ font-weight: 600;
350
+ }
351
+
352
+ /* Merge fields */
353
+
354
+ .lee-panel-flush {
355
+ padding: 0;
356
+ overflow: hidden;
357
+ }
358
+
359
+ .lee-fields {
360
+ display: flex;
361
+ flex-direction: column;
362
+ width: 280px;
363
+ max-width: calc(100cqi - 16px);
364
+ }
365
+
366
+ .lee-fields-searchbar {
367
+ display: flex;
368
+ align-items: center;
369
+ gap: 8px;
370
+ height: 42px;
371
+ padding: 0 12px;
372
+ border-bottom: 1px solid var(--lee-border);
373
+ color: var(--lee-muted);
374
+ cursor: text;
375
+ }
376
+
377
+ /* Specific enough to undo app-wide input styles such as Tailwind's forms plugin */
378
+ .lee-editor .lee-fields-search {
379
+ flex: 1;
380
+ min-width: 0;
381
+ height: 100%;
382
+ margin: 0;
383
+ padding: 0;
384
+ border: 0;
385
+ border-radius: 0;
386
+ outline: none;
387
+ background: transparent;
388
+ box-shadow: none;
389
+ color: var(--lee-text);
390
+ font: inherit;
391
+ font-size: 14px;
392
+ appearance: none;
393
+ }
394
+
395
+ .lee-editor .lee-fields-search:focus,
396
+ .lee-editor .lee-fields-search:focus-visible {
397
+ border: 0;
398
+ outline: none;
399
+ box-shadow: none;
400
+ }
401
+
402
+ .lee-editor .lee-fields-search::placeholder {
403
+ color: var(--lee-muted);
404
+ opacity: 1;
405
+ }
406
+
407
+ .lee-fields-list {
408
+ display: flex;
409
+ flex-direction: column;
410
+ gap: 1px;
411
+ max-height: 264px;
412
+ padding: 4px;
413
+ overflow-y: auto;
414
+ scroll-padding: 4px;
415
+ }
416
+
417
+ .lee-fields-list:empty {
418
+ display: none;
419
+ }
420
+
421
+ .lee-menu-item.lee-field {
422
+ min-height: 32px;
423
+ padding: 6px 10px;
424
+ font-size: 14px;
425
+ }
426
+
427
+ .lee-match {
428
+ background: none;
429
+ color: inherit;
430
+ font-weight: 600;
431
+ }
432
+
433
+ .lee-field-name {
434
+ display: -webkit-box;
435
+ overflow: hidden;
436
+ -webkit-box-orient: vertical;
437
+ -webkit-line-clamp: 2;
438
+ line-height: 1.35;
439
+ overflow-wrap: anywhere;
440
+ }
441
+
442
+ .lee-field-code {
443
+ flex: none;
444
+ color: var(--lee-muted);
445
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
446
+ font-size: 11px;
447
+ }
448
+
449
+ .lee-menu-item[data-active] .lee-field-code {
450
+ color: var(--lee-icon);
451
+ }
452
+
453
+ .lee-empty {
454
+ margin: 0;
455
+ padding: 16px 12px;
456
+ color: var(--lee-muted);
457
+ font-size: 13px;
458
+ text-align: center;
459
+ }
460
+
461
+ /* Colours */
462
+
463
+ .lee-colors {
464
+ width: 212px;
465
+ }
466
+
467
+ .lee-swatches {
468
+ display: grid;
469
+ grid-template-columns: repeat(7, 24px);
470
+ justify-content: space-between;
471
+ gap: 6px 0;
472
+ padding: 4px 2px 2px;
473
+ }
474
+
475
+ .lee-swatch {
476
+ width: 24px;
477
+ height: 24px;
478
+ padding: 0;
479
+ border: 0;
480
+ border-radius: 999px;
481
+ box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
482
+ cursor: pointer;
483
+ transition: transform 0.1s;
484
+ }
485
+
486
+ .lee-swatch:hover {
487
+ transform: scale(1.12);
488
+ }
489
+
490
+ .lee-swatch[data-active] {
491
+ box-shadow:
492
+ 0 0 0 2px var(--lee-bg),
493
+ 0 0 0 4px var(--lee-focus);
494
+ }
495
+
496
+ button.lee-color-default {
497
+ justify-content: flex-start;
498
+ gap: 10px;
499
+ margin-bottom: 4px;
500
+ padding: 6px 4px;
501
+ }
502
+
503
+ .lee-swatch-none {
504
+ display: inline-block;
505
+ width: 20px;
506
+ height: 20px;
507
+ background: linear-gradient(135deg, transparent 45%, #ef4444 45%, #ef4444 55%, transparent 55%), #ffffff;
508
+ }
509
+
510
+ .lee-swatch-none:hover {
511
+ transform: none;
512
+ }
513
+
514
+ /* Link */
515
+
516
+ .lee-link {
517
+ display: flex;
518
+ gap: 6px;
519
+ width: 320px;
520
+ margin: 0;
521
+ }
522
+
523
+ .lee-editor .lee-input {
524
+ flex: 1;
525
+ min-width: 0;
526
+ height: 32px;
527
+ margin: 0;
528
+ padding: 0 10px;
529
+ border: 1px solid var(--lee-border-strong);
530
+ border-radius: 6px;
531
+ background: var(--lee-bg);
532
+ color: var(--lee-text);
533
+ font: inherit;
534
+ font-size: 14px;
535
+ }
536
+
537
+ .lee-editor .lee-input:focus,
538
+ .lee-editor .lee-input:focus-visible {
539
+ border-color: var(--lee-focus);
540
+ outline: none;
541
+ box-shadow: 0 0 0 3px var(--lee-focus-ring);
542
+ }
543
+
544
+ .lee-text-button {
545
+ height: 32px;
546
+ padding: 0 12px;
547
+ border: 1px solid var(--lee-border-strong);
548
+ border-radius: 6px;
549
+ background: var(--lee-bg);
550
+ color: var(--lee-text);
551
+ font: inherit;
552
+ font-size: 13px;
553
+ font-weight: 500;
554
+ cursor: pointer;
555
+ }
556
+
557
+ .lee-text-button:hover {
558
+ background: var(--lee-hover);
559
+ }
560
+
561
+ .lee-text-button.lee-primary {
562
+ border-color: var(--lee-focus);
563
+ background: var(--lee-focus);
564
+ color: var(--lee-on-accent);
565
+ }
566
+
567
+ .lee-text-button.lee-primary:hover {
568
+ opacity: 0.88;
569
+ }
570
+
571
+ /* Content: restores the defaults Tailwind's preflight removes */
572
+
573
+ .lee-scroll {
574
+ flex: 1;
575
+ min-height: var(--lee-min-height);
576
+ max-height: var(--lee-max-height);
577
+ overflow-y: auto;
578
+ cursor: text;
579
+ }
580
+
581
+ .lee-content {
582
+ min-height: var(--lee-min-height);
583
+ padding: 16px 20px;
584
+ outline: none;
585
+ line-height: 1.6;
586
+ overflow-wrap: break-word;
587
+ white-space: pre-wrap;
588
+ }
589
+
590
+ .lee-content > * + * {
591
+ margin-top: 0;
592
+ }
593
+
594
+ .lee-content p {
595
+ margin: 0;
596
+ }
597
+
598
+ .lee-content h1,
599
+ .lee-content h2,
600
+ .lee-content h3,
601
+ .lee-content h4 {
602
+ margin: 0.5em 0 0.25em;
603
+ font-weight: 700;
604
+ line-height: 1.25;
605
+ }
606
+
607
+ .lee-content h1 {
608
+ font-size: 2em;
609
+ }
610
+
611
+ .lee-content h2 {
612
+ font-size: 1.5em;
613
+ }
614
+
615
+ .lee-content h3 {
616
+ font-size: 1.17em;
617
+ }
618
+
619
+ .lee-content h4 {
620
+ font-size: 1em;
621
+ }
622
+
623
+ .lee-content ul,
624
+ .lee-content ol {
625
+ margin: 0.25em 0;
626
+ padding-inline-start: 1.75em;
627
+ }
628
+
629
+ .lee-content ul {
630
+ list-style: disc;
631
+ }
632
+
633
+ .lee-content ol {
634
+ list-style: decimal;
635
+ }
636
+
637
+ .lee-content ul ul {
638
+ list-style: circle;
639
+ }
640
+
641
+ .lee-content li p {
642
+ margin: 0;
643
+ }
644
+
645
+ .lee-content blockquote {
646
+ margin: 0.25em 0;
647
+ padding-inline-start: 12px;
648
+ border-inline-start: 3px solid var(--lee-border-strong);
649
+ color: var(--lee-icon);
650
+ }
651
+
652
+ .lee-content pre {
653
+ margin: 0.25em 0;
654
+ padding: 8px 10px;
655
+ border-radius: 4px;
656
+ background: var(--lee-subtle);
657
+ color: var(--lee-text);
658
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
659
+ font-size: 0.9em;
660
+ white-space: pre-wrap;
661
+ }
662
+
663
+ .lee-content a {
664
+ color: var(--lee-link);
665
+ text-decoration: underline;
666
+ cursor: text;
667
+ }
668
+
669
+ .lee-content img {
670
+ display: inline-block;
671
+ max-width: 100%;
672
+ height: auto;
673
+ vertical-align: bottom;
674
+ }
675
+
676
+ .lee-content img.ProseMirror-selectednode,
677
+ .lee-content [data-resize-container].ProseMirror-selectednode img {
678
+ outline: 2px solid var(--lee-focus);
679
+ }
680
+
681
+ .lee-content strong {
682
+ font-weight: 700;
683
+ }
684
+
685
+ .lee-content p.is-editor-empty:first-child::before {
686
+ content: attr(data-placeholder);
687
+ float: inline-start;
688
+ height: 0;
689
+ color: var(--lee-muted);
690
+ pointer-events: none;
691
+ white-space: pre-line;
692
+ }
693
+
694
+ /* An image while it uploads: a faded preview with a spinner */
695
+
696
+ .lee-upload {
697
+ position: relative;
698
+ display: inline-block;
699
+ min-width: 48px;
700
+ min-height: 48px;
701
+ max-width: 100%;
702
+ overflow: hidden;
703
+ border-radius: 4px;
704
+ background: var(--lee-subtle);
705
+ vertical-align: bottom;
706
+ }
707
+
708
+ .lee-upload img {
709
+ display: block;
710
+ width: auto;
711
+ max-width: 320px;
712
+ height: auto;
713
+ max-height: 200px;
714
+ opacity: 0.45;
715
+ }
716
+
717
+ .lee-upload-spinner {
718
+ position: absolute;
719
+ top: 50%;
720
+ left: 50%;
721
+ width: 22px;
722
+ height: 22px;
723
+ margin: -11px 0 0 -11px;
724
+ border: 2.5px solid rgb(0 0 0 / 0.15);
725
+ border-top-color: var(--lee-text);
726
+ border-radius: 50%;
727
+ animation: lee-spin 0.8s linear infinite;
728
+ }
729
+
730
+ /* Merge fields: a light chip, on screen only. Each field is drawn as touching pieces (start, middle, end), so only
731
+ the ends carry the rounded corners, padding and side edges. */
732
+
733
+ .lee-content .lee-token {
734
+ --lee-token-edge: var(--lee-field-border);
735
+ background: var(--lee-field-bg);
736
+ box-shadow:
737
+ inset 0 1px 0 var(--lee-token-edge),
738
+ inset 0 -1px 0 var(--lee-token-edge);
739
+ color: var(--lee-field-text);
740
+ padding-block: 1px;
741
+ -webkit-box-decoration-break: clone;
742
+ box-decoration-break: clone;
743
+ }
744
+
745
+ .lee-content .lee-token-start {
746
+ padding-inline-start: 3px;
747
+ border-start-start-radius: 4px;
748
+ border-end-start-radius: 4px;
749
+ box-shadow:
750
+ inset 1px 0 0 var(--lee-token-edge),
751
+ inset 0 1px 0 var(--lee-token-edge),
752
+ inset 0 -1px 0 var(--lee-token-edge);
753
+ }
754
+
755
+ .lee-content .lee-token-end {
756
+ padding-inline-end: 3px;
757
+ border-start-end-radius: 4px;
758
+ border-end-end-radius: 4px;
759
+ box-shadow:
760
+ inset -1px 0 0 var(--lee-token-edge),
761
+ inset 0 1px 0 var(--lee-token-edge),
762
+ inset 0 -1px 0 var(--lee-token-edge);
763
+ }
764
+
765
+ .lee-content .lee-token-start.lee-token-end {
766
+ box-shadow: inset 0 0 0 1px var(--lee-token-edge);
767
+ }
768
+
769
+ .lee-content [dir='rtl'] .lee-token-start,
770
+ .lee-content[dir='rtl'] .lee-token-start {
771
+ box-shadow:
772
+ inset -1px 0 0 var(--lee-token-edge),
773
+ inset 0 1px 0 var(--lee-token-edge),
774
+ inset 0 -1px 0 var(--lee-token-edge);
775
+ }
776
+
777
+ .lee-content [dir='rtl'] .lee-token-end,
778
+ .lee-content[dir='rtl'] .lee-token-end {
779
+ box-shadow:
780
+ inset 1px 0 0 var(--lee-token-edge),
781
+ inset 0 1px 0 var(--lee-token-edge),
782
+ inset 0 -1px 0 var(--lee-token-edge);
783
+ }
784
+
785
+ .lee-content .lee-token-mark {
786
+ color: var(--lee-field-mark, inherit);
787
+ }
788
+
789
+ /* Image resize handles */
790
+
791
+ .lee-content [data-resize-handle] {
792
+ position: absolute;
793
+ z-index: 1;
794
+ width: 10px;
795
+ height: 10px;
796
+ border: 1px solid #ffffff;
797
+ border-radius: 2px;
798
+ background: var(--lee-focus);
799
+ opacity: 0;
800
+ }
801
+
802
+ .lee-content [data-resize-container]:hover [data-resize-handle],
803
+ .lee-content .ProseMirror-selectednode [data-resize-handle],
804
+ .lee-content [data-resize-state='true'] [data-resize-handle] {
805
+ opacity: 1;
806
+ }
807
+ /*$vite$:1*/