@editorcn/editor 0.4.1 → 0.5.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 CHANGED
@@ -1,163 +1,116 @@
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
- }
1
+ @layer theme, base, components, utilities;
55
2
 
56
- .rte-content .ProseMirror p {
3
+ .editorcn-content[data-preset="document"] p {
57
4
  margin-top: 0;
58
5
  margin-bottom: 0.75rem;
59
6
  line-height: 1.75;
60
7
  }
61
8
 
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 {
9
+ .editorcn-content[data-preset="document"] h1,
10
+ .editorcn-content[data-preset="document"] h2,
11
+ .editorcn-content[data-preset="document"] h3,
12
+ .editorcn-content[data-preset="document"] h4,
13
+ .editorcn-content[data-preset="document"] h5,
14
+ .editorcn-content[data-preset="document"] h6,
15
+ .editorcn-content[data-preset="document"] p {
69
16
  margin-top: 0;
70
17
  }
71
18
 
72
- .rte-content .ProseMirror h1 {
19
+ .editorcn-content[data-preset="document"] h1 {
73
20
  font-size: 1.5rem;
74
- font-weight: 700;
21
+ font-weight: 600;
75
22
  letter-spacing: -0.025em;
76
23
  margin-bottom: 1rem;
77
24
  margin-top: 1.5rem;
78
25
  }
79
- .rte-content .ProseMirror h1:first-child {
26
+
27
+ .editorcn-content[data-preset="document"] h1:first-child {
80
28
  margin-top: 0;
81
29
  }
82
30
 
83
- .rte-content .ProseMirror h2 {
31
+ .editorcn-content[data-preset="document"] h2 {
84
32
  font-size: 1.25rem;
85
33
  font-weight: 600;
86
34
  letter-spacing: -0.025em;
87
35
  margin-bottom: 0.75rem;
88
36
  margin-top: 1.25rem;
89
37
  }
90
- .rte-content .ProseMirror h2:first-child {
38
+
39
+ .editorcn-content[data-preset="document"] h2:first-child {
91
40
  margin-top: 0;
92
41
  }
93
42
 
94
- .rte-content .ProseMirror h3 {
43
+ .editorcn-content[data-preset="document"] h3 {
95
44
  font-size: 1.125rem;
96
45
  font-weight: 600;
97
46
  margin-bottom: 0.5rem;
98
47
  margin-top: 1rem;
99
48
  }
100
- .rte-content .ProseMirror h3:first-child {
49
+
50
+ .editorcn-content[data-preset="document"] h3:first-child {
101
51
  margin-top: 0;
102
52
  }
103
53
 
104
- .rte-content .ProseMirror h4 {
54
+ .editorcn-content[data-preset="document"] h4 {
105
55
  font-size: 1rem;
106
56
  font-weight: 600;
107
57
  margin-bottom: 0.5rem;
108
58
  margin-top: 0.75rem;
109
59
  }
110
- .rte-content .ProseMirror h4:first-child {
60
+
61
+ .editorcn-content[data-preset="document"] h4:first-child {
111
62
  margin-top: 0;
112
63
  }
113
64
 
114
- .rte-content .ProseMirror h5 {
65
+ .editorcn-content[data-preset="document"] h5 {
115
66
  font-size: 0.875rem;
116
67
  font-weight: 600;
117
68
  margin-bottom: 0.5rem;
118
69
  margin-top: 0.75rem;
119
70
  }
120
- .rte-content .ProseMirror h5:first-child {
71
+
72
+ .editorcn-content[data-preset="document"] h5:first-child {
121
73
  margin-top: 0;
122
74
  }
123
75
 
124
- .rte-content .ProseMirror h6 {
76
+ .editorcn-content[data-preset="document"] h6 {
125
77
  font-size: 0.875rem;
126
78
  font-weight: 500;
127
79
  margin-bottom: 0.5rem;
128
80
  margin-top: 0.75rem;
129
81
  }
130
- .rte-content .ProseMirror h6:first-child {
82
+
83
+ .editorcn-content[data-preset="document"] h6:first-child {
131
84
  margin-top: 0;
132
85
  }
133
86
 
134
- .rte-content .ProseMirror ul {
87
+ .editorcn-content[data-preset="document"] ul {
135
88
  list-style-type: disc;
136
89
  padding-left: 1.5rem;
137
90
  margin-bottom: 0.75rem;
138
91
  }
139
92
 
140
- .rte-content .ProseMirror ol {
93
+ .editorcn-content[data-preset="document"] ol {
141
94
  list-style-type: decimal;
142
95
  padding-left: 1.5rem;
143
96
  margin-bottom: 0.75rem;
144
97
  }
145
98
 
146
- .rte-content .ProseMirror li {
99
+ .editorcn-content[data-preset="document"] li {
147
100
  line-height: 1.75;
148
101
  }
149
102
 
150
- .rte-content .ProseMirror li > p {
103
+ .editorcn-content[data-preset="document"] li > p {
151
104
  margin-bottom: 0;
152
105
  }
153
106
 
154
- .rte-content .ProseMirror ul li,
155
- .rte-content .ProseMirror ol li {
107
+ .editorcn-content[data-preset="document"] ul li,
108
+ .editorcn-content[data-preset="document"] ol li {
156
109
  margin-top: 2px;
157
110
  }
158
111
 
159
- .rte-content .ProseMirror blockquote {
160
- border-left: 3px solid var(--border);
112
+ .editorcn-content[data-preset="document"] blockquote {
113
+ border-left: 2px solid var(--border);
161
114
  padding-left: 1rem;
162
115
  margin-top: 1rem;
163
116
  margin-bottom: 1rem;
@@ -165,11 +118,11 @@ button.rte-control-button:active {
165
118
  font-style: italic;
166
119
  }
167
120
 
168
- .rte-content .ProseMirror :where(pre) {
169
- background: #1e1e2e;
170
- color: #cdd6f4;
121
+ .editorcn-content[data-preset="document"] :where(pre) {
122
+ background: color-mix(in srgb, var(--muted) 50%, var(--background));
123
+ color: var(--foreground);
171
124
  border-radius: var(--radius);
172
- border: 1px solid var(--border);
125
+ border: 1px solid var(--rte-hairline, var(--border));
173
126
  padding: 1rem;
174
127
  margin-top: 1rem;
175
128
  margin-bottom: 1rem;
@@ -178,23 +131,14 @@ button.rte-control-button:active {
178
131
  font-size: 0.875rem;
179
132
  }
180
133
 
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 {
134
+ .editorcn-content[data-preset="document"] hr {
191
135
  border: none;
192
136
  border-top: 1px solid var(--border);
193
137
  margin-top: 1.5rem;
194
138
  margin-bottom: 1.5rem;
195
139
  }
196
140
 
197
- .rte-content .ProseMirror a {
141
+ .editorcn-content[data-preset="document"] a {
198
142
  color: var(--primary);
199
143
  text-decoration: underline;
200
144
  text-underline-offset: 4px;
@@ -205,12 +149,12 @@ button.rte-control-button:active {
205
149
  text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
206
150
  }
207
151
 
208
- .rte-content .ProseMirror a:hover {
152
+ .editorcn-content[data-preset="document"] a:hover {
209
153
  color: color-mix(in srgb, var(--primary) 80%, transparent);
210
154
  text-decoration-color: color-mix(in srgb, var(--primary) 80%, transparent);
211
155
  }
212
156
 
213
- .rte-content .ProseMirror code {
157
+ .editorcn-content[data-preset="document"] code {
214
158
  font-size: 0.875em;
215
159
  font-weight: 500;
216
160
  background: color-mix(in srgb, var(--muted) 70%, transparent);
@@ -219,389 +163,22 @@ button.rte-control-button:active {
219
163
  transition: background-color 150ms ease-out;
220
164
  }
221
165
 
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 {
166
+ .editorcn-content[data-preset="document"] :where(pre) code {
167
+ background: none;
168
+ color: inherit;
541
169
  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;
170
+ font-size: 0.875rem;
171
+ font-weight: 400;
172
+ padding: 0;
595
173
  }
596
174
 
597
- /* ── Task Lists ── */
598
- .rte-task-list {
175
+ :where(.editorcn-content[data-preset="document"]) .rte-task-list {
599
176
  list-style-type: none;
600
177
  padding: 0;
601
178
  padding-inline-start: 0;
602
179
  }
603
180
 
604
- .rte-task-list li {
181
+ :where(.editorcn-content[data-preset="document"]) .rte-task-list li {
605
182
  margin: 0;
606
183
  padding: 0;
607
184
  display: flex;
@@ -610,38 +187,42 @@ button.rte-control-button:active {
610
187
  transition: opacity 150ms ease-out;
611
188
  }
612
189
 
613
- .rte-task-list li[data-checked="true"] {
190
+ :where(.editorcn-content[data-preset="document"])
191
+ .rte-task-list
192
+ li[data-checked="true"] {
614
193
  opacity: 0.6;
615
194
  }
616
195
 
617
- .rte-task-list li > div {
196
+ :where(.editorcn-content[data-preset="document"]) .rte-task-list li > div {
618
197
  flex: 1;
619
198
  min-width: 0;
620
199
  }
621
200
 
622
- .rte-task-list ul {
201
+ :where(.editorcn-content[data-preset="document"]) .rte-task-list ul {
623
202
  margin-top: 5px;
624
203
  }
625
204
 
626
- .rte-task-list p {
205
+ :where(.editorcn-content[data-preset="document"]) .rte-task-list p {
627
206
  margin: 0;
628
207
  padding: 0;
629
208
  }
630
209
 
631
- .rte-task-list label {
210
+ :where(.editorcn-content[data-preset="document"]) .rte-task-list label {
632
211
  display: inline-flex;
633
212
  align-items: center;
634
213
  height: 1.75em;
635
214
  cursor: pointer;
636
215
  }
637
216
 
638
- .rte-task-list input[type="checkbox"] {
217
+ :where(.editorcn-content[data-preset="document"])
218
+ .rte-task-list
219
+ input[type="checkbox"] {
639
220
  cursor: pointer;
640
221
  appearance: none;
641
- width: 18px;
642
- height: 18px;
643
- border: 1px solid var(--border);
644
- border-radius: calc(var(--radius) - 2px);
222
+ width: 16px;
223
+ height: 16px;
224
+ border: 1px solid var(--input, var(--border));
225
+ border-radius: calc(var(--radius) - 6px);
645
226
  background-color: var(--background);
646
227
  vertical-align: middle;
647
228
  position: relative;
@@ -652,38 +233,81 @@ button.rte-control-button:active {
652
233
  transform 100ms ease-out;
653
234
  }
654
235
 
655
- .rte-task-list input[type="checkbox"]:active {
236
+ :where(.editorcn-content[data-preset="document"])
237
+ .rte-task-list
238
+ input[type="checkbox"]:active {
656
239
  transform: scale(0.96);
657
240
  }
658
241
 
659
- .rte-task-list input[type="checkbox"]:checked {
242
+ :where(.editorcn-content[data-preset="document"])
243
+ .rte-task-list
244
+ input[type="checkbox"]:checked {
660
245
  background-color: var(--primary);
661
246
  border-color: var(--primary);
662
247
  }
663
248
 
249
+ :where(.editorcn-content[data-preset="document"])
250
+ .rte-task-list
251
+ input[type="checkbox"]:checked::before {
252
+ position: absolute;
253
+ content: "";
254
+ inset: 0;
255
+ background-color: var(--primary-foreground);
256
+ mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAxMCA3Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNCA0LjU4NkwxLjcwNyAyLjI5M0ExIDEgMCAxMC4yOTMgMy43MDdsMyAzYS45OTcuOTk3IDAgMDAxLjQxNCAwbDUtNUExIDEgMCAxMDguMjkzLjI5M0w0IDQuNTg2eiIvPjwvc3ZnPg==");
257
+ mask-repeat: no-repeat;
258
+ mask-size: 9px;
259
+ mask-position: center;
260
+ animation: checkmark-in 150ms ease-out forwards;
261
+ }
262
+
263
+ /* ── Editor Content ── */
264
+
265
+ .rte-content .ProseMirror {
266
+ outline: 0;
267
+ padding: var(--spacing, 0.75rem);
268
+ min-height: 140px;
269
+ }
270
+
271
+ .rte-root[data-variant="default"] .rte-content .ProseMirror {
272
+ padding: 1rem 1.25rem;
273
+ }
274
+
275
+ .rte-root[data-variant="subtle"] .rte-content .ProseMirror {
276
+ padding: 0.875rem;
277
+ }
278
+
279
+ .rte-root[data-variant="compact"] .rte-content .ProseMirror {
280
+ padding: 0.5rem 0.625rem;
281
+ min-height: 100px;
282
+ }
283
+
284
+ .rte-content .ProseMirror > *:last-child {
285
+ margin-bottom: 0;
286
+ }
287
+
288
+ .rte-content .ProseMirror p.is-editor-empty:first-of-type::before {
289
+ content: attr(data-placeholder);
290
+ pointer-events: none;
291
+ user-select: none;
292
+ float: left;
293
+ height: 0;
294
+ color: var(--muted-foreground);
295
+ transition: opacity 150ms ease-out;
296
+ }
297
+
664
298
  @keyframes checkmark-in {
665
299
  0% {
666
- transform: scale(0.5) rotate(-15deg);
300
+ transform: scale(0.8);
667
301
  opacity: 0;
668
302
  }
669
303
  100% {
670
- transform: scale(1) rotate(0);
304
+ transform: scale(1);
671
305
  opacity: 1;
672
306
  }
673
307
  }
674
308
 
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
309
  /* ── Embed nodes ── */
310
+
687
311
  .rte-embed-wrapper {
688
312
  display: flex;
689
313
  width: 100%;
@@ -698,20 +322,21 @@ button.rte-control-button:active {
698
322
  justify-content: flex-start;
699
323
  text-align: left;
700
324
  }
325
+
701
326
  .rte-embed-wrapper[data-align="center"] {
702
327
  justify-content: center;
703
328
  text-align: center;
704
329
  }
330
+
705
331
  .rte-embed-wrapper[data-align="right"] {
706
332
  justify-content: flex-end;
707
333
  text-align: right;
708
334
  }
709
335
 
710
336
  .rte-embed-wrapper[data-selected] .rte-embed {
711
- outline: 2px solid var(--primary);
337
+ outline: 2px solid var(--ring);
712
338
  outline-offset: 2px;
713
339
  border-radius: var(--radius);
714
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
715
340
  }
716
341
 
717
342
  .rte-embed {
@@ -720,9 +345,7 @@ button.rte-control-button:active {
720
345
  border-radius: var(--radius);
721
346
  background: var(--muted);
722
347
  display: inline-block;
723
- transition:
724
- outline-color 150ms ease-out,
725
- box-shadow 150ms ease-out;
348
+ transition: outline-color 150ms ease-out;
726
349
  }
727
350
 
728
351
  .rte-embed-iframe {
@@ -738,577 +361,22 @@ button.rte-control-button:active {
738
361
  padding: 2rem;
739
362
  text-align: center;
740
363
  color: var(--muted-foreground);
741
- animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
742
364
  }
743
365
 
744
- @keyframes pulse {
745
- 0%,
746
- 100% {
747
- opacity: 1;
748
- }
749
- 50% {
750
- opacity: 0.5;
751
- }
752
- }
366
+ /* ── Suppress transitions on theme switch ── */
753
367
 
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
368
  .rte-theme-transitioning *,
1311
369
  .rte-theme-transitioning *::before,
1312
370
  .rte-theme-transitioning *::after {
1313
371
  transition: none !important;
1314
372
  }
373
+
374
+ @media (prefers-reduced-motion: reduce) {
375
+ .rte-root *,
376
+ .rte-bubble-menu,
377
+ .rte-bubble-dropdown,
378
+ .rte-embed-selector {
379
+ animation-duration: 1ms !important;
380
+ transition-duration: 1ms !important;
381
+ }
382
+ }