@editorcn/editor 0.3.8 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +360 -513
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +315 -467
- package/dist/index.js.map +1 -1
- package/dist/style.css +1314 -1415
- package/package.json +62 -67
package/dist/style.css
CHANGED
|
@@ -1,1415 +1,1314 @@
|
|
|
1
|
-
/* ── Main Editor Wrapper ── */
|
|
2
|
-
.rte-root {
|
|
3
|
-
position: relative;
|
|
4
|
-
border-radius: var(--radius);
|
|
5
|
-
border: 1px solid var(--border);
|
|
6
|
-
background-color: var(--background);
|
|
7
|
-
transition:
|
|
8
|
-
border-color 150ms ease-out,
|
|
9
|
-
box-shadow 150ms ease-out;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.rte-editor-icon {
|
|
13
|
-
width: 1rem;
|
|
14
|
-
height: 1rem;
|
|
15
|
-
flex-shrink: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
button.rte-control-button {
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
height: 2rem;
|
|
23
|
-
min-width: 2rem;
|
|
24
|
-
padding: 0;
|
|
25
|
-
transition:
|
|
26
|
-
background-color 150ms ease-out,
|
|
27
|
-
color 150ms ease-out,
|
|
28
|
-
transform 100ms ease-out;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
button.rte-control-button:active {
|
|
32
|
-
transform: scale(0.96);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* ── Editor Content ── */
|
|
36
|
-
.rte-content .ProseMirror {
|
|
37
|
-
outline: 0;
|
|
38
|
-
padding: var(--spacing, 0.75rem);
|
|
39
|
-
min-height: 140px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.rte-content .ProseMirror > *:last-child {
|
|
43
|
-
margin-bottom: 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.rte-content .ProseMirror p.is-editor-empty:first-of-type::before {
|
|
47
|
-
content: attr(data-placeholder);
|
|
48
|
-
pointer-events: none;
|
|
49
|
-
user-select: none;
|
|
50
|
-
float: left;
|
|
51
|
-
height: 0;
|
|
52
|
-
color: var(--muted-foreground);
|
|
53
|
-
transition: opacity 150ms ease-out;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.rte-content .ProseMirror p {
|
|
57
|
-
margin-top: 0;
|
|
58
|
-
margin-bottom: 0.75rem;
|
|
59
|
-
line-height: 1.75;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.rte-content .ProseMirror h1,
|
|
63
|
-
.rte-content .ProseMirror h2,
|
|
64
|
-
.rte-content .ProseMirror h3,
|
|
65
|
-
.rte-content .ProseMirror h4,
|
|
66
|
-
.rte-content .ProseMirror h5,
|
|
67
|
-
.rte-content .ProseMirror h6,
|
|
68
|
-
.rte-content .ProseMirror p {
|
|
69
|
-
margin-top: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.rte-content .ProseMirror h1 {
|
|
73
|
-
font-size: 1.5rem;
|
|
74
|
-
font-weight: 700;
|
|
75
|
-
letter-spacing: -0.025em;
|
|
76
|
-
margin-bottom: 1rem;
|
|
77
|
-
margin-top: 1.5rem;
|
|
78
|
-
}
|
|
79
|
-
.rte-content .ProseMirror h1:first-child {
|
|
80
|
-
margin-top: 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.rte-content .ProseMirror h2 {
|
|
84
|
-
font-size: 1.25rem;
|
|
85
|
-
font-weight: 600;
|
|
86
|
-
letter-spacing: -0.025em;
|
|
87
|
-
margin-bottom: 0.75rem;
|
|
88
|
-
margin-top: 1.25rem;
|
|
89
|
-
}
|
|
90
|
-
.rte-content .ProseMirror h2:first-child {
|
|
91
|
-
margin-top: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.rte-content .ProseMirror h3 {
|
|
95
|
-
font-size: 1.125rem;
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
margin-bottom: 0.5rem;
|
|
98
|
-
margin-top: 1rem;
|
|
99
|
-
}
|
|
100
|
-
.rte-content .ProseMirror h3:first-child {
|
|
101
|
-
margin-top: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.rte-content .ProseMirror h4 {
|
|
105
|
-
font-size: 1rem;
|
|
106
|
-
font-weight: 600;
|
|
107
|
-
margin-bottom: 0.5rem;
|
|
108
|
-
margin-top: 0.75rem;
|
|
109
|
-
}
|
|
110
|
-
.rte-content .ProseMirror h4:first-child {
|
|
111
|
-
margin-top: 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.rte-content .ProseMirror h5 {
|
|
115
|
-
font-size: 0.875rem;
|
|
116
|
-
font-weight: 600;
|
|
117
|
-
margin-bottom: 0.5rem;
|
|
118
|
-
margin-top: 0.75rem;
|
|
119
|
-
}
|
|
120
|
-
.rte-content .ProseMirror h5:first-child {
|
|
121
|
-
margin-top: 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.rte-content .ProseMirror h6 {
|
|
125
|
-
font-size: 0.875rem;
|
|
126
|
-
font-weight: 500;
|
|
127
|
-
margin-bottom: 0.5rem;
|
|
128
|
-
margin-top: 0.75rem;
|
|
129
|
-
}
|
|
130
|
-
.rte-content .ProseMirror h6:first-child {
|
|
131
|
-
margin-top: 0;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.rte-content .ProseMirror ul {
|
|
135
|
-
list-style-type: disc;
|
|
136
|
-
padding-left: 1.5rem;
|
|
137
|
-
margin-bottom: 0.75rem;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.rte-content .ProseMirror ol {
|
|
141
|
-
list-style-type: decimal;
|
|
142
|
-
padding-left: 1.5rem;
|
|
143
|
-
margin-bottom: 0.75rem;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.rte-content .ProseMirror li {
|
|
147
|
-
line-height: 1.75;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.rte-content .ProseMirror li > p {
|
|
151
|
-
margin-bottom: 0;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.rte-content .ProseMirror ul li,
|
|
155
|
-
.rte-content .ProseMirror ol li {
|
|
156
|
-
margin-top: 2px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.rte-content .ProseMirror blockquote {
|
|
160
|
-
border-left: 3px solid var(--border);
|
|
161
|
-
padding-left: 1rem;
|
|
162
|
-
margin-top: 1rem;
|
|
163
|
-
margin-bottom: 1rem;
|
|
164
|
-
color: var(--muted-foreground);
|
|
165
|
-
font-style: italic;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.rte-content .ProseMirror pre
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
font-size: 0.875rem;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
border: none;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
text-decoration:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
.rte-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.rte-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
color:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
color:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.rte-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
.
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
.rte-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
.rte-root[data-variant="
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
height:
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
.rte-
|
|
532
|
-
.rte-controls-group
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}
|
|
540
|
-
.rte-root[data-variant="
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
.
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.rte-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
.
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
.rte-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
.rte-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
border
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
color 150ms ease-out
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
color: var(--
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
.rte-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
display:
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
.rte-embed {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
.rte-embed-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
color: var(--
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
cursor:
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
background: var(--primary);
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
height:
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
border-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
.rte-resize-handle--
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
.rte-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
.rte-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
.rte-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
.rte-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
.rte-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
.rte-bubble-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
.
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
.rte-bubble-
|
|
1165
|
-
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
.rte-bubble-
|
|
1169
|
-
color: var(--primary);
|
|
1170
|
-
background: var(--
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
.rte-bubble-
|
|
1174
|
-
display: flex;
|
|
1175
|
-
align-items: center;
|
|
1176
|
-
justify-content: center;
|
|
1177
|
-
flex-shrink: 0;
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
.rte-bubble-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
.rte-bubble-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
.
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
.rte-bubble-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
padding: 0 0.125rem;
|
|
1316
|
-
color: var(--muted-foreground);
|
|
1317
|
-
font-size: 0.75rem;
|
|
1318
|
-
font-weight: 700;
|
|
1319
|
-
line-height: 1;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
.rte-bubble-color-grid {
|
|
1323
|
-
display: grid;
|
|
1324
|
-
grid-template-columns: repeat(5, 1.5rem);
|
|
1325
|
-
justify-content: center;
|
|
1326
|
-
gap: 0.375rem;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
.rte-bubble-color-recent {
|
|
1330
|
-
display: flex;
|
|
1331
|
-
flex-wrap: wrap;
|
|
1332
|
-
justify-content: center;
|
|
1333
|
-
gap: 0.375rem;
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
.rte-bubble-color-swatch {
|
|
1337
|
-
display: inline-flex;
|
|
1338
|
-
align-items: center;
|
|
1339
|
-
justify-content: center;
|
|
1340
|
-
width: 1.5rem;
|
|
1341
|
-
height: 1.5rem;
|
|
1342
|
-
padding: 0;
|
|
1343
|
-
border-radius: 999px;
|
|
1344
|
-
border: 1px solid transparent;
|
|
1345
|
-
cursor: pointer;
|
|
1346
|
-
transition:
|
|
1347
|
-
transform 120ms cubic-bezier(0.34, 1.56, 0.64, 1),
|
|
1348
|
-
background-color 100ms ease-out,
|
|
1349
|
-
border-color 100ms ease-out,
|
|
1350
|
-
color 100ms ease-out,
|
|
1351
|
-
box-shadow 120ms ease-out;
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
.rte-bubble-color-swatch:hover {
|
|
1355
|
-
transform: scale(1.1);
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
.rte-bubble-color-swatch:active {
|
|
1359
|
-
transform: scale(0.96);
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
.rte-bubble-color-swatch:focus-visible {
|
|
1363
|
-
outline: 2px solid var(--ring);
|
|
1364
|
-
outline-offset: 1px;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
.rte-bubble-color-swatch--text {
|
|
1368
|
-
background: transparent;
|
|
1369
|
-
border-color: var(--swatch-color);
|
|
1370
|
-
color: var(--swatch-color);
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
.rte-bubble-color-swatch--text.rte-bubble-color-swatch--active {
|
|
1374
|
-
background: var(--swatch-color);
|
|
1375
|
-
border-color: var(--swatch-color);
|
|
1376
|
-
color: var(--swatch-check);
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
.rte-bubble-color-swatch--highlight {
|
|
1380
|
-
background: var(--swatch-color);
|
|
1381
|
-
border-color: transparent;
|
|
1382
|
-
color: var(--swatch-check);
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
.rte-bubble-color-swatch--highlight.rte-bubble-color-swatch--active {
|
|
1386
|
-
box-shadow: 0 0 0 2px
|
|
1387
|
-
color-mix(in srgb, var(--swatch-color) 55%, var(--popover-foreground));
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
.rte-bubble-color-glyph {
|
|
1391
|
-
font-size: 0.625rem;
|
|
1392
|
-
font-weight: 700;
|
|
1393
|
-
line-height: 1;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
.rte-bubble-color-check {
|
|
1397
|
-
display: flex;
|
|
1398
|
-
align-items: center;
|
|
1399
|
-
justify-content: center;
|
|
1400
|
-
width: 0.75rem;
|
|
1401
|
-
height: 0.75rem;
|
|
1402
|
-
color: var(--swatch-check);
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
.rte-bubble-color-check svg {
|
|
1406
|
-
width: 100%;
|
|
1407
|
-
height: 100%;
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
/* ── Suppress transitions on theme switch ── */
|
|
1411
|
-
.rte-theme-transitioning *,
|
|
1412
|
-
.rte-theme-transitioning *::before,
|
|
1413
|
-
.rte-theme-transitioning *::after {
|
|
1414
|
-
transition: none !important;
|
|
1415
|
-
}
|
|
1
|
+
/* ── Main Editor Wrapper ── */
|
|
2
|
+
.rte-root {
|
|
3
|
+
position: relative;
|
|
4
|
+
border-radius: var(--radius);
|
|
5
|
+
border: 1px solid var(--border);
|
|
6
|
+
background-color: var(--background);
|
|
7
|
+
transition:
|
|
8
|
+
border-color 150ms ease-out,
|
|
9
|
+
box-shadow 150ms ease-out;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.rte-editor-icon {
|
|
13
|
+
width: 1rem;
|
|
14
|
+
height: 1rem;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
button.rte-control-button {
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
height: 2rem;
|
|
23
|
+
min-width: 2rem;
|
|
24
|
+
padding: 0;
|
|
25
|
+
transition:
|
|
26
|
+
background-color 150ms ease-out,
|
|
27
|
+
color 150ms ease-out,
|
|
28
|
+
transform 100ms ease-out;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
button.rte-control-button:active {
|
|
32
|
+
transform: scale(0.96);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* ── Editor Content ── */
|
|
36
|
+
.rte-content .ProseMirror {
|
|
37
|
+
outline: 0;
|
|
38
|
+
padding: var(--spacing, 0.75rem);
|
|
39
|
+
min-height: 140px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.rte-content .ProseMirror > *:last-child {
|
|
43
|
+
margin-bottom: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rte-content .ProseMirror p.is-editor-empty:first-of-type::before {
|
|
47
|
+
content: attr(data-placeholder);
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
user-select: none;
|
|
50
|
+
float: left;
|
|
51
|
+
height: 0;
|
|
52
|
+
color: var(--muted-foreground);
|
|
53
|
+
transition: opacity 150ms ease-out;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.rte-content .ProseMirror p {
|
|
57
|
+
margin-top: 0;
|
|
58
|
+
margin-bottom: 0.75rem;
|
|
59
|
+
line-height: 1.75;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.rte-content .ProseMirror h1,
|
|
63
|
+
.rte-content .ProseMirror h2,
|
|
64
|
+
.rte-content .ProseMirror h3,
|
|
65
|
+
.rte-content .ProseMirror h4,
|
|
66
|
+
.rte-content .ProseMirror h5,
|
|
67
|
+
.rte-content .ProseMirror h6,
|
|
68
|
+
.rte-content .ProseMirror p {
|
|
69
|
+
margin-top: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.rte-content .ProseMirror h1 {
|
|
73
|
+
font-size: 1.5rem;
|
|
74
|
+
font-weight: 700;
|
|
75
|
+
letter-spacing: -0.025em;
|
|
76
|
+
margin-bottom: 1rem;
|
|
77
|
+
margin-top: 1.5rem;
|
|
78
|
+
}
|
|
79
|
+
.rte-content .ProseMirror h1:first-child {
|
|
80
|
+
margin-top: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.rte-content .ProseMirror h2 {
|
|
84
|
+
font-size: 1.25rem;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
letter-spacing: -0.025em;
|
|
87
|
+
margin-bottom: 0.75rem;
|
|
88
|
+
margin-top: 1.25rem;
|
|
89
|
+
}
|
|
90
|
+
.rte-content .ProseMirror h2:first-child {
|
|
91
|
+
margin-top: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.rte-content .ProseMirror h3 {
|
|
95
|
+
font-size: 1.125rem;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
margin-bottom: 0.5rem;
|
|
98
|
+
margin-top: 1rem;
|
|
99
|
+
}
|
|
100
|
+
.rte-content .ProseMirror h3:first-child {
|
|
101
|
+
margin-top: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.rte-content .ProseMirror h4 {
|
|
105
|
+
font-size: 1rem;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
margin-bottom: 0.5rem;
|
|
108
|
+
margin-top: 0.75rem;
|
|
109
|
+
}
|
|
110
|
+
.rte-content .ProseMirror h4:first-child {
|
|
111
|
+
margin-top: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.rte-content .ProseMirror h5 {
|
|
115
|
+
font-size: 0.875rem;
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
margin-bottom: 0.5rem;
|
|
118
|
+
margin-top: 0.75rem;
|
|
119
|
+
}
|
|
120
|
+
.rte-content .ProseMirror h5:first-child {
|
|
121
|
+
margin-top: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.rte-content .ProseMirror h6 {
|
|
125
|
+
font-size: 0.875rem;
|
|
126
|
+
font-weight: 500;
|
|
127
|
+
margin-bottom: 0.5rem;
|
|
128
|
+
margin-top: 0.75rem;
|
|
129
|
+
}
|
|
130
|
+
.rte-content .ProseMirror h6:first-child {
|
|
131
|
+
margin-top: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.rte-content .ProseMirror ul {
|
|
135
|
+
list-style-type: disc;
|
|
136
|
+
padding-left: 1.5rem;
|
|
137
|
+
margin-bottom: 0.75rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.rte-content .ProseMirror ol {
|
|
141
|
+
list-style-type: decimal;
|
|
142
|
+
padding-left: 1.5rem;
|
|
143
|
+
margin-bottom: 0.75rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.rte-content .ProseMirror li {
|
|
147
|
+
line-height: 1.75;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.rte-content .ProseMirror li > p {
|
|
151
|
+
margin-bottom: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.rte-content .ProseMirror ul li,
|
|
155
|
+
.rte-content .ProseMirror ol li {
|
|
156
|
+
margin-top: 2px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.rte-content .ProseMirror blockquote {
|
|
160
|
+
border-left: 3px solid var(--border);
|
|
161
|
+
padding-left: 1rem;
|
|
162
|
+
margin-top: 1rem;
|
|
163
|
+
margin-bottom: 1rem;
|
|
164
|
+
color: var(--muted-foreground);
|
|
165
|
+
font-style: italic;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.rte-content .ProseMirror :where(pre) {
|
|
169
|
+
background: #1e1e2e;
|
|
170
|
+
color: #cdd6f4;
|
|
171
|
+
border-radius: var(--radius);
|
|
172
|
+
border: 1px solid var(--border);
|
|
173
|
+
padding: 1rem;
|
|
174
|
+
margin-top: 1rem;
|
|
175
|
+
margin-bottom: 1rem;
|
|
176
|
+
overflow-x: auto;
|
|
177
|
+
font-family: var(--font-mono);
|
|
178
|
+
font-size: 0.875rem;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.rte-content .ProseMirror :where(pre) code {
|
|
182
|
+
background: none;
|
|
183
|
+
color: inherit;
|
|
184
|
+
border: none;
|
|
185
|
+
font-size: 0.875rem;
|
|
186
|
+
font-weight: 400;
|
|
187
|
+
padding: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.rte-content .ProseMirror hr {
|
|
191
|
+
border: none;
|
|
192
|
+
border-top: 1px solid var(--border);
|
|
193
|
+
margin-top: 1.5rem;
|
|
194
|
+
margin-bottom: 1.5rem;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.rte-content .ProseMirror a {
|
|
198
|
+
color: var(--primary);
|
|
199
|
+
text-decoration: underline;
|
|
200
|
+
text-underline-offset: 4px;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
transition:
|
|
203
|
+
color 150ms ease-out,
|
|
204
|
+
text-decoration-color 150ms ease-out;
|
|
205
|
+
text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.rte-content .ProseMirror a:hover {
|
|
209
|
+
color: color-mix(in srgb, var(--primary) 80%, transparent);
|
|
210
|
+
text-decoration-color: color-mix(in srgb, var(--primary) 80%, transparent);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.rte-content .ProseMirror code {
|
|
214
|
+
font-size: 0.875em;
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
background: color-mix(in srgb, var(--muted) 70%, transparent);
|
|
217
|
+
padding: 0.125rem 0.375rem;
|
|
218
|
+
border-radius: calc(var(--radius) - 4px);
|
|
219
|
+
transition: background-color 150ms ease-out;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* ── Toolbars and Footer ── */
|
|
223
|
+
.rte-toolbar {
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
justify-content: center;
|
|
227
|
+
flex-wrap: wrap;
|
|
228
|
+
gap: 0.5rem;
|
|
229
|
+
top: var(--rte-sticky-offset, 0px);
|
|
230
|
+
background-color: color-mix(in srgb, var(--muted) 35%, var(--background));
|
|
231
|
+
z-index: 1;
|
|
232
|
+
border-start-end-radius: var(--radius);
|
|
233
|
+
border-start-start-radius: var(--radius);
|
|
234
|
+
border-bottom: 1px solid var(--border);
|
|
235
|
+
padding: 0.5rem 0.75rem;
|
|
236
|
+
transition:
|
|
237
|
+
box-shadow 150ms ease-out,
|
|
238
|
+
background-color 150ms ease-out;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.rte-toolbar[data-sticky] {
|
|
242
|
+
position: sticky;
|
|
243
|
+
background-color: color-mix(in srgb, var(--background) 85%, transparent);
|
|
244
|
+
backdrop-filter: blur(8px);
|
|
245
|
+
box-shadow:
|
|
246
|
+
0px 0px 0px 1px oklch(0 0 0 / 0.04),
|
|
247
|
+
0px 4px 12px 0px oklch(0 0 0 / 0.05);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@media (prefers-color-scheme: dark) {
|
|
251
|
+
.rte-toolbar[data-sticky] {
|
|
252
|
+
box-shadow:
|
|
253
|
+
0px 0px 0px 1px oklch(1 0 0 / 0.06),
|
|
254
|
+
0px 4px 12px 0px oklch(0 0 0 / 0.3);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.rte-footer {
|
|
259
|
+
display: flex;
|
|
260
|
+
align-items: center;
|
|
261
|
+
justify-content: space-between;
|
|
262
|
+
flex-wrap: wrap;
|
|
263
|
+
gap: 0.5rem;
|
|
264
|
+
background-color: var(--background);
|
|
265
|
+
z-index: 1;
|
|
266
|
+
border-end-end-radius: var(--radius);
|
|
267
|
+
border-end-start-radius: var(--radius);
|
|
268
|
+
border-top: 1px solid var(--border);
|
|
269
|
+
padding: 0.5rem 0.75rem;
|
|
270
|
+
font-size: 0.75rem;
|
|
271
|
+
color: var(--muted-foreground);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.rte-footer[data-sticky] {
|
|
275
|
+
position: sticky;
|
|
276
|
+
bottom: 0;
|
|
277
|
+
background-color: color-mix(in srgb, var(--background) 85%, transparent);
|
|
278
|
+
backdrop-filter: blur(8px);
|
|
279
|
+
box-shadow:
|
|
280
|
+
0px 0px 0px 1px oklch(0 0 0 / 0.04),
|
|
281
|
+
0px -4px 12px 0px oklch(0 0 0 / 0.05);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@media (prefers-color-scheme: dark) {
|
|
285
|
+
.rte-footer[data-sticky] {
|
|
286
|
+
box-shadow:
|
|
287
|
+
0px 0px 0px 1px oklch(1 0 0 / 0.06),
|
|
288
|
+
0px -4px 12px 0px oklch(0 0 0 / 0.3);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.rte-footer-word-count {
|
|
293
|
+
display: inline-flex;
|
|
294
|
+
align-items: center;
|
|
295
|
+
gap: 0.375rem;
|
|
296
|
+
white-space: nowrap;
|
|
297
|
+
font-size: 0.75rem;
|
|
298
|
+
letter-spacing: 0.01em;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.rte-footer-word-count-stat {
|
|
302
|
+
display: inline-flex;
|
|
303
|
+
align-items: baseline;
|
|
304
|
+
gap: 0.25rem;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.rte-footer-word-count-number {
|
|
308
|
+
font-weight: 600;
|
|
309
|
+
font-variant-numeric: tabular-nums;
|
|
310
|
+
color: var(--foreground);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.rte-footer-word-count-unit {
|
|
314
|
+
color: var(--muted-foreground);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.rte-footer-word-count-separator {
|
|
318
|
+
width: 3px;
|
|
319
|
+
height: 3px;
|
|
320
|
+
flex-shrink: 0;
|
|
321
|
+
border-radius: 9999px;
|
|
322
|
+
background-color: color-mix(
|
|
323
|
+
in srgb,
|
|
324
|
+
var(--muted-foreground) 45%,
|
|
325
|
+
transparent
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.rte-toolbar--subtle + .rte-content + .rte-footer {
|
|
330
|
+
background-color: var(--muted);
|
|
331
|
+
}
|
|
332
|
+
.rte-toolbar--compact + .rte-content + .rte-footer {
|
|
333
|
+
background-color: var(--muted);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@media (max-width: 640px) {
|
|
337
|
+
.rte-toolbar {
|
|
338
|
+
flex-wrap: nowrap;
|
|
339
|
+
overflow-x: auto;
|
|
340
|
+
justify-content: flex-start;
|
|
341
|
+
scrollbar-width: none;
|
|
342
|
+
-ms-overflow-style: none;
|
|
343
|
+
-webkit-overflow-scrolling: touch;
|
|
344
|
+
--rte-toolbar-fade-end: 1.5rem;
|
|
345
|
+
mask-image: linear-gradient(
|
|
346
|
+
to right,
|
|
347
|
+
transparent,
|
|
348
|
+
black var(--rte-toolbar-fade-start),
|
|
349
|
+
black calc(100% - var(--rte-toolbar-fade-end)),
|
|
350
|
+
transparent
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
.rte-toolbar::-webkit-scrollbar {
|
|
354
|
+
display: none;
|
|
355
|
+
}
|
|
356
|
+
@supports (animation-timeline: scroll()) {
|
|
357
|
+
.rte-toolbar {
|
|
358
|
+
--rte-toolbar-fade-end: 0px;
|
|
359
|
+
animation: rte-toolbar-fade linear both;
|
|
360
|
+
animation-timeline: scroll(self inline);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
@property --rte-toolbar-fade-start {
|
|
366
|
+
syntax: "<length>";
|
|
367
|
+
inherits: false;
|
|
368
|
+
initial-value: 0px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@property --rte-toolbar-fade-end {
|
|
372
|
+
syntax: "<length>";
|
|
373
|
+
inherits: false;
|
|
374
|
+
initial-value: 0px;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@keyframes rte-toolbar-fade {
|
|
378
|
+
from {
|
|
379
|
+
--rte-toolbar-fade-start: 0px;
|
|
380
|
+
--rte-toolbar-fade-end: 1.5rem;
|
|
381
|
+
}
|
|
382
|
+
10%,
|
|
383
|
+
90% {
|
|
384
|
+
--rte-toolbar-fade-start: 1.5rem;
|
|
385
|
+
--rte-toolbar-fade-end: 1.5rem;
|
|
386
|
+
}
|
|
387
|
+
to {
|
|
388
|
+
--rte-toolbar-fade-start: 1.5rem;
|
|
389
|
+
--rte-toolbar-fade-end: 0px;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.rte-root[data-variant="default"] {
|
|
394
|
+
box-shadow: 0 1px 2px oklch(0 0 0 / 0.04);
|
|
395
|
+
}
|
|
396
|
+
.rte-root[data-variant="default"] .rte-toolbar {
|
|
397
|
+
gap: 0.25rem;
|
|
398
|
+
padding: 0.375rem 0.5rem;
|
|
399
|
+
background-color: var(--background);
|
|
400
|
+
}
|
|
401
|
+
.rte-root[data-variant="default"] .rte-content .ProseMirror {
|
|
402
|
+
padding: 1.25rem 1.5rem;
|
|
403
|
+
}
|
|
404
|
+
.rte-root[data-variant="default"] .rte-controls-group {
|
|
405
|
+
display: flex;
|
|
406
|
+
align-items: center;
|
|
407
|
+
gap: 0.125rem;
|
|
408
|
+
}
|
|
409
|
+
.rte-root[data-variant="default"]
|
|
410
|
+
.rte-controls-group
|
|
411
|
+
+ .rte-controls-group::before {
|
|
412
|
+
content: "";
|
|
413
|
+
width: 1px;
|
|
414
|
+
height: 1.25rem;
|
|
415
|
+
margin-inline: 0.25rem;
|
|
416
|
+
background-color: var(--border);
|
|
417
|
+
flex-shrink: 0;
|
|
418
|
+
}
|
|
419
|
+
.rte-root[data-variant="default"] .rte-controls-group > button {
|
|
420
|
+
border: none;
|
|
421
|
+
border-radius: calc(var(--radius) - 2px);
|
|
422
|
+
min-width: 2rem;
|
|
423
|
+
height: 2rem;
|
|
424
|
+
background-color: transparent;
|
|
425
|
+
color: var(--foreground);
|
|
426
|
+
transition:
|
|
427
|
+
background-color 150ms ease-out,
|
|
428
|
+
color 150ms ease-out;
|
|
429
|
+
}
|
|
430
|
+
.rte-root[data-variant="default"]
|
|
431
|
+
.rte-controls-group
|
|
432
|
+
> button:hover:not(:disabled) {
|
|
433
|
+
background-color: var(--muted);
|
|
434
|
+
}
|
|
435
|
+
.rte-root[data-variant="default"] .rte-controls-group > button:disabled {
|
|
436
|
+
opacity: 0.4;
|
|
437
|
+
cursor: not-allowed;
|
|
438
|
+
}
|
|
439
|
+
.rte-root[data-variant="default"] .rte-controls-group > button:focus-visible {
|
|
440
|
+
outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
|
|
441
|
+
outline-offset: 1px;
|
|
442
|
+
}
|
|
443
|
+
.rte-root[data-variant="default"] .rte-controls-group > button[data-state="on"],
|
|
444
|
+
.rte-root[data-variant="default"]
|
|
445
|
+
.rte-controls-group
|
|
446
|
+
> button[aria-pressed="true"] {
|
|
447
|
+
background-color: var(--accent);
|
|
448
|
+
color: var(--accent-foreground);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* ── Subtle variant: elevated card with soft toolbar ── */
|
|
452
|
+
.rte-root[data-variant="subtle"] {
|
|
453
|
+
border-color: transparent;
|
|
454
|
+
box-shadow:
|
|
455
|
+
0 1px 3px rgba(0, 0, 0, 0.06),
|
|
456
|
+
0 1px 2px rgba(0, 0, 0, 0.04);
|
|
457
|
+
}
|
|
458
|
+
.rte-toolbar--subtle {
|
|
459
|
+
border-bottom: 1px solid var(--border);
|
|
460
|
+
padding: 0.375rem 0.5rem;
|
|
461
|
+
gap: 0.375rem;
|
|
462
|
+
background-color: var(--muted);
|
|
463
|
+
}
|
|
464
|
+
.rte-root[data-variant="subtle"] .rte-content .ProseMirror {
|
|
465
|
+
padding: 0.875rem;
|
|
466
|
+
}
|
|
467
|
+
.rte-root[data-variant="subtle"] .rte-controls-group {
|
|
468
|
+
display: flex;
|
|
469
|
+
align-items: center;
|
|
470
|
+
}
|
|
471
|
+
.rte-root[data-variant="subtle"]
|
|
472
|
+
.rte-controls-group
|
|
473
|
+
+ .rte-controls-group::before {
|
|
474
|
+
content: "";
|
|
475
|
+
width: 1px;
|
|
476
|
+
height: 1rem;
|
|
477
|
+
margin-inline: 0.25rem;
|
|
478
|
+
background-color: var(--border);
|
|
479
|
+
flex-shrink: 0;
|
|
480
|
+
}
|
|
481
|
+
.rte-root[data-variant="subtle"] .rte-controls-group > button {
|
|
482
|
+
border: none;
|
|
483
|
+
border-radius: calc(var(--radius) - 2px);
|
|
484
|
+
min-width: 2rem;
|
|
485
|
+
height: 2rem;
|
|
486
|
+
background-color: transparent;
|
|
487
|
+
color: var(--muted-foreground);
|
|
488
|
+
transition:
|
|
489
|
+
background-color 150ms ease-out,
|
|
490
|
+
color 150ms ease-out;
|
|
491
|
+
}
|
|
492
|
+
.rte-root[data-variant="subtle"] .rte-controls-group > button:hover {
|
|
493
|
+
background-color: var(--accent);
|
|
494
|
+
color: var(--accent-foreground);
|
|
495
|
+
}
|
|
496
|
+
.rte-root[data-variant="subtle"] .rte-controls-group > button:focus-visible {
|
|
497
|
+
outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
|
|
498
|
+
outline-offset: 1px;
|
|
499
|
+
background-color: var(--accent);
|
|
500
|
+
color: var(--accent-foreground);
|
|
501
|
+
}
|
|
502
|
+
.rte-root[data-variant="subtle"] .rte-controls-group > button[data-state="on"],
|
|
503
|
+
.rte-root[data-variant="subtle"]
|
|
504
|
+
.rte-controls-group
|
|
505
|
+
> button[aria-pressed="true"] {
|
|
506
|
+
background-color: color-mix(in srgb, var(--primary) 12%, transparent);
|
|
507
|
+
color: var(--primary);
|
|
508
|
+
box-shadow: inset 0 0 0 1px
|
|
509
|
+
color-mix(in srgb, var(--primary) 25%, transparent);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/* ── Compact variant: inline fused toolbar-content ── */
|
|
513
|
+
.rte-root[data-variant="compact"] {
|
|
514
|
+
border-radius: var(--radius);
|
|
515
|
+
}
|
|
516
|
+
.rte-toolbar--compact {
|
|
517
|
+
padding: 0.25rem 0.375rem;
|
|
518
|
+
gap: 0.25rem;
|
|
519
|
+
border-bottom: none;
|
|
520
|
+
background-color: var(--muted);
|
|
521
|
+
}
|
|
522
|
+
.rte-root[data-variant="compact"] .rte-content .ProseMirror {
|
|
523
|
+
padding: 0.5rem 0.625rem;
|
|
524
|
+
min-height: 100px;
|
|
525
|
+
}
|
|
526
|
+
.rte-root[data-variant="compact"] .rte-controls-group {
|
|
527
|
+
display: flex;
|
|
528
|
+
align-items: center;
|
|
529
|
+
}
|
|
530
|
+
.rte-root[data-variant="compact"]
|
|
531
|
+
.rte-controls-group
|
|
532
|
+
+ .rte-controls-group::before {
|
|
533
|
+
content: "";
|
|
534
|
+
width: 1px;
|
|
535
|
+
height: 0.875rem;
|
|
536
|
+
margin-inline: 0.125rem;
|
|
537
|
+
background-color: var(--border);
|
|
538
|
+
flex-shrink: 0;
|
|
539
|
+
}
|
|
540
|
+
.rte-root[data-variant="compact"] .rte-controls-group > button {
|
|
541
|
+
border: none;
|
|
542
|
+
border-radius: calc(var(--radius) - 3px);
|
|
543
|
+
min-width: 1.5rem;
|
|
544
|
+
height: 1.5rem;
|
|
545
|
+
background-color: transparent;
|
|
546
|
+
color: var(--muted-foreground);
|
|
547
|
+
transition:
|
|
548
|
+
background-color 150ms ease-out,
|
|
549
|
+
color 150ms ease-out;
|
|
550
|
+
}
|
|
551
|
+
.rte-root[data-variant="compact"] .rte-controls-group > button:hover {
|
|
552
|
+
background-color: var(--accent);
|
|
553
|
+
color: var(--accent-foreground);
|
|
554
|
+
}
|
|
555
|
+
.rte-root[data-variant="compact"] .rte-controls-group > button:focus-visible {
|
|
556
|
+
outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
|
|
557
|
+
outline-offset: 1px;
|
|
558
|
+
background-color: var(--accent);
|
|
559
|
+
color: var(--accent-foreground);
|
|
560
|
+
}
|
|
561
|
+
.rte-root[data-variant="compact"] .rte-controls-group > button[data-state="on"],
|
|
562
|
+
.rte-root[data-variant="compact"]
|
|
563
|
+
.rte-controls-group
|
|
564
|
+
> button[aria-pressed="true"] {
|
|
565
|
+
background-color: color-mix(in srgb, var(--primary) 10%, transparent);
|
|
566
|
+
color: var(--primary);
|
|
567
|
+
box-shadow: inset 0 0 0 1px
|
|
568
|
+
color-mix(in srgb, var(--primary) 25%, transparent);
|
|
569
|
+
}
|
|
570
|
+
.rte-root[data-variant="compact"] .rte-editor-icon {
|
|
571
|
+
height: 0.875rem;
|
|
572
|
+
width: 0.875rem;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/* ── Controls group base (no separators) ── */
|
|
576
|
+
.rte-controls-group {
|
|
577
|
+
display: flex;
|
|
578
|
+
align-items: center;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.rte-link-editor {
|
|
582
|
+
display: flex;
|
|
583
|
+
align-items: center;
|
|
584
|
+
gap: 0.25rem;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.rte-link-editor-input {
|
|
588
|
+
flex: 1;
|
|
589
|
+
min-width: 200px;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.rte-link-editor-save {
|
|
593
|
+
border-start-start-radius: 0;
|
|
594
|
+
border-end-start-radius: 0;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* ── Task Lists ── */
|
|
598
|
+
.rte-task-list {
|
|
599
|
+
list-style-type: none;
|
|
600
|
+
padding: 0;
|
|
601
|
+
padding-inline-start: 0;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.rte-task-list li {
|
|
605
|
+
margin: 0;
|
|
606
|
+
padding: 0;
|
|
607
|
+
display: flex;
|
|
608
|
+
align-items: flex-start;
|
|
609
|
+
gap: 0.5rem;
|
|
610
|
+
transition: opacity 150ms ease-out;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.rte-task-list li[data-checked="true"] {
|
|
614
|
+
opacity: 0.6;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.rte-task-list li > div {
|
|
618
|
+
flex: 1;
|
|
619
|
+
min-width: 0;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.rte-task-list ul {
|
|
623
|
+
margin-top: 5px;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.rte-task-list p {
|
|
627
|
+
margin: 0;
|
|
628
|
+
padding: 0;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.rte-task-list label {
|
|
632
|
+
display: inline-flex;
|
|
633
|
+
align-items: center;
|
|
634
|
+
height: 1.75em;
|
|
635
|
+
cursor: pointer;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.rte-task-list input[type="checkbox"] {
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
appearance: none;
|
|
641
|
+
width: 18px;
|
|
642
|
+
height: 18px;
|
|
643
|
+
border: 1px solid var(--border);
|
|
644
|
+
border-radius: calc(var(--radius) - 2px);
|
|
645
|
+
background-color: var(--background);
|
|
646
|
+
vertical-align: middle;
|
|
647
|
+
position: relative;
|
|
648
|
+
flex-shrink: 0;
|
|
649
|
+
transition:
|
|
650
|
+
background-color 150ms ease-out,
|
|
651
|
+
border-color 150ms ease-out,
|
|
652
|
+
transform 100ms ease-out;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.rte-task-list input[type="checkbox"]:active {
|
|
656
|
+
transform: scale(0.96);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.rte-task-list input[type="checkbox"]:checked {
|
|
660
|
+
background-color: var(--primary);
|
|
661
|
+
border-color: var(--primary);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
@keyframes checkmark-in {
|
|
665
|
+
0% {
|
|
666
|
+
transform: scale(0.5) rotate(-15deg);
|
|
667
|
+
opacity: 0;
|
|
668
|
+
}
|
|
669
|
+
100% {
|
|
670
|
+
transform: scale(1) rotate(0);
|
|
671
|
+
opacity: 1;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.rte-task-list input[type="checkbox"]:checked::before {
|
|
676
|
+
position: absolute;
|
|
677
|
+
content: "";
|
|
678
|
+
inset: 0;
|
|
679
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAxMCA3Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNCA0LjU4NkwxLjcwNyAyLjI5M0ExIDEgMCAxMC4yOTMgMy43MDdsMyAzYS45OTcuOTk3IDAgMDAxLjQxNCAwbDUtNUExIDEgMCAxMDguMjkzLjI5M0w0IDQuNTg2eiIvPjwvc3ZnPg==");
|
|
680
|
+
background-repeat: no-repeat;
|
|
681
|
+
background-size: 10px;
|
|
682
|
+
background-position: center;
|
|
683
|
+
animation: checkmark-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/* ── Embed nodes ── */
|
|
687
|
+
.rte-embed-wrapper {
|
|
688
|
+
display: flex;
|
|
689
|
+
width: 100%;
|
|
690
|
+
margin: 1rem 0;
|
|
691
|
+
position: relative;
|
|
692
|
+
transition:
|
|
693
|
+
opacity 150ms ease-out,
|
|
694
|
+
transform 150ms ease-out;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.rte-embed-wrapper[data-align="left"] {
|
|
698
|
+
justify-content: flex-start;
|
|
699
|
+
text-align: left;
|
|
700
|
+
}
|
|
701
|
+
.rte-embed-wrapper[data-align="center"] {
|
|
702
|
+
justify-content: center;
|
|
703
|
+
text-align: center;
|
|
704
|
+
}
|
|
705
|
+
.rte-embed-wrapper[data-align="right"] {
|
|
706
|
+
justify-content: flex-end;
|
|
707
|
+
text-align: right;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.rte-embed-wrapper[data-selected] .rte-embed {
|
|
711
|
+
outline: 2px solid var(--primary);
|
|
712
|
+
outline-offset: 2px;
|
|
713
|
+
border-radius: var(--radius);
|
|
714
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.rte-embed {
|
|
718
|
+
position: relative;
|
|
719
|
+
overflow: visible;
|
|
720
|
+
border-radius: var(--radius);
|
|
721
|
+
background: var(--muted);
|
|
722
|
+
display: inline-block;
|
|
723
|
+
transition:
|
|
724
|
+
outline-color 150ms ease-out,
|
|
725
|
+
box-shadow 150ms ease-out;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.rte-embed-iframe {
|
|
729
|
+
width: 100%;
|
|
730
|
+
height: 100%;
|
|
731
|
+
aspect-ratio: 16 / 9;
|
|
732
|
+
border: 0;
|
|
733
|
+
display: block;
|
|
734
|
+
border-radius: var(--radius);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.rte-embed-loading {
|
|
738
|
+
padding: 2rem;
|
|
739
|
+
text-align: center;
|
|
740
|
+
color: var(--muted-foreground);
|
|
741
|
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
@keyframes pulse {
|
|
745
|
+
0%,
|
|
746
|
+
100% {
|
|
747
|
+
opacity: 1;
|
|
748
|
+
}
|
|
749
|
+
50% {
|
|
750
|
+
opacity: 0.5;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/* ── Floating Embed Selector Toolbar ── */
|
|
755
|
+
.rte-embed-selector {
|
|
756
|
+
position: absolute;
|
|
757
|
+
top: -46px;
|
|
758
|
+
left: 50%;
|
|
759
|
+
transform: translateX(-50%);
|
|
760
|
+
z-index: 50;
|
|
761
|
+
display: flex;
|
|
762
|
+
align-items: center;
|
|
763
|
+
height: 2.25rem;
|
|
764
|
+
background: var(--popover);
|
|
765
|
+
border: 1px solid var(--border);
|
|
766
|
+
border-radius: var(--radius);
|
|
767
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
|
|
768
|
+
padding: 0 0.375rem;
|
|
769
|
+
gap: 0.25rem;
|
|
770
|
+
white-space: nowrap;
|
|
771
|
+
animation: rte-bubble-pop-in 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
772
|
+
pointer-events: auto;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.rte-embed-selector-group {
|
|
776
|
+
display: flex;
|
|
777
|
+
align-items: center;
|
|
778
|
+
gap: 2px;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.rte-embed-selector-divider {
|
|
782
|
+
width: 1px;
|
|
783
|
+
height: 1.25rem;
|
|
784
|
+
background: var(--border);
|
|
785
|
+
margin: 0 0.125rem;
|
|
786
|
+
flex-shrink: 0;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.rte-embed-selector-btn {
|
|
790
|
+
display: inline-flex;
|
|
791
|
+
align-items: center;
|
|
792
|
+
justify-content: center;
|
|
793
|
+
height: 1.75rem;
|
|
794
|
+
min-width: 1.75rem;
|
|
795
|
+
padding: 0 0.375rem;
|
|
796
|
+
border: none;
|
|
797
|
+
border-radius: calc(var(--radius) - 4px);
|
|
798
|
+
background: transparent;
|
|
799
|
+
color: var(--popover-foreground);
|
|
800
|
+
cursor: pointer;
|
|
801
|
+
font-size: 0.75rem;
|
|
802
|
+
font-weight: 500;
|
|
803
|
+
transition:
|
|
804
|
+
background-color 150ms ease-out,
|
|
805
|
+
color 150ms ease-out,
|
|
806
|
+
transform 100ms ease-out;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.rte-embed-selector-btn:hover {
|
|
810
|
+
background: var(--accent);
|
|
811
|
+
color: var(--accent-foreground);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.rte-embed-selector-btn:active {
|
|
815
|
+
transform: scale(0.96);
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.rte-embed-selector-btn--active {
|
|
819
|
+
color: var(--primary);
|
|
820
|
+
background: color-mix(in srgb, var(--primary) 12%, transparent);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.rte-embed-selector-btn--preset {
|
|
824
|
+
font-weight: 600;
|
|
825
|
+
font-size: 0.7rem;
|
|
826
|
+
letter-spacing: 0.02em;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.rte-embed-selector-btn--danger:hover {
|
|
830
|
+
background: color-mix(in srgb, var(--destructive) 15%, transparent);
|
|
831
|
+
color: var(--destructive);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.rte-embed-selector-btn--save {
|
|
835
|
+
background: var(--primary);
|
|
836
|
+
color: var(--primary-foreground);
|
|
837
|
+
padding: 0 0.5rem;
|
|
838
|
+
}
|
|
839
|
+
.rte-embed-selector-btn--save:hover {
|
|
840
|
+
background: color-mix(in srgb, var(--primary) 90%, black);
|
|
841
|
+
color: var(--primary-foreground);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.rte-embed-selector-edit-form {
|
|
845
|
+
display: flex;
|
|
846
|
+
align-items: center;
|
|
847
|
+
gap: 0.375rem;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.rte-embed-selector-input {
|
|
851
|
+
height: 1.75rem;
|
|
852
|
+
width: 220px;
|
|
853
|
+
padding: 0 0.5rem;
|
|
854
|
+
font-size: 0.75rem;
|
|
855
|
+
border-radius: calc(var(--radius) - 4px);
|
|
856
|
+
border: 1px solid var(--border);
|
|
857
|
+
background: var(--background);
|
|
858
|
+
color: var(--foreground);
|
|
859
|
+
outline: none;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.rte-embed-selector-input:focus {
|
|
863
|
+
border-color: var(--primary);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.rte-embed-resize-badge {
|
|
867
|
+
position: absolute;
|
|
868
|
+
bottom: 8px;
|
|
869
|
+
right: 8px;
|
|
870
|
+
z-index: 40;
|
|
871
|
+
background: rgba(0, 0, 0, 0.75);
|
|
872
|
+
color: #fff;
|
|
873
|
+
font-size: 0.7rem;
|
|
874
|
+
font-weight: 600;
|
|
875
|
+
padding: 2px 6px;
|
|
876
|
+
border-radius: 4px;
|
|
877
|
+
pointer-events: none;
|
|
878
|
+
backdrop-filter: blur(4px);
|
|
879
|
+
font-family: var(--font-mono, monospace);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/* ── Resize handles for embeds ── */
|
|
883
|
+
.rte-resize-handle {
|
|
884
|
+
position: absolute;
|
|
885
|
+
z-index: 10;
|
|
886
|
+
opacity: 0;
|
|
887
|
+
transition:
|
|
888
|
+
opacity 150ms ease-out,
|
|
889
|
+
background-color 150ms ease-out;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.rte-embed-wrapper[data-selected] .rte-resize-handle {
|
|
893
|
+
opacity: 1;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.rte-resize-handle--left {
|
|
897
|
+
top: 0;
|
|
898
|
+
bottom: 0;
|
|
899
|
+
left: -3px;
|
|
900
|
+
width: 6px;
|
|
901
|
+
cursor: ew-resize;
|
|
902
|
+
background: transparent;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.rte-resize-handle--left::after {
|
|
906
|
+
content: "";
|
|
907
|
+
position: absolute;
|
|
908
|
+
inset: 4px 1px;
|
|
909
|
+
width: 2px;
|
|
910
|
+
background: var(--primary);
|
|
911
|
+
border-radius: 1px;
|
|
912
|
+
transition:
|
|
913
|
+
width 150ms ease-out,
|
|
914
|
+
inset 150ms ease-out;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.rte-resize-handle--left:hover::after {
|
|
918
|
+
width: 4px;
|
|
919
|
+
inset: 4px 0;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.rte-resize-handle--right {
|
|
923
|
+
top: 0;
|
|
924
|
+
bottom: 0;
|
|
925
|
+
right: -3px;
|
|
926
|
+
width: 6px;
|
|
927
|
+
cursor: ew-resize;
|
|
928
|
+
background: transparent;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.rte-resize-handle--right::after {
|
|
932
|
+
content: "";
|
|
933
|
+
position: absolute;
|
|
934
|
+
inset: 4px 1px;
|
|
935
|
+
width: 2px;
|
|
936
|
+
background: var(--primary);
|
|
937
|
+
border-radius: 1px;
|
|
938
|
+
transition:
|
|
939
|
+
width 150ms ease-out,
|
|
940
|
+
inset 150ms ease-out;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.rte-resize-handle--right:hover::after {
|
|
944
|
+
width: 4px;
|
|
945
|
+
inset: 4px 0;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.rte-resize-handle--bottom {
|
|
949
|
+
left: 0;
|
|
950
|
+
right: 0;
|
|
951
|
+
bottom: -3px;
|
|
952
|
+
height: 6px;
|
|
953
|
+
cursor: ns-resize;
|
|
954
|
+
background: transparent;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.rte-resize-handle--bottom::after {
|
|
958
|
+
content: "";
|
|
959
|
+
position: absolute;
|
|
960
|
+
left: 4px;
|
|
961
|
+
right: 4px;
|
|
962
|
+
height: 2px;
|
|
963
|
+
background: var(--primary);
|
|
964
|
+
border-radius: 1px;
|
|
965
|
+
bottom: 1px;
|
|
966
|
+
transition:
|
|
967
|
+
height 150ms ease-out,
|
|
968
|
+
bottom 150ms ease-out;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.rte-resize-handle--bottom:hover::after {
|
|
972
|
+
height: 4px;
|
|
973
|
+
bottom: 0;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.rte-resize-handle--corner {
|
|
977
|
+
width: 12px;
|
|
978
|
+
height: 12px;
|
|
979
|
+
background: var(--primary);
|
|
980
|
+
border: 2px solid var(--background);
|
|
981
|
+
border-radius: 2px;
|
|
982
|
+
transition: transform 150ms ease-out;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.rte-resize-handle--corner-br {
|
|
986
|
+
bottom: -5px;
|
|
987
|
+
right: -5px;
|
|
988
|
+
cursor: nwse-resize;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.rte-resize-handle--corner-bl {
|
|
992
|
+
bottom: -5px;
|
|
993
|
+
left: -5px;
|
|
994
|
+
cursor: nesw-resize;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.rte-resize-handle--corner:hover {
|
|
998
|
+
transform: scale(1.15);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/* ── Bubble Menu ── */
|
|
1002
|
+
@keyframes rte-bubble-pop-in {
|
|
1003
|
+
0% {
|
|
1004
|
+
opacity: 0;
|
|
1005
|
+
transform: scale(0.98) translateY(6px);
|
|
1006
|
+
}
|
|
1007
|
+
100% {
|
|
1008
|
+
opacity: 1;
|
|
1009
|
+
transform: scale(1) translateY(0);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.rte-bubble-menu {
|
|
1014
|
+
display: flex;
|
|
1015
|
+
align-items: center;
|
|
1016
|
+
height: 2.25rem;
|
|
1017
|
+
background: var(--popover);
|
|
1018
|
+
border: 1px solid var(--border);
|
|
1019
|
+
border-radius: var(--radius);
|
|
1020
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
1021
|
+
padding: 0 0.25rem;
|
|
1022
|
+
animation: rte-bubble-pop-in 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.rte-bubble-group {
|
|
1026
|
+
display: flex;
|
|
1027
|
+
align-items: center;
|
|
1028
|
+
gap: 1px;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.rte-bubble-separator {
|
|
1032
|
+
width: 1px;
|
|
1033
|
+
height: 1.25rem;
|
|
1034
|
+
background: var(--border);
|
|
1035
|
+
margin: 0 0.125rem;
|
|
1036
|
+
flex-shrink: 0;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.rte-bubble-btn {
|
|
1040
|
+
display: flex;
|
|
1041
|
+
align-items: center;
|
|
1042
|
+
gap: 0.25rem;
|
|
1043
|
+
height: 1.75rem;
|
|
1044
|
+
padding: 0 0.375rem;
|
|
1045
|
+
border: none;
|
|
1046
|
+
border-radius: calc(var(--radius) - 4px);
|
|
1047
|
+
background: transparent;
|
|
1048
|
+
color: var(--popover-foreground);
|
|
1049
|
+
cursor: pointer;
|
|
1050
|
+
font-size: 0.8125rem;
|
|
1051
|
+
white-space: nowrap;
|
|
1052
|
+
transition:
|
|
1053
|
+
background-color 150ms ease-out,
|
|
1054
|
+
color 150ms ease-out,
|
|
1055
|
+
transform 100ms ease-out;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.rte-bubble-btn:hover {
|
|
1059
|
+
background: var(--accent);
|
|
1060
|
+
color: var(--accent-foreground);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.rte-bubble-btn:active {
|
|
1064
|
+
transform: scale(0.96);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.rte-bubble-btn--active {
|
|
1068
|
+
color: var(--primary);
|
|
1069
|
+
background: var(--accent);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.rte-bubble-btn-icon {
|
|
1073
|
+
display: flex;
|
|
1074
|
+
align-items: center;
|
|
1075
|
+
justify-content: center;
|
|
1076
|
+
flex-shrink: 0;
|
|
1077
|
+
width: 1rem;
|
|
1078
|
+
height: 1rem;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
.rte-bubble-btn-icon svg {
|
|
1082
|
+
width: 100%;
|
|
1083
|
+
height: 100%;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.rte-bubble-btn-text {
|
|
1087
|
+
max-width: 5rem;
|
|
1088
|
+
overflow: hidden;
|
|
1089
|
+
text-overflow: ellipsis;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.rte-bubble-overlay {
|
|
1093
|
+
position: fixed;
|
|
1094
|
+
inset: 0;
|
|
1095
|
+
z-index: 999;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
.rte-bubble-dropdown {
|
|
1099
|
+
position: absolute;
|
|
1100
|
+
top: 100%;
|
|
1101
|
+
left: 0;
|
|
1102
|
+
z-index: 1000;
|
|
1103
|
+
min-width: 150px;
|
|
1104
|
+
background: var(--popover);
|
|
1105
|
+
border: 1px solid var(--border);
|
|
1106
|
+
border-radius: var(--radius);
|
|
1107
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
|
1108
|
+
padding: 0.25rem;
|
|
1109
|
+
margin-top: 4px;
|
|
1110
|
+
transform-origin: top left;
|
|
1111
|
+
animation: rte-bubble-pop-in 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.rte-bubble-dropdown--language {
|
|
1115
|
+
min-width: 160px;
|
|
1116
|
+
max-height: 320px;
|
|
1117
|
+
overflow-y: auto;
|
|
1118
|
+
scrollbar-width: thin;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.rte-bubble-dropdown-item {
|
|
1122
|
+
display: flex;
|
|
1123
|
+
align-items: center;
|
|
1124
|
+
justify-content: flex-start;
|
|
1125
|
+
gap: 0.5rem;
|
|
1126
|
+
position: relative;
|
|
1127
|
+
z-index: 1;
|
|
1128
|
+
width: 100%;
|
|
1129
|
+
padding: 0.375rem 0.5rem;
|
|
1130
|
+
font-size: 0.8125rem;
|
|
1131
|
+
color: var(--muted-foreground);
|
|
1132
|
+
background: transparent;
|
|
1133
|
+
border: none;
|
|
1134
|
+
border-radius: calc(var(--radius) - 4px);
|
|
1135
|
+
cursor: pointer;
|
|
1136
|
+
text-align: left;
|
|
1137
|
+
transition:
|
|
1138
|
+
background-color 100ms ease-out,
|
|
1139
|
+
color 100ms ease-out;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
.rte-bubble-dropdown-item:hover,
|
|
1143
|
+
.rte-bubble-dropdown-item:focus-visible {
|
|
1144
|
+
color: var(--foreground);
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.rte-bubble-dropdown-pill {
|
|
1148
|
+
position: absolute;
|
|
1149
|
+
top: 0;
|
|
1150
|
+
left: 0;
|
|
1151
|
+
z-index: 0;
|
|
1152
|
+
pointer-events: none;
|
|
1153
|
+
border-radius: calc(var(--radius) - 4px);
|
|
1154
|
+
background: color-mix(in srgb, var(--primary) 6%, transparent);
|
|
1155
|
+
opacity: 0;
|
|
1156
|
+
transition:
|
|
1157
|
+
top 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
1158
|
+
left 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
1159
|
+
width 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
1160
|
+
height 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
1161
|
+
opacity 150ms ease-out;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
.rte-bubble-dropdown-pill--visible {
|
|
1165
|
+
opacity: 1;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.rte-bubble-dropdown-item--active {
|
|
1169
|
+
color: var(--primary);
|
|
1170
|
+
background-color: color-mix(in srgb, var(--primary) 10%, transparent);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.rte-bubble-dropdown-icon {
|
|
1174
|
+
display: flex;
|
|
1175
|
+
align-items: center;
|
|
1176
|
+
justify-content: center;
|
|
1177
|
+
flex-shrink: 0;
|
|
1178
|
+
color: var(--muted-foreground);
|
|
1179
|
+
width: 1rem;
|
|
1180
|
+
height: 1rem;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.rte-bubble-dropdown-icon svg {
|
|
1184
|
+
width: 100%;
|
|
1185
|
+
height: 100%;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
.rte-bubble-dropdown-item--active .rte-bubble-dropdown-icon {
|
|
1189
|
+
color: var(--primary);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.rte-bubble-dropdown-divider {
|
|
1193
|
+
height: 1px;
|
|
1194
|
+
background: var(--border);
|
|
1195
|
+
margin: 0.25rem 0;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.rte-bubble-dropdown--color {
|
|
1199
|
+
min-width: auto;
|
|
1200
|
+
padding: 0.5rem;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.rte-bubble-dropdown--color .rte-bubble-dropdown-divider {
|
|
1204
|
+
margin: 0.5rem 0 0.375rem;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.rte-bubble-color-section {
|
|
1208
|
+
display: flex;
|
|
1209
|
+
flex-direction: column;
|
|
1210
|
+
gap: 0.5rem;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.rte-bubble-color-label {
|
|
1214
|
+
padding: 0 0.125rem;
|
|
1215
|
+
color: var(--muted-foreground);
|
|
1216
|
+
font-size: 0.75rem;
|
|
1217
|
+
font-weight: 700;
|
|
1218
|
+
line-height: 1;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.rte-bubble-color-grid {
|
|
1222
|
+
display: grid;
|
|
1223
|
+
grid-template-columns: repeat(5, 1.5rem);
|
|
1224
|
+
justify-content: center;
|
|
1225
|
+
gap: 0.375rem;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
.rte-bubble-color-recent {
|
|
1229
|
+
display: flex;
|
|
1230
|
+
flex-wrap: wrap;
|
|
1231
|
+
justify-content: center;
|
|
1232
|
+
gap: 0.375rem;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.rte-bubble-color-swatch {
|
|
1236
|
+
display: inline-flex;
|
|
1237
|
+
align-items: center;
|
|
1238
|
+
justify-content: center;
|
|
1239
|
+
width: 1.5rem;
|
|
1240
|
+
height: 1.5rem;
|
|
1241
|
+
padding: 0;
|
|
1242
|
+
border-radius: 999px;
|
|
1243
|
+
border: 1px solid transparent;
|
|
1244
|
+
cursor: pointer;
|
|
1245
|
+
transition:
|
|
1246
|
+
transform 120ms cubic-bezier(0.34, 1.56, 0.64, 1),
|
|
1247
|
+
background-color 100ms ease-out,
|
|
1248
|
+
border-color 100ms ease-out,
|
|
1249
|
+
color 100ms ease-out,
|
|
1250
|
+
box-shadow 120ms ease-out;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
.rte-bubble-color-swatch:hover {
|
|
1254
|
+
transform: scale(1.1);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
.rte-bubble-color-swatch:active {
|
|
1258
|
+
transform: scale(0.96);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
.rte-bubble-color-swatch:focus-visible {
|
|
1262
|
+
outline: 2px solid var(--ring);
|
|
1263
|
+
outline-offset: 1px;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
.rte-bubble-color-swatch--text {
|
|
1267
|
+
background: transparent;
|
|
1268
|
+
border-color: var(--swatch-color);
|
|
1269
|
+
color: var(--swatch-color);
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
.rte-bubble-color-swatch--text.rte-bubble-color-swatch--active {
|
|
1273
|
+
background: var(--swatch-color);
|
|
1274
|
+
border-color: var(--swatch-color);
|
|
1275
|
+
color: var(--swatch-check);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.rte-bubble-color-swatch--highlight {
|
|
1279
|
+
background: var(--swatch-color);
|
|
1280
|
+
border-color: transparent;
|
|
1281
|
+
color: var(--swatch-check);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.rte-bubble-color-swatch--highlight.rte-bubble-color-swatch--active {
|
|
1285
|
+
box-shadow: 0 0 0 2px
|
|
1286
|
+
color-mix(in srgb, var(--swatch-color) 55%, var(--popover-foreground));
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.rte-bubble-color-glyph {
|
|
1290
|
+
font-size: 0.625rem;
|
|
1291
|
+
font-weight: 700;
|
|
1292
|
+
line-height: 1;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
.rte-bubble-color-check {
|
|
1296
|
+
display: flex;
|
|
1297
|
+
align-items: center;
|
|
1298
|
+
justify-content: center;
|
|
1299
|
+
width: 0.75rem;
|
|
1300
|
+
height: 0.75rem;
|
|
1301
|
+
color: var(--swatch-check);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.rte-bubble-color-check svg {
|
|
1305
|
+
width: 100%;
|
|
1306
|
+
height: 100%;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/* ── Suppress transitions on theme switch ── */
|
|
1310
|
+
.rte-theme-transitioning *,
|
|
1311
|
+
.rte-theme-transitioning *::before,
|
|
1312
|
+
.rte-theme-transitioning *::after {
|
|
1313
|
+
transition: none !important;
|
|
1314
|
+
}
|