@crystallize/design-system 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1490 @@
1
+ /* src/rich-text-editor/rich-text-editor.css */
2
+ .c-rte-icon-plus {
3
+ background-image: url(./plus-CQISIKEC.svg);
4
+ }
5
+ .c-rte-icon-h1 {
6
+ background-image: url(./type-h1-6KJP7YOM.svg);
7
+ }
8
+ .c-rte-icon-h2 {
9
+ background-image: url(./type-h2-VHI2USC3.svg);
10
+ }
11
+ .c-rte-icon-h3 {
12
+ background-image: url(./type-h3-JIU77CHO.svg);
13
+ }
14
+ .c-rte-icon-h4 {
15
+ background-image: url(./type-h4-P5EHKDAL.svg);
16
+ }
17
+ .c-rte-icon-h5 {
18
+ background-image: url(./type-h5-CS2KYVRG.svg);
19
+ }
20
+ .c-rte-icon-h6 {
21
+ background-image: url(./type-h6-J2O74LJZ.svg);
22
+ }
23
+ .c-rte-icon-paragraph {
24
+ background-image: url(./text-paragraph-MFTUIIQG.svg);
25
+ }
26
+ .c-rte-icon-bullet-list,
27
+ .c-rte-icon-bullet {
28
+ background-image: url(./list-ul-DVKNUP47.svg);
29
+ }
30
+ .c-rte-icon-check-list,
31
+ .c-rte-icon-check {
32
+ background-image: url(./square-check-UTG6FU6D.svg);
33
+ }
34
+ .c-rte-icon-numbered-list,
35
+ .c-rte-icon-number {
36
+ background-image: url(./list-ol-2ZEUN4Z7.svg);
37
+ }
38
+ .c-rte-icon-quote {
39
+ background-image: url(./chat-square-quote-CI6PUJHH.svg);
40
+ }
41
+ .c-rte-icon-code {
42
+ background-image: url(./code-SEVR6TIQ.svg);
43
+ }
44
+ .c-rte-icon-palette {
45
+ background-image: url(./palette-SWGFPRWZ.svg);
46
+ }
47
+ .c-rte-icon-bucket {
48
+ background-image: url(./paint-bucket-VCISMZTH.svg);
49
+ }
50
+ .c-rte-icon-bold {
51
+ background-image: url(./type-bold-PY7COC3N.svg);
52
+ }
53
+ .c-rte-icon-italic {
54
+ background-image: url(./type-italic-3DSFOSG2.svg);
55
+ }
56
+ .c-rte-icon-clear {
57
+ background-image: url(./trash-UOM6D7TD.svg);
58
+ }
59
+ .c-rte-icon-code {
60
+ background-image: url(./code-SEVR6TIQ.svg);
61
+ }
62
+ .c-rte-icon-underline {
63
+ background-image: url(./type-underline-CBFA5VLF.svg);
64
+ }
65
+ .c-rte-icon-strikethrough {
66
+ background-image: url(./type-strikethrough-E2KKQFSX.svg);
67
+ }
68
+ .c-rte-icon-subscript {
69
+ background-image: url(./type-subscript-BMPTRIBU.svg);
70
+ }
71
+ .c-rte-icon-superscript {
72
+ background-image: url(./type-superscript-EDF6EPAA.svg);
73
+ }
74
+ .c-rte-icon-link {
75
+ background-image: url(./link-W52N4JKZ.svg);
76
+ }
77
+ .c-rte-icon-horizontal-rule {
78
+ background-image: url(./horizontal-rule-N6RD2V7H.svg);
79
+ }
80
+ .c-rte-icon-caret-right {
81
+ background-image: url(./caret-right-fill-FFBNEXVX.svg);
82
+ }
83
+ .c-rte-icon-dropdown-more {
84
+ background-image: url(./dropdown-more-BHZ5COKX.svg);
85
+ }
86
+ .c-rte-icon-font-color {
87
+ background-image: url(./font-color-J4GA3ZJO.svg);
88
+ }
89
+ .c-rte-icon-font-family {
90
+ background-image: url(./font-family-ZU5N6TTE.svg);
91
+ }
92
+ .c-rte-icon-bg-color {
93
+ background-image: url(./bg-color-HB2WDYGO.svg);
94
+ }
95
+ .c-rte-icon-image {
96
+ background-image: url(./file-image-TIQPFJX4.svg);
97
+ }
98
+ .c-rte-icon-table {
99
+ background-image: url(./table-BR6DI4ZQ.svg);
100
+ }
101
+ .c-rte-icon-close {
102
+ background-image: url(./close-FH57ZMJF.svg);
103
+ }
104
+ .c-rte-icon-left-align,
105
+ .c-rte-icon-left-align {
106
+ background-image: url(./text-left-KT2B6TR3.svg);
107
+ }
108
+ .c-rte-icon-center-align {
109
+ background-image: url(./text-center-UQI6PAEF.svg);
110
+ }
111
+ .c-rte-icon-right-align {
112
+ background-image: url(./text-right-SKELPISG.svg);
113
+ }
114
+ .c-rte-icon-justify-align {
115
+ background-image: url(./justify-J7X5JEEX.svg);
116
+ }
117
+ .c-rte-icon-indent {
118
+ background-image: url(./indent-MJ6JIMCK.svg);
119
+ }
120
+ .c-rte-icon-outdent {
121
+ background-image: url(./outdent-2LUMUMIP.svg);
122
+ }
123
+ .c-rte-icon-undo {
124
+ background-image: url(./arrow-counterclockwise-2O5EYVJT.svg);
125
+ }
126
+ .c-rte-icon-redo {
127
+ background-image: url(./arrow-clockwise-Z2G6UEGP.svg);
128
+ }
129
+ .c-rte-icon-mic {
130
+ background-image: url(./mic-H5FNOMM7.svg);
131
+ }
132
+ .c-rte-icon-import {
133
+ background-image: url(./upload-Q6KICGZW.svg);
134
+ }
135
+ .c-rte-icon-export {
136
+ background-image: url(./download-JXUGIUCX.svg);
137
+ }
138
+ .c-rte-icon-diagram-2 {
139
+ background-image: url(./diagram-2-CEJUD2B4.svg);
140
+ }
141
+ .c-rte-icon-user {
142
+ background-image: url(./user-EOI2NEFZ.svg);
143
+ }
144
+ .c-rte-icon-equation {
145
+ background-image: url(./plus-slash-minus-N22JU4TI.svg);
146
+ }
147
+ .c-rte-icon-gif {
148
+ background-image: url(./filetype-gif-OG2BEYYK.svg);
149
+ }
150
+ .c-rte-icon-copy {
151
+ background-image: url(./copy-DMGDODUL.svg);
152
+ }
153
+ .c-rte-icon-success {
154
+ background-image: url(./success-YVXUMPEZ.svg);
155
+ }
156
+ .c-rte-icon-prettier {
157
+ background-image: url(./prettier-WUJ7B5NV.svg);
158
+ }
159
+ .c-rte-icon-prettier-error {
160
+ background-image: url(./prettier-error-DYJSLYDP.svg);
161
+ }
162
+ .c-rte-code-action-menu-container {
163
+ height: 37px;
164
+ position: absolute;
165
+ display: flex;
166
+ align-items: center;
167
+ flex-direction: row;
168
+ user-select: none;
169
+ border-radius: 0.375rem;
170
+ background-color: rgb(var(--c-color-gray-100-800) / 0.75);
171
+ padding-left: 0.75rem;
172
+ padding-right: 0.75rem;
173
+ font-size: 0.75rem;
174
+ line-height: 1rem;
175
+ --tw-text-opacity: 1;
176
+ color: rgb(var(--c-color-gray-700-200) / var(--tw-text-opacity, 1));
177
+ }
178
+ .c-rte-code-highlight-language {
179
+ margin-right: 4px;
180
+ }
181
+ .c-rte-code-button {
182
+ border-radius: 0.125rem;
183
+ padding: 0.25rem;
184
+ border: 1px solid transparent;
185
+ background: none;
186
+ cursor: pointer;
187
+ flex-shrink: 0;
188
+ display: flex;
189
+ align-items: center;
190
+ text-transform: uppercase;
191
+ }
192
+ .c-rte-code-button:hover {
193
+ border-color: rgb(var(--c-color-gray-900-50) / 0.3);
194
+ opacity: 0.9;
195
+ }
196
+ .c-rte-code-button:active {
197
+ border-color: rgb(var(--c-color-gray-900-50) / 0.5);
198
+ --tw-bg-opacity: 1;
199
+ background-color: rgb(var(--c-color-gray-50-900) / var(--tw-bg-opacity, 1));
200
+ }
201
+ .c-rte-code-button__icon {
202
+ height: 16px;
203
+ width: 16px;
204
+ opacity: 0.6;
205
+ display: flex;
206
+ background-size: contain;
207
+ color: rgb(var(--c-color-gray));
208
+ }
209
+ .c-rte-prettier-wrapper {
210
+ position: relative;
211
+ }
212
+ .c-rte-code-error-tips {
213
+ position: absolute;
214
+ right: 0px;
215
+ top: 26px;
216
+ margin-top: 0.5rem;
217
+ border-radius: 0.25rem;
218
+ --tw-bg-opacity: 1;
219
+ background-color: rgb(var(--c-color-gray-200-700) / var(--tw-bg-opacity, 1));
220
+ padding: 0.75rem;
221
+ --tw-text-opacity: 1;
222
+ color: rgb(var(--c-color-gray-900-50) / var(--tw-text-opacity, 1));
223
+ }
224
+ .c-rte-draggable-block-menu {
225
+ border-radius: 4px;
226
+ padding: 2px 1px;
227
+ cursor: grab;
228
+ opacity: 0;
229
+ position: absolute;
230
+ left: 0;
231
+ top: 0;
232
+ will-change: transform;
233
+ }
234
+ .c-rte-draggable-block-menu:active {
235
+ cursor: grabbing;
236
+ }
237
+ .c-rte-draggable-block-menu:hover {
238
+ background-color: #efefef;
239
+ }
240
+ .c-rte-draggable-block-menu__icon {
241
+ width: 16px;
242
+ height: 16px;
243
+ opacity: 0.3;
244
+ background-image: url(./draggable-block-menu-KKHDNKJA.svg);
245
+ }
246
+ .c-rte-draggable-block-target-line {
247
+ pointer-events: none;
248
+ background: deepskyblue;
249
+ height: 4px;
250
+ position: absolute;
251
+ left: 0;
252
+ top: 0;
253
+ opacity: 0;
254
+ will-change: transform;
255
+ }
256
+ .c-rte-table-cell-action-button-container {
257
+ position: absolute;
258
+ top: 0;
259
+ left: 0;
260
+ will-change: transform;
261
+ }
262
+ .c-rte-toolbar {
263
+ display: flex;
264
+ height: 3rem;
265
+ width: 100%;
266
+ justify-content: space-between;
267
+ overflow: auto;
268
+ border-top-left-radius: 0.375rem;
269
+ border-top-right-radius: 0.375rem;
270
+ padding-left: 1rem;
271
+ padding-right: 0.5rem;
272
+ vertical-align: middle;
273
+ padding-top: var(--c-rte-toolbar-pt, 0.25rem);
274
+ padding-left: var(--c-rte-toolbar-pl, 0.5rem);
275
+ padding-right: var(--c-rte-toolbar-pr, 0.5rem);
276
+ container-type: inline-size;
277
+ container-name: rich-text-toolbar;
278
+ }
279
+ .c-rte-toolbar__inner {
280
+ display: flex;
281
+ }
282
+ .c-rte-toolbar__icon {
283
+ height: 1.5rem;
284
+ width: 1rem;
285
+ border-width: 1px;
286
+ background-size: 17px 17px;
287
+ background-position: center;
288
+ background-repeat: no-repeat;
289
+ }
290
+ .c-rte-toolbar__icon.disabled {
291
+ opacity: 0.3;
292
+ }
293
+ .c-rte-toolbar__block-format__icon {
294
+ height: 1.5rem;
295
+ width: 1.5rem;
296
+ border-radius: 0.375rem;
297
+ border-width: 1px;
298
+ background-size: 18px 18px;
299
+ background-position: center;
300
+ background-repeat: no-repeat;
301
+ opacity: 0.6;
302
+ }
303
+ .c-rte-toolbar__block-format__icon.selected {
304
+ --tw-bg-opacity: 1;
305
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
306
+ opacity: 1;
307
+ }
308
+ .c-rte-toolbar__block-format__text {
309
+ min-width: 150px;
310
+ padding-left: 0.75rem;
311
+ padding-right: 0.75rem;
312
+ font-size: 0.875rem;
313
+ line-height: 1.25rem;
314
+ font-weight: 400;
315
+ }
316
+ .c-rte-toolbar__block-format__text.selected {
317
+ font-weight: 700;
318
+ }
319
+ .c-rte-toolbar__block-format__icon {
320
+ height: 1.5rem;
321
+ width: 1.5rem;
322
+ border-radius: 0.375rem;
323
+ border-width: 1px;
324
+ background-size: 18px 18px;
325
+ background-position: center;
326
+ background-repeat: no-repeat;
327
+ }
328
+ .c-rte-toolbar__toggle-icon {
329
+ height: 1.5rem;
330
+ width: 1.5rem;
331
+ border-width: 1px;
332
+ background-size: 18px 18px;
333
+ background-position: center;
334
+ background-repeat: no-repeat;
335
+ }
336
+ .c-rte-toolbar__code-lang__button-text {
337
+ font-size: 0.875rem;
338
+ line-height: 1.25rem;
339
+ font-weight: 500;
340
+ }
341
+ .c-rte-toolbar__code-lang__sel-item {
342
+ display: block;
343
+ min-width: 200px;
344
+ padding-left: 0.75rem;
345
+ padding-right: 0.75rem;
346
+ font-size: 0.875rem;
347
+ line-height: 1.25rem;
348
+ font-weight: 400;
349
+ opacity: 0.8;
350
+ }
351
+ .c-rte-toolbar__code-lang__sel-item.selected {
352
+ font-weight: 700;
353
+ opacity: 1;
354
+ }
355
+ .c-rte-toolbar__divider {
356
+ width: 1px;
357
+ background-color: #eee;
358
+ margin: 0 4px;
359
+ }
360
+ .c-rte-toolbar__actions-rest {
361
+ display: flex;
362
+ gap: 0.25rem;
363
+ }
364
+ .c-rte-toolbar__icon-btn {
365
+ opacity: 0.6;
366
+ }
367
+ .c-rte-toolbar__icon-btn.selected {
368
+ --tw-bg-opacity: 1 !important;
369
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1)) !important;
370
+ opacity: 1;
371
+ }
372
+ .c-rte-toolbar__icon-btn__icon {
373
+ height: 100%;
374
+ width: 100%;
375
+ border-width: 1px;
376
+ background-size: 18px 18px;
377
+ background-position: center;
378
+ background-repeat: no-repeat;
379
+ }
380
+ .c-rte-toolbar__dd-item__icon {
381
+ height: 1.5rem;
382
+ width: 1.5rem;
383
+ border-radius: 0.125rem;
384
+ border-width: 1px;
385
+ background-size: 16px 16px;
386
+ background-position: center;
387
+ background-repeat: no-repeat;
388
+ opacity: 0.6;
389
+ }
390
+ .c-rte-toolbar__dd-item__icon.selected {
391
+ --tw-bg-opacity: 1 !important;
392
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1)) !important;
393
+ opacity: 1;
394
+ }
395
+ .c-rte-toolbar__dd-item__text {
396
+ padding-left: 0.75rem;
397
+ padding-right: 0.75rem;
398
+ font-family:
399
+ Roboto,
400
+ ui-sans-serif,
401
+ system-ui,
402
+ sans-serif,
403
+ "Apple Color Emoji",
404
+ "Segoe UI Emoji",
405
+ "Segoe UI Symbol",
406
+ "Noto Color Emoji";
407
+ font-size: 0.875rem;
408
+ line-height: 1.25rem;
409
+ font-weight: 400;
410
+ }
411
+ .c-rte-toolbar__dd-item__text.selected {
412
+ font-weight: 500;
413
+ }
414
+ .c-rte-toolbar__dd-item__text--clear {
415
+ margin-left: 0.75rem;
416
+ --tw-text-opacity: 1;
417
+ color: rgb(var(--c-color-pink-600-300) / var(--tw-text-opacity, 1));
418
+ }
419
+ .c-rte-toolbar__dd-item--table {
420
+ display: flex;
421
+ align-items: center;
422
+ font-family:
423
+ Roboto,
424
+ ui-sans-serif,
425
+ system-ui,
426
+ sans-serif,
427
+ "Apple Color Emoji",
428
+ "Segoe UI Emoji",
429
+ "Segoe UI Symbol",
430
+ "Noto Color Emoji";
431
+ font-weight: 400;
432
+ }
433
+ .c-rte-toolbar__plus {
434
+ height: 100%;
435
+ width: 100%;
436
+ border-width: 1px;
437
+ background-size: 20px 20px;
438
+ background-position: center;
439
+ background-repeat: no-repeat;
440
+ }
441
+ .c-rte-insert-table {
442
+ align-items: center;
443
+ justify-content: space-between;
444
+ }
445
+ .c-rte-insert-table__dimensions {
446
+ grid-template-columns: 1fr 1px 1fr;
447
+ border-radius: 0.375rem;
448
+ border-width: 1px;
449
+ border-style: solid;
450
+ --tw-border-opacity: 1;
451
+ border-color: rgb(var(--c-color-gray-100-800) / var(--tw-border-opacity, 1));
452
+ --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
453
+ --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
454
+ box-shadow:
455
+ var(--tw-ring-offset-shadow, 0 0 #0000),
456
+ var(--tw-ring-shadow, 0 0 #0000),
457
+ var(--tw-shadow);
458
+ display: grid;
459
+ }
460
+ .c-rte-insert-table__dimensions__separator {
461
+ height: 100%;
462
+ --tw-bg-opacity: 1;
463
+ background-color: rgb(var(--c-color-gray-100-800) / var(--tw-bg-opacity, 1));
464
+ }
465
+ .c-rte-insert-table__actions {
466
+ margin-top: 0.75rem;
467
+ display: flex;
468
+ justify-content: flex-end;
469
+ }
470
+ @container rich-text-toolbar (max-width: 600px) {
471
+ .c-rte-toolbar .c-rte-toolbar__icon-btn {
472
+ display: none;
473
+ }
474
+ }
475
+ .c-rich-text-editor {
476
+ margin: 0px auto;
477
+ position: relative;
478
+ line-height: 1.7;
479
+ }
480
+ .c-rich-text-editor > * {
481
+ box-sizing: border-box;
482
+ }
483
+ .c-rich-text-editor {
484
+ font-family:
485
+ Roboto,
486
+ ui-sans-serif,
487
+ system-ui,
488
+ sans-serif,
489
+ "Apple Color Emoji",
490
+ "Segoe UI Emoji",
491
+ "Segoe UI Symbol",
492
+ "Noto Color Emoji" !important;
493
+ font-weight: 400;
494
+ --tw-text-opacity: 1;
495
+ color: rgb(var(--c-color-gray-900-50) / var(--tw-text-opacity, 1));
496
+ }
497
+ .c-rich-text-editor .c-rte-editor-scroller {
498
+ min-height: var(--c-rte-min-height, 150px);
499
+ border: 0;
500
+ resize: none;
501
+ cursor: text;
502
+ display: block;
503
+ position: relative;
504
+ outline: 0;
505
+ resize: vertical;
506
+ }
507
+ .c-rich-text-editor .c-rte-editor-container {
508
+ position: relative;
509
+ margin-top: 0.5rem;
510
+ cursor: text;
511
+ border-bottom-left-radius: 0.375rem;
512
+ border-bottom-right-radius: 0.375rem;
513
+ }
514
+ .c-rich-text-editor .c-rte-editor {
515
+ position: relative;
516
+ }
517
+ .c-rich-text-editor .c-rte-table-action-dropdown {
518
+ display: absolute;
519
+ right: 2px;
520
+ top: 2px;
521
+ }
522
+ .c-rich-text-editor [contenteditable] pre {
523
+ line-height: 1.1;
524
+ color: #fff;
525
+ margin: 0;
526
+ padding: 10px;
527
+ overflow: auto;
528
+ max-height: 180px;
529
+ --tw-bg-opacity: 1;
530
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
531
+ font-size: 0.875rem;
532
+ line-height: 1.25rem;
533
+ }
534
+ .c-rich-text-editor [contenteditable] pre::-webkit-scrollbar {
535
+ background: transparent;
536
+ width: 10px;
537
+ }
538
+ .c-rich-text-editor [contenteditable] pre::-webkit-scrollbar-thumb {
539
+ background: #999;
540
+ }
541
+ .c-rich-text-editor [contenteditable] hr {
542
+ padding: 4px 0;
543
+ border: 1px solid red;
544
+ border: none;
545
+ margin: 1em 0;
546
+ cursor: pointer;
547
+ }
548
+ .c-rich-text-editor [contenteditable] hr:after {
549
+ content: "";
550
+ display: block;
551
+ height: 1px;
552
+ background-color: #ccc;
553
+ line-height: 1px;
554
+ --tw-bg-opacity: 1;
555
+ background-color: rgb(var(--c-color-purple-100-800) / var(--tw-bg-opacity, 1));
556
+ }
557
+ .c-rich-text-editor [contenteditable] hr.selected {
558
+ outline: 2px solid rgb(60, 132, 244);
559
+ user-select: none;
560
+ }
561
+ .c-rich-text-editor [role=separator] {
562
+ height: 1px;
563
+ --tw-bg-opacity: 1;
564
+ background-color: rgb(var(--c-color-gray-200-700) / var(--tw-bg-opacity, 1));
565
+ }
566
+ .c-rich-text-editor .ltr {
567
+ text-align: left;
568
+ }
569
+ .c-rich-text-editor .rtl {
570
+ text-align: right;
571
+ }
572
+ .c-rich-text-editor button.item i {
573
+ opacity: 0.6;
574
+ }
575
+ .c-rich-text-editor .TableNode__contentEditable {
576
+ min-height: 20px;
577
+ border: 0px;
578
+ resize: none;
579
+ min-height: 100%;
580
+ cursor: text;
581
+ display: block;
582
+ position: relative;
583
+ tab-size: 1;
584
+ outline: 0px;
585
+ padding: 0;
586
+ user-select: text;
587
+ font-size: 15px;
588
+ white-space: pre-wrap;
589
+ word-break: break-word;
590
+ z-index: 3;
591
+ }
592
+ .c-rich-text-editor .TableNode__contentEditable .CrystallizeRTEditorTheme__paragraph {
593
+ margin-top: 0.5rem;
594
+ margin-bottom: 0.5rem;
595
+ }
596
+ .c-rich-text-editor .CrystallizeRTEditorTheme__blockCursor {
597
+ display: block;
598
+ pointer-events: none;
599
+ position: absolute;
600
+ }
601
+ .c-rich-text-editor .CrystallizeRTEditorTheme__blockCursor:after {
602
+ content: "";
603
+ display: block;
604
+ position: absolute;
605
+ top: -2px;
606
+ width: 20px;
607
+ border-top: 1px solid black;
608
+ animation: CursorBlink 1.1s steps(2, start) infinite;
609
+ }
610
+ .c-rich-text-editor .c-rte-placeholder {
611
+ pointer-events: none;
612
+ position: absolute;
613
+ right: 2.5rem;
614
+ top: 0px;
615
+ display: inline-block;
616
+ user-select: none;
617
+ overflow: hidden;
618
+ text-overflow: ellipsis;
619
+ white-space: nowrap;
620
+ font-size: 14px;
621
+ font-weight: 400;
622
+ --tw-text-opacity: 1;
623
+ color: rgb(var(--c-color-gray-300-600) / var(--tw-text-opacity, 1));
624
+ font-style: italic;
625
+ left: var(--c-rte-content-pl, 1.5rem);
626
+ }
627
+ @keyframes CursorBlink {
628
+ to {
629
+ visibility: hidden;
630
+ }
631
+ }
632
+ .c-rte-contenteditable-root {
633
+ position: relative;
634
+ display: block;
635
+ border-width: 0px;
636
+ padding-left: 1.5rem;
637
+ padding-right: 1.5rem;
638
+ padding-top: 0.5rem;
639
+ padding-bottom: 0.5rem;
640
+ padding-top: 0px !important;
641
+ font-size: 0.875rem;
642
+ line-height: 1.25rem;
643
+ outline-width: 0px;
644
+ tab-size: 1;
645
+ padding-bottom: 8px;
646
+ min-height: calc(var(--c-rte-min-height, 150px) - 8px);
647
+ padding-top: var(--c-rte-content-pt, 0);
648
+ padding-left: var(--c-rte-content-pl, 1.5rem);
649
+ padding-right: var(--c-rte-content-pr, 1.5rem);
650
+ padding-bottom: var(--c-rte-content-pb, 8px);
651
+ }
652
+ .c-rte-contenteditable-root[contenteditable=false] {
653
+ background-color: transparent;
654
+ }
655
+
656
+ /* src/rich-text-editor/plugins/FloatingLinkEditorPlugin/index.css */
657
+ .c-rte-link-editor {
658
+ position: absolute;
659
+ top: 0;
660
+ left: 0;
661
+ z-index: 10;
662
+ max-width: 400px;
663
+ width: 100%;
664
+ opacity: 0;
665
+ background-color: #fff;
666
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
667
+ border-radius: 8px;
668
+ transition: opacity 0.5s;
669
+ will-change: transform;
670
+ border-radius: 0.5rem !important;
671
+ border-width: 1px;
672
+ border-style: solid;
673
+ --tw-border-opacity: 1;
674
+ border-color: rgb(var(--c-color-gray-100-800) / var(--tw-border-opacity, 1));
675
+ --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
676
+ --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;
677
+ box-shadow:
678
+ var(--tw-ring-offset-shadow, 0 0 #0000),
679
+ var(--tw-ring-shadow, 0 0 #0000),
680
+ var(--tw-shadow) !important;
681
+ }
682
+ .c-rte-link-editor-link-input {
683
+ margin-top: 0.5rem;
684
+ margin-bottom: 0.5rem;
685
+ display: flex;
686
+ max-width: 100%;
687
+ flex-wrap: nowrap;
688
+ align-items: center;
689
+ justify-content: space-between;
690
+ gap: 1rem;
691
+ border-color: rgb(var(--c-color-gray));
692
+ padding-left: 1.5rem;
693
+ padding-right: 1.5rem;
694
+ padding-top: 0.5rem;
695
+ padding-bottom: 0.5rem;
696
+ font-size: 0.875rem;
697
+ line-height: 1.25rem;
698
+ --tw-text-opacity: 1;
699
+ color: rgb(var(--c-color-s-blue-600-300) / var(--tw-text-opacity, 1));
700
+ }
701
+ .c-rte-link-editor-link-input a {
702
+ display: block;
703
+ overflow: hidden;
704
+ text-overflow: ellipsis;
705
+ white-space: nowrap;
706
+ --tw-text-opacity: 1;
707
+ color: rgb(var(--c-color-s-blue-600-300) / var(--tw-text-opacity, 1));
708
+ text-decoration-line: none;
709
+ }
710
+ .c-rte-link-editor-link-input a:hover {
711
+ text-decoration-line: underline;
712
+ }
713
+ .c-rte-link-editor-link-preview {
714
+ text-overflow: ellipsis;
715
+ white-space: nowrap;
716
+ overflow: hidden;
717
+ }
718
+ .c-rte-link-editor-input-group {
719
+ border-width: 0px;
720
+ border-bottom-width: 1px;
721
+ border-style: solid;
722
+ --tw-border-opacity: 1;
723
+ border-color: rgb(var(--c-color-gray-100-800) / var(--tw-border-opacity, 1));
724
+ padding-left: 0.75rem;
725
+ padding-right: 0.75rem;
726
+ }
727
+ .c-rte-link-editor-button-wrap {
728
+ display: flex;
729
+ justify-content: flex-end;
730
+ padding-left: 1.5rem;
731
+ padding-right: 1.5rem;
732
+ padding-top: 0.5rem;
733
+ padding-bottom: 0.5rem;
734
+ }
735
+ .c-rte-link-editor-preview-attrs {
736
+ margin-top: 0.25rem;
737
+ display: flex;
738
+ gap: 0.25rem;
739
+ }
740
+ .c-rte-link-editor-preview-attr {
741
+ border-radius: 0.375rem;
742
+ --tw-bg-opacity: 1;
743
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
744
+ padding-left: 0.25rem;
745
+ padding-right: 0.25rem;
746
+ padding-top: 0.125rem;
747
+ padding-bottom: 0.125rem;
748
+ font-size: 10px;
749
+ --tw-text-opacity: 1;
750
+ color: rgb(var(--c-color-gray-600-300) / var(--tw-text-opacity, 1));
751
+ }
752
+ @keyframes c-rte-glimmer-animation {
753
+ 0% {
754
+ background: #f9f9f9;
755
+ }
756
+ .50% {
757
+ background: #eeeeee;
758
+ }
759
+ .100% {
760
+ background: #f9f9f9;
761
+ }
762
+ }
763
+ .c-rte-link-preview {
764
+ }
765
+ .c-rte-link-preview-image-wrapper {
766
+ --tw-bg-opacity: 1;
767
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
768
+ text-align: center;
769
+ }
770
+ .c-rte-link-preview-image {
771
+ margin: auto;
772
+ display: block;
773
+ max-height: 250px;
774
+ max-width: 100%;
775
+ }
776
+ .c-rte-link-preview-title {
777
+ margin-left: 1.5rem;
778
+ margin-right: 1.5rem;
779
+ margin-top: 1rem;
780
+ font-weight: 600;
781
+ line-height: 1.25rem;
782
+ --tw-text-opacity: 1;
783
+ color: rgb(var(--c-color-gray-700-200) / var(--tw-text-opacity, 1));
784
+ }
785
+ .c-rte-link-preview-description {
786
+ margin-left: 1.5rem;
787
+ margin-right: 1.5rem;
788
+ margin-bottom: 1rem;
789
+ margin-top: 0.5rem;
790
+ font-size: 0.875rem;
791
+ line-height: 1.25rem;
792
+ }
793
+ .c-rte-link-preview-glimmer {
794
+ background: #f9f9f9;
795
+ border-radius: 8px;
796
+ height: 18px;
797
+ margin-bottom: 8px;
798
+ margin-left: 12px;
799
+ margin-right: 12px;
800
+ animation-duration: 3s;
801
+ animation-iteration-count: infinite;
802
+ animation-timing-function: linear;
803
+ animation-name: c-rte-glimmer-animation;
804
+ }
805
+ .c-rte-link-preview__replace-text-btn {
806
+ margin-bottom: 1rem;
807
+ margin-left: 1.25rem;
808
+ }
809
+
810
+ /* src/rich-text-editor/plugins/FloatingTextFormatToolbarPlugin/index.css */
811
+ .c-rte-floating-text-format-tb-plugin {
812
+ vertical-align: middle;
813
+ background-color: #fff;
814
+ transition: opacity 0.5s;
815
+ height: 43px;
816
+ will-change: transform;
817
+ box-sizing: border-box;
818
+ position: absolute;
819
+ left: 0px;
820
+ top: 0px;
821
+ z-index: 10;
822
+ display: flex;
823
+ gap: 0.125rem;
824
+ border-radius: 0.375rem;
825
+ --tw-bg-opacity: 1;
826
+ background-color: rgb(var(--c-color-elevate) / var(--tw-bg-opacity, 1));
827
+ padding: 0.25rem;
828
+ opacity: 0;
829
+ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
830
+ --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
831
+ box-shadow:
832
+ var(--tw-ring-offset-shadow, 0 0 #0000),
833
+ var(--tw-ring-shadow, 0 0 #0000),
834
+ var(--tw-shadow);
835
+ }
836
+ .c-rte-floating-text-format-tb-plugin__format-icon {
837
+ height: 100%;
838
+ width: 100%;
839
+ background-size: 18px 18px;
840
+ background-position: center;
841
+ background-repeat: no-repeat;
842
+ opacity: 0.6;
843
+ }
844
+ .c-rte-floating-text-format-tb-plugin__format-icon.selected {
845
+ --tw-bg-opacity: 1;
846
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
847
+ opacity: 1;
848
+ }
849
+ .c-floating-text-format-popup button.popup-item {
850
+ border: 0;
851
+ display: flex;
852
+ background: none;
853
+ border-radius: 10px;
854
+ padding: 8px;
855
+ cursor: pointer;
856
+ vertical-align: middle;
857
+ }
858
+ .c-floating-text-format-popup button.popup-item:disabled {
859
+ cursor: not-allowed;
860
+ }
861
+ .c-floating-text-format-popup button.popup-item.spaced {
862
+ margin-right: 2px;
863
+ }
864
+ .c-floating-text-format-popup button.popup-item i.format {
865
+ background-size: contain;
866
+ display: inline-block;
867
+ height: 18px;
868
+ width: 18px;
869
+ margin-top: 2px;
870
+ vertical-align: -0.25em;
871
+ display: flex;
872
+ opacity: 0.6;
873
+ }
874
+ .c-floating-text-format-popup button.popup-item:disabled i.format {
875
+ opacity: 0.2;
876
+ }
877
+ .c-floating-text-format-popup button.popup-item.active {
878
+ background-color: rgba(223, 232, 250, 0.3);
879
+ }
880
+ .c-floating-text-format-popup button.popup-item.active i {
881
+ opacity: 1;
882
+ }
883
+ .c-floating-text-format-popup .popup-item:hover:not([disabled]) {
884
+ background-color: #eee;
885
+ }
886
+ .c-floating-text-format-popup select.popup-item {
887
+ border: 0;
888
+ display: flex;
889
+ background: none;
890
+ border-radius: 10px;
891
+ padding: 8px;
892
+ vertical-align: middle;
893
+ -webkit-appearance: none;
894
+ -moz-appearance: none;
895
+ width: 70px;
896
+ font-size: 14px;
897
+ color: #777;
898
+ text-overflow: ellipsis;
899
+ }
900
+ .c-floating-text-format-popup select.code-language {
901
+ text-transform: capitalize;
902
+ width: 130px;
903
+ }
904
+ .c-floating-text-format-popup .popup-item .text {
905
+ display: flex;
906
+ line-height: 20px;
907
+ vertical-align: middle;
908
+ font-size: 14px;
909
+ color: #777;
910
+ text-overflow: ellipsis;
911
+ width: 70px;
912
+ overflow: hidden;
913
+ height: 20px;
914
+ text-align: left;
915
+ }
916
+ .c-floating-text-format-popup .popup-item .icon {
917
+ display: flex;
918
+ width: 20px;
919
+ height: 20px;
920
+ user-select: none;
921
+ margin-right: 8px;
922
+ line-height: 16px;
923
+ background-size: contain;
924
+ }
925
+ .c-floating-text-format-popup i.chevron-down {
926
+ margin-top: 3px;
927
+ width: 16px;
928
+ height: 16px;
929
+ display: flex;
930
+ user-select: none;
931
+ }
932
+ .c-floating-text-format-popup i.chevron-down.inside {
933
+ width: 16px;
934
+ height: 16px;
935
+ display: flex;
936
+ margin-left: -25px;
937
+ margin-top: 11px;
938
+ margin-right: 10px;
939
+ pointer-events: none;
940
+ }
941
+ .c-floating-text-format-popup .divider {
942
+ width: 1px;
943
+ background-color: #eee;
944
+ margin: 0 4px;
945
+ }
946
+ @media (max-width: 1024px) {
947
+ .c-floating-text-format-popup button.insert-comment {
948
+ display: none;
949
+ }
950
+ }
951
+
952
+ /* src/rich-text-editor/themes/CrystallizeRTEditorTheme.css */
953
+ .CrystallizeRTEditorTheme__ltr {
954
+ text-align: left;
955
+ }
956
+ .CrystallizeRTEditorTheme__rtl {
957
+ text-align: right;
958
+ }
959
+ .CrystallizeRTEditorTheme__paragraph {
960
+ font-size: 15px;
961
+ position: relative;
962
+ margin: 0px;
963
+ margin-top: 0.5rem;
964
+ line-height: 1.5rem;
965
+ --tw-text-opacity: 1;
966
+ color: rgb(var(--c-color-gray-600-300) / var(--tw-text-opacity, 1));
967
+ }
968
+ .CrystallizeRTEditorTheme__paragraph + .CrystallizeRTEditorTheme__paragraph {
969
+ position: relative;
970
+ margin: 0px;
971
+ margin-top: 1rem;
972
+ }
973
+ .CrystallizeRTEditorTheme__quote {
974
+ font-size: 15px;
975
+ border-left-width: 4px;
976
+ border-left-style: solid;
977
+ margin: 0px;
978
+ margin-left: 1.25rem;
979
+ padding-left: 1rem;
980
+ margin-top: 1.5rem;
981
+ margin-bottom: 1.5rem;
982
+ --tw-border-opacity: 1;
983
+ border-left-color: rgb(var(--c-color-purple-700-200) / var(--tw-border-opacity, 1));
984
+ font-weight: 400;
985
+ --tw-text-opacity: 1;
986
+ color: rgb(var(--c-color-gray-800-100) / var(--tw-text-opacity, 1));
987
+ }
988
+ .CrystallizeRTEditorTheme__h1 {
989
+ font-size: 20px;
990
+ margin: 0px;
991
+ margin-bottom: 0.25rem;
992
+ margin-top: 0.5rem;
993
+ font-weight: 500;
994
+ line-height: 1.5rem;
995
+ --tw-text-opacity: 1;
996
+ color: rgb(var(--c-color-gray-800-100) / var(--tw-text-opacity, 1));
997
+ }
998
+ .CrystallizeRTEditorTheme__h2 {
999
+ font-size: 19px;
1000
+ margin: 0px;
1001
+ margin-bottom: 0.25rem;
1002
+ margin-top: 0.5rem;
1003
+ font-size: 1.125rem;
1004
+ font-weight: 500;
1005
+ line-height: 1.5rem;
1006
+ --tw-text-opacity: 1;
1007
+ color: rgb(var(--c-color-gray-800-100) / var(--tw-text-opacity, 1));
1008
+ }
1009
+ .CrystallizeRTEditorTheme__h3 {
1010
+ font-size: 18px;
1011
+ margin: 0px;
1012
+ margin-bottom: 0.25rem;
1013
+ margin-top: 0.5rem;
1014
+ font-weight: 500;
1015
+ line-height: 1.5rem;
1016
+ --tw-text-opacity: 1;
1017
+ color: rgb(var(--c-color-gray-800-100) / var(--tw-text-opacity, 1));
1018
+ }
1019
+ .CrystallizeRTEditorTheme__h4 {
1020
+ font-size: 17px;
1021
+ margin: 0px;
1022
+ margin-bottom: 0.25rem;
1023
+ margin-top: 0.5rem;
1024
+ font-weight: 500;
1025
+ line-height: 1.5rem;
1026
+ --tw-text-opacity: 1;
1027
+ color: rgb(var(--c-color-gray-800-100) / var(--tw-text-opacity, 1));
1028
+ }
1029
+ .CrystallizeRTEditorTheme__h5 {
1030
+ font-size: 16px;
1031
+ margin: 0px;
1032
+ margin-bottom: 0.25rem;
1033
+ margin-top: 0.5rem;
1034
+ font-weight: 500;
1035
+ line-height: 1.5rem;
1036
+ --tw-text-opacity: 1;
1037
+ color: rgb(var(--c-color-gray-800-100) / var(--tw-text-opacity, 1));
1038
+ }
1039
+ .CrystallizeRTEditorTheme__h6 {
1040
+ font-size: 16px;
1041
+ margin: 0px;
1042
+ margin-bottom: 0.25rem;
1043
+ margin-top: 0.5rem;
1044
+ font-weight: 500;
1045
+ line-height: 1.5rem;
1046
+ --tw-text-opacity: 1;
1047
+ color: rgb(var(--c-color-gray-800-100) / var(--tw-text-opacity, 1));
1048
+ }
1049
+ .CrystallizeRTEditorTheme__indent {
1050
+ --lexical-indent-base-value: 20px;
1051
+ }
1052
+ .CrystallizeRTEditorTheme__textBold {
1053
+ font-weight: 700;
1054
+ }
1055
+ .CrystallizeRTEditorTheme__textItalic {
1056
+ font-style: italic;
1057
+ }
1058
+ .CrystallizeRTEditorTheme__textUnderline {
1059
+ text-decoration-line: underline;
1060
+ }
1061
+ .CrystallizeRTEditorTheme__textStrikethrough {
1062
+ text-decoration-line: line-through;
1063
+ }
1064
+ .CrystallizeRTEditorTheme__textUnderlineStrikethrough {
1065
+ text-decoration: underline line-through;
1066
+ }
1067
+ .CrystallizeRTEditorTheme__textSubscript {
1068
+ font-size: 0.8em;
1069
+ vertical-align: sub !important;
1070
+ }
1071
+ .CrystallizeRTEditorTheme__textSuperscript {
1072
+ font-size: 0.8em;
1073
+ vertical-align: super;
1074
+ }
1075
+ .CrystallizeRTEditorTheme__textCode {
1076
+ padding: 2px 0.5rem;
1077
+ font-family:
1078
+ Menlo,
1079
+ Consolas,
1080
+ Monaco,
1081
+ monospace;
1082
+ font-size: 13px;
1083
+ border-width: 1px;
1084
+ border-style: solid;
1085
+ border-radius: 0.375rem;
1086
+ --tw-border-opacity: 1;
1087
+ border-color: rgb(var(--c-color-gray-100-800) / var(--tw-border-opacity, 1));
1088
+ --tw-bg-opacity: 1;
1089
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
1090
+ }
1091
+ .CrystallizeRTEditorTheme__link {
1092
+ text-decoration: none;
1093
+ box-shadow: #5d96fd 0 -2px inset;
1094
+ --tw-text-opacity: 1 !important;
1095
+ color: rgb(var(--c-color-gray-600-300) / var(--tw-text-opacity, 1)) !important;
1096
+ }
1097
+ .CrystallizeRTEditorTheme__link:hover {
1098
+ cursor: pointer;
1099
+ }
1100
+ .CrystallizeRTEditorTheme__code {
1101
+ position: relative;
1102
+ margin-left: 0px;
1103
+ margin-right: 0px;
1104
+ margin-top: 0.5rem;
1105
+ margin-bottom: 0.5rem;
1106
+ display: block;
1107
+ overflow-x: auto;
1108
+ border-radius: 0.375rem;
1109
+ border-width: 1px;
1110
+ border-style: solid;
1111
+ --tw-border-opacity: 1;
1112
+ border-color: rgb(var(--c-color-gray-100-800) / var(--tw-border-opacity, 1));
1113
+ --tw-bg-opacity: 1;
1114
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
1115
+ padding: 0.5rem;
1116
+ padding-left: 3.5rem;
1117
+ font-size: 0.875rem;
1118
+ line-height: 1.25rem;
1119
+ font-family:
1120
+ Menlo,
1121
+ Consolas,
1122
+ Monaco,
1123
+ monospace;
1124
+ font-size: 12px;
1125
+ tab-size: 2;
1126
+ }
1127
+ .CrystallizeRTEditorTheme__code:before {
1128
+ position: absolute;
1129
+ left: 0px;
1130
+ top: 0px;
1131
+ border-width: 0px;
1132
+ border-right-width: 1px;
1133
+ border-style: solid;
1134
+ --tw-border-opacity: 1;
1135
+ border-color: rgb(var(--c-color-gray-100-800) / var(--tw-border-opacity, 1));
1136
+ --tw-bg-opacity: 1;
1137
+ background-color: rgb(var(--c-color-purple-100-800) / var(--tw-bg-opacity, 1));
1138
+ padding: 0.5rem;
1139
+ text-align: right;
1140
+ --tw-text-opacity: 1;
1141
+ color: rgb(var(--c-color-gray-400-500) / var(--tw-text-opacity, 1));
1142
+ content: attr(data-gutter);
1143
+ white-space: pre-wrap;
1144
+ min-width: 25px;
1145
+ }
1146
+ .CrystallizeRTEditorTheme__table {
1147
+ border-spacing: 0;
1148
+ max-width: 100%;
1149
+ overflow-y: scroll;
1150
+ table-layout: fixed;
1151
+ width: calc(100% - 25px);
1152
+ margin: 30px 0;
1153
+ overflow: hidden;
1154
+ border-width: 1px 1px 0 0;
1155
+ border-style: solid;
1156
+ border-radius: 0.375rem;
1157
+ --tw-border-opacity: 1;
1158
+ border-color: rgb(var(--c-color-gray-100-800) / var(--tw-border-opacity, 1));
1159
+ }
1160
+ .CrystallizeRTEditorTheme__tableSelected {
1161
+ outline-width: 2px;
1162
+ outline-color: rgb(var(--c-color-purple-200-700) / 1);
1163
+ }
1164
+ .CrystallizeRTEditorTheme__tableCell {
1165
+ position: relative;
1166
+ cursor: default;
1167
+ border-width: 1px;
1168
+ border-style: solid;
1169
+ --tw-border-opacity: 1;
1170
+ border-color: rgb(var(--c-color-gray-100-800) / var(--tw-border-opacity, 1));
1171
+ padding-left: 0.5rem;
1172
+ padding-right: 0.5rem;
1173
+ padding-top: 0px;
1174
+ padding-bottom: 0px;
1175
+ text-align: start;
1176
+ vertical-align: top;
1177
+ outline: 2px solid transparent;
1178
+ outline-offset: 2px;
1179
+ min-width: 75px;
1180
+ border-width: 0 0 1px 1px;
1181
+ }
1182
+ .CrystallizeRTEditorTheme__tableCell .CrystallizeRTEditorTheme__paragraph {
1183
+ margin-top: 0.5rem;
1184
+ margin-bottom: 0.5rem;
1185
+ font-size: 0.875rem;
1186
+ line-height: 1.25rem;
1187
+ }
1188
+ .CrystallizeRTEditorTheme__tableCellSortedIndicator {
1189
+ display: block;
1190
+ opacity: 0.5;
1191
+ position: absolute;
1192
+ bottom: 0;
1193
+ left: 0;
1194
+ width: 100%;
1195
+ height: 4px;
1196
+ background-color: #999;
1197
+ }
1198
+ .CrystallizeRTEditorTheme__tableCellResizer {
1199
+ position: absolute;
1200
+ right: -4px;
1201
+ height: 100%;
1202
+ width: 8px;
1203
+ cursor: ew-resize;
1204
+ z-index: 10;
1205
+ top: 0;
1206
+ }
1207
+ .CrystallizeRTEditorTheme__tableCellHeader {
1208
+ --tw-bg-opacity: 1;
1209
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
1210
+ text-align: start;
1211
+ }
1212
+ .CrystallizeRTEditorTheme__tableCellSelected {
1213
+ background-color: #c9dbf0;
1214
+ }
1215
+ .CrystallizeRTEditorTheme__tableCellPrimarySelected {
1216
+ border-width: 2px;
1217
+ border-style: solid;
1218
+ --tw-border-opacity: 1;
1219
+ border-color: rgb(var(--c-color-purple-200-700) / var(--tw-border-opacity, 1));
1220
+ display: block;
1221
+ height: calc(100% - 2px);
1222
+ position: absolute;
1223
+ width: calc(100% - 2px);
1224
+ left: -1px;
1225
+ top: -1px;
1226
+ z-index: 2;
1227
+ }
1228
+ .CrystallizeRTEditorTheme__tableCellEditing {
1229
+ --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
1230
+ --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
1231
+ box-shadow:
1232
+ var(--tw-ring-offset-shadow, 0 0 #0000),
1233
+ var(--tw-ring-shadow, 0 0 #0000),
1234
+ var(--tw-shadow);
1235
+ border-radius: 3px;
1236
+ }
1237
+ .CrystallizeRTEditorTheme__tableAddColumns {
1238
+ position: absolute;
1239
+ top: 0;
1240
+ width: 20px;
1241
+ height: 100%;
1242
+ right: 0;
1243
+ animation: table-controls 0.2s ease;
1244
+ border: 0;
1245
+ cursor: pointer;
1246
+ border: 1px solid transparent;
1247
+ --tw-bg-opacity: 1;
1248
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
1249
+ }
1250
+ .CrystallizeRTEditorTheme__tableAddColumns:after {
1251
+ background-image: url(./plus-CQISIKEC.svg);
1252
+ background-size: contain;
1253
+ background-position: center;
1254
+ background-repeat: no-repeat;
1255
+ display: block;
1256
+ content: " ";
1257
+ position: absolute;
1258
+ top: 0;
1259
+ left: 0;
1260
+ width: 100%;
1261
+ height: 100%;
1262
+ opacity: 1;
1263
+ }
1264
+ .CrystallizeRTEditorTheme__tableAddColumns:hover {
1265
+ border-radius: 0.125rem;
1266
+ --tw-border-opacity: 1;
1267
+ border-color: rgb(var(--c-color-purple-200-700) / var(--tw-border-opacity, 1));
1268
+ }
1269
+ .CrystallizeRTEditorTheme__tableAddRows {
1270
+ position: absolute;
1271
+ bottom: -25px;
1272
+ width: calc(100% - 25px);
1273
+ height: 20px;
1274
+ left: 0;
1275
+ animation: table-controls 0.2s ease;
1276
+ border: 0;
1277
+ cursor: pointer;
1278
+ border: 1px solid transparent;
1279
+ --tw-bg-opacity: 1;
1280
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity, 1));
1281
+ }
1282
+ .CrystallizeRTEditorTheme__tableAddRows:after {
1283
+ background-image: url(./plus-CQISIKEC.svg);
1284
+ background-size: contain;
1285
+ background-position: center;
1286
+ background-repeat: no-repeat;
1287
+ display: block;
1288
+ content: " ";
1289
+ position: absolute;
1290
+ top: 0;
1291
+ left: 0;
1292
+ width: 100%;
1293
+ height: 100%;
1294
+ opacity: 1;
1295
+ }
1296
+ .CrystallizeRTEditorTheme__tableAddRows:hover {
1297
+ border-radius: 0.125rem;
1298
+ --tw-border-opacity: 1;
1299
+ border-color: rgb(var(--c-color-purple-200-700) / var(--tw-border-opacity, 1));
1300
+ }
1301
+ @keyframes table-controls {
1302
+ 0% {
1303
+ opacity: 0;
1304
+ }
1305
+ 100% {
1306
+ opacity: 1;
1307
+ }
1308
+ }
1309
+ .CrystallizeRTEditorTheme__tableCellActionButtonContainer {
1310
+ display: block;
1311
+ right: 2px;
1312
+ top: 2px;
1313
+ position: absolute;
1314
+ z-index: 4;
1315
+ height: 20px;
1316
+ }
1317
+ .CrystallizeRTEditorTheme__tableCellActionButton {
1318
+ background-color: #eee;
1319
+ display: block;
1320
+ border: 0;
1321
+ border-radius: 20px;
1322
+ width: 20px;
1323
+ height: 20px;
1324
+ color: #222;
1325
+ cursor: pointer;
1326
+ }
1327
+ .CrystallizeRTEditorTheme__tableCellActionButton:hover {
1328
+ background-color: #ddd;
1329
+ }
1330
+ .CrystallizeRTEditorTheme__characterLimit {
1331
+ display: inline;
1332
+ background-color: #ffbbbb !important;
1333
+ }
1334
+ .CrystallizeRTEditorTheme__ol1 {
1335
+ padding: 0;
1336
+ margin: 0;
1337
+ list-style-position: inside;
1338
+ }
1339
+ .CrystallizeRTEditorTheme__ol2 {
1340
+ padding: 0;
1341
+ margin: 0;
1342
+ list-style-type: upper-alpha;
1343
+ list-style-position: inside;
1344
+ }
1345
+ .CrystallizeRTEditorTheme__ol3 {
1346
+ padding: 0;
1347
+ margin: 0;
1348
+ list-style-type: lower-alpha;
1349
+ list-style-position: inside;
1350
+ }
1351
+ .CrystallizeRTEditorTheme__ol4 {
1352
+ padding: 0;
1353
+ margin: 0;
1354
+ list-style-type: upper-roman;
1355
+ list-style-position: inside;
1356
+ }
1357
+ .CrystallizeRTEditorTheme__ol5 {
1358
+ padding: 0;
1359
+ margin: 0;
1360
+ list-style-type: lower-roman;
1361
+ list-style-position: inside;
1362
+ }
1363
+ .CrystallizeRTEditorTheme__ul {
1364
+ padding: 0;
1365
+ margin: 0;
1366
+ list-style-position: inside;
1367
+ }
1368
+ .CrystallizeRTEditorTheme__listItem {
1369
+ margin-left: 1.25rem;
1370
+ margin-right: 1.25rem;
1371
+ margin-top: 0px;
1372
+ margin-bottom: 0px;
1373
+ line-height: 1.5rem;
1374
+ --tw-text-opacity: 1;
1375
+ color: rgb(var(--c-color-gray-600-300) / var(--tw-text-opacity, 1));
1376
+ }
1377
+ .CrystallizeRTEditorTheme__listItemChecked,
1378
+ .CrystallizeRTEditorTheme__listItemUnchecked {
1379
+ position: relative;
1380
+ margin-left: 8px;
1381
+ margin-right: 8px;
1382
+ padding-left: 24px;
1383
+ padding-right: 24px;
1384
+ list-style-type: none;
1385
+ outline: none;
1386
+ }
1387
+ .CrystallizeRTEditorTheme__listItemChecked {
1388
+ text-decoration: line-through;
1389
+ }
1390
+ .CrystallizeRTEditorTheme__listItemUnchecked:before,
1391
+ .CrystallizeRTEditorTheme__listItemChecked:before {
1392
+ content: "";
1393
+ width: 16px;
1394
+ height: 16px;
1395
+ top: 2px;
1396
+ left: 0;
1397
+ cursor: pointer;
1398
+ display: block;
1399
+ background-size: cover;
1400
+ position: absolute;
1401
+ }
1402
+ .CrystallizeRTEditorTheme__listItemUnchecked[dir=rtl]:before,
1403
+ .CrystallizeRTEditorTheme__listItemChecked[dir=rtl]:before {
1404
+ left: auto;
1405
+ right: 0;
1406
+ }
1407
+ .CrystallizeRTEditorTheme__listItemUnchecked:focus:before,
1408
+ .CrystallizeRTEditorTheme__listItemChecked:focus:before {
1409
+ box-shadow: 0 0 0 2px #a6cdfe;
1410
+ border-radius: 2px;
1411
+ }
1412
+ .CrystallizeRTEditorTheme__listItemUnchecked:before {
1413
+ border: 1px solid #999;
1414
+ border-radius: 2px;
1415
+ }
1416
+ .CrystallizeRTEditorTheme__listItemChecked:before {
1417
+ border: 1px solid rgb(61, 135, 245);
1418
+ border-radius: 2px;
1419
+ background-color: #3d87f5;
1420
+ background-repeat: no-repeat;
1421
+ }
1422
+ .CrystallizeRTEditorTheme__listItemChecked:after {
1423
+ content: "";
1424
+ cursor: pointer;
1425
+ border-color: #fff;
1426
+ border-style: solid;
1427
+ position: absolute;
1428
+ display: block;
1429
+ top: 6px;
1430
+ width: 3px;
1431
+ left: 7px;
1432
+ right: 7px;
1433
+ height: 6px;
1434
+ transform: rotate(45deg);
1435
+ border-width: 0 2px 2px 0;
1436
+ }
1437
+ .CrystallizeRTEditorTheme__nestedListItem {
1438
+ list-style-type: none;
1439
+ }
1440
+ .CrystallizeRTEditorTheme__nestedListItem:before,
1441
+ .CrystallizeRTEditorTheme__nestedListItem:after {
1442
+ display: none;
1443
+ }
1444
+ .CrystallizeRTEditorTheme__tokenComment {
1445
+ color: slategray;
1446
+ }
1447
+ .CrystallizeRTEditorTheme__tokenPunctuation {
1448
+ color: #999;
1449
+ }
1450
+ .CrystallizeRTEditorTheme__tokenProperty {
1451
+ color: #905;
1452
+ }
1453
+ .CrystallizeRTEditorTheme__tokenSelector {
1454
+ color: #690;
1455
+ }
1456
+ .CrystallizeRTEditorTheme__tokenOperator {
1457
+ color: #9a6e3a;
1458
+ }
1459
+ .CrystallizeRTEditorTheme__tokenAttr {
1460
+ color: #07a;
1461
+ }
1462
+ .CrystallizeRTEditorTheme__tokenVariable {
1463
+ color: #e90;
1464
+ }
1465
+ .CrystallizeRTEditorTheme__tokenFunction {
1466
+ color: #dd4a68;
1467
+ }
1468
+ .CrystallizeRTEditorTheme__mark {
1469
+ background: rgba(255, 212, 0, 0.14);
1470
+ border-bottom: 2px solid rgba(255, 212, 0, 0.3);
1471
+ padding-bottom: 2px;
1472
+ }
1473
+ .CrystallizeRTEditorTheme__markOverlap {
1474
+ background: rgba(255, 212, 0, 0.3);
1475
+ border-bottom: 2px solid rgba(255, 212, 0, 0.7);
1476
+ }
1477
+ .CrystallizeRTEditorTheme__mark.selected {
1478
+ background: rgba(255, 212, 0, 0.5);
1479
+ border-bottom: 2px solid rgba(255, 212, 0, 1);
1480
+ }
1481
+ .CrystallizeRTEditorTheme__markOverlap.selected {
1482
+ background: rgba(255, 212, 0, 0.7);
1483
+ border-bottom: 2px solid rgba(255, 212, 0, 0.7);
1484
+ }
1485
+ .CrystallizeRTEditorTheme__embedBlock {
1486
+ user-select: none;
1487
+ }
1488
+ .CrystallizeRTEditorTheme__embedBlockFocus {
1489
+ outline: 2px solid rgb(60, 132, 244);
1490
+ }