@lets-events/react 12.1.11 → 12.1.12

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.
@@ -6,32 +6,570 @@ export const QuillContainer = styled("div", {
6
6
  });
7
7
 
8
8
  export const QuillEditor = styled("div", {
9
+ // Base container
10
+ "& .ql-container": {
11
+ boxSizing: "border-box",
12
+ fontFamily: "Helvetica, Arial, sans-serif",
13
+ fontSize: "13px",
14
+ height: "100%",
15
+ margin: 0,
16
+ position: "relative",
17
+ border: "1px solid $neutral300",
18
+ borderTop: "none",
19
+ borderBottomLeftRadius: "$sm",
20
+ borderBottomRightRadius: "$sm",
21
+ },
22
+
23
+ "& .ql-container.ql-disabled .ql-tooltip": {
24
+ visibility: "hidden",
25
+ },
26
+
27
+ "& .ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui, & .ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui": {
28
+ cursor: "pointer",
29
+ },
30
+
31
+ // Clipboard
32
+ "& .ql-clipboard": {
33
+ left: "-100000px",
34
+ height: "1px",
35
+ overflowY: "hidden",
36
+ position: "absolute",
37
+ top: "50%",
38
+ },
39
+
40
+ "& .ql-clipboard p": {
41
+ margin: 0,
42
+ padding: 0,
43
+ },
44
+
45
+ // Editor
9
46
  "& .ql-editor": {
10
- minHeight: "200px",
47
+ boxSizing: "border-box",
48
+ counterReset: "list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9",
49
+ lineHeight: "1.42",
50
+ height: "100%",
51
+ outline: "none",
52
+ overflowY: "auto",
11
53
  padding: "$12",
54
+ tabSize: 4,
55
+ MozTabSize: 4,
56
+ textAlign: "left",
57
+ whiteSpace: "pre-wrap",
58
+ wordWrap: "break-word",
59
+ minHeight: "200px",
12
60
  fontSize: "$14",
13
- lineHeight: "$base",
14
61
  fontFamily: "$default",
15
62
  color: "$neutral900",
16
63
  backgroundColor: "$white",
17
64
  border: "none",
18
- outline: "none",
19
65
  cursor: "text",
20
66
  caretColor: "$primary500",
21
67
 
68
+ "& > *": {
69
+ cursor: "text",
70
+ },
71
+
22
72
  "&:focus": {
23
73
  borderColor: "$primary500",
24
74
  boxShadow: "0 0 0 1px $primary500",
25
75
  },
26
76
 
77
+ "& p, & ol, & pre, & blockquote, & h1, & h2, & h3, & h4, & h5, & h6": {
78
+ margin: 0,
79
+ padding: 0,
80
+ },
81
+
27
82
  "& p": {
28
83
  margin: "0 0 $8 0",
29
84
  },
85
+
86
+ "& p:last-child": {
87
+ marginBottom: 0,
88
+ },
89
+
90
+ "& h1": {
91
+ fontSize: "2em",
92
+ },
93
+
94
+ "& h2": {
95
+ fontSize: "1.5em",
96
+ },
97
+
98
+ "& h3": {
99
+ fontSize: "1.17em",
100
+ },
101
+
102
+ "& h4": {
103
+ fontSize: "1em",
104
+ },
105
+
106
+ "& h5": {
107
+ fontSize: "0.83em",
108
+ },
109
+
110
+ "& h6": {
111
+ fontSize: "0.67em",
112
+ },
113
+
30
114
  "& h1 span, & h1, & h2, & h2 span": {
31
115
  lineHeight: "1.5rem",
32
116
  },
33
- "& p:last-child": {
34
- marginBottom: 0,
117
+
118
+ "& table": {
119
+ borderCollapse: "collapse",
120
+ tableLayout: "fixed",
121
+ width: "100%",
122
+ },
123
+
124
+ "& td": {
125
+ border: "1px solid #000",
126
+ padding: "2px 5px",
127
+ outline: "none",
128
+ },
129
+
130
+ "& ol": {
131
+ paddingLeft: "1.5em",
132
+ },
133
+
134
+ "& li": {
135
+ listStyleType: "none",
136
+ paddingLeft: "1.5em",
137
+ position: "relative",
138
+ },
139
+
140
+ "& li > .ql-ui:before": {
141
+ display: "inline-block",
142
+ marginLeft: "-1.5em",
143
+ marginRight: "0.3em",
144
+ textAlign: "right",
145
+ whiteSpace: "nowrap",
146
+ width: "1.2em",
147
+ },
148
+
149
+ "& li[data-list=checked] > .ql-ui, & li[data-list=unchecked] > .ql-ui": {
150
+ color: "#777",
151
+ },
152
+
153
+ "& li[data-list=bullet] > .ql-ui:before": {
154
+ content: "'\\2022'",
155
+ },
156
+
157
+ "& li[data-list=checked] > .ql-ui:before": {
158
+ content: "'\\2611'",
159
+ },
160
+
161
+ "& li[data-list=unchecked] > .ql-ui:before": {
162
+ content: "'\\2610'",
163
+ },
164
+
165
+ "& li[data-list=ordered]": {
166
+ counterIncrement: "list-0",
167
+ },
168
+
169
+ "& li[data-list=ordered] > .ql-ui:before": {
170
+ content: "counter(list-0, decimal) '. '",
171
+ },
172
+
173
+ "& li[data-list=ordered].ql-indent-1": {
174
+ counterIncrement: "list-1",
175
+ },
176
+
177
+ "& li[data-list=ordered].ql-indent-1 > .ql-ui:before": {
178
+ content: "counter(list-1, lower-alpha) '. '",
179
+ },
180
+
181
+ "& li[data-list=ordered].ql-indent-2": {
182
+ counterIncrement: "list-2",
183
+ },
184
+
185
+ "& li[data-list=ordered].ql-indent-2 > .ql-ui:before": {
186
+ content: "counter(list-2, lower-roman) '. '",
187
+ },
188
+
189
+ "& li[data-list=ordered].ql-indent-3": {
190
+ counterIncrement: "list-3",
191
+ },
192
+
193
+ "& li[data-list=ordered].ql-indent-3 > .ql-ui:before": {
194
+ content: "counter(list-3, decimal) '. '",
195
+ },
196
+
197
+ "& li[data-list=ordered].ql-indent-4": {
198
+ counterIncrement: "list-4",
199
+ },
200
+
201
+ "& li[data-list=ordered].ql-indent-4 > .ql-ui:before": {
202
+ content: "counter(list-4, lower-alpha) '. '",
203
+ },
204
+
205
+ "& li[data-list=ordered].ql-indent-5": {
206
+ counterIncrement: "list-5",
207
+ },
208
+
209
+ "& li[data-list=ordered].ql-indent-5 > .ql-ui:before": {
210
+ content: "counter(list-5, lower-roman) '. '",
211
+ },
212
+
213
+ "& li[data-list=ordered].ql-indent-6": {
214
+ counterIncrement: "list-6",
215
+ },
216
+
217
+ "& li[data-list=ordered].ql-indent-6 > .ql-ui:before": {
218
+ content: "counter(list-6, decimal) '. '",
219
+ },
220
+
221
+ "& li[data-list=ordered].ql-indent-7": {
222
+ counterIncrement: "list-7",
223
+ },
224
+
225
+ "& li[data-list=ordered].ql-indent-7 > .ql-ui:before": {
226
+ content: "counter(list-7, lower-alpha) '. '",
227
+ },
228
+
229
+ "& li[data-list=ordered].ql-indent-8": {
230
+ counterIncrement: "list-8",
231
+ },
232
+
233
+ "& li[data-list=ordered].ql-indent-8 > .ql-ui:before": {
234
+ content: "counter(list-8, lower-roman) '. '",
235
+ },
236
+
237
+ "& li[data-list=ordered].ql-indent-9": {
238
+ counterIncrement: "list-9",
239
+ },
240
+
241
+ "& li[data-list=ordered].ql-indent-9 > .ql-ui:before": {
242
+ content: "counter(list-9, decimal) '. '",
243
+ },
244
+
245
+ // Indents
246
+ "& .ql-indent-1:not(.ql-direction-rtl)": {
247
+ paddingLeft: "3em",
248
+ },
249
+
250
+ "& li.ql-indent-1:not(.ql-direction-rtl)": {
251
+ paddingLeft: "4.5em",
252
+ },
253
+
254
+ "& .ql-indent-1.ql-direction-rtl.ql-align-right": {
255
+ paddingRight: "3em",
256
+ },
257
+
258
+ "& li.ql-indent-1.ql-direction-rtl.ql-align-right": {
259
+ paddingRight: "4.5em",
260
+ },
261
+
262
+ "& .ql-indent-2:not(.ql-direction-rtl)": {
263
+ paddingLeft: "6em",
264
+ },
265
+
266
+ "& li.ql-indent-2:not(.ql-direction-rtl)": {
267
+ paddingLeft: "7.5em",
268
+ },
269
+
270
+ "& .ql-indent-2.ql-direction-rtl.ql-align-right": {
271
+ paddingRight: "6em",
272
+ },
273
+
274
+ "& li.ql-indent-2.ql-direction-rtl.ql-align-right": {
275
+ paddingRight: "7.5em",
276
+ },
277
+
278
+ "& .ql-indent-3:not(.ql-direction-rtl)": {
279
+ paddingLeft: "9em",
280
+ },
281
+
282
+ "& li.ql-indent-3:not(.ql-direction-rtl)": {
283
+ paddingLeft: "10.5em",
284
+ },
285
+
286
+ "& .ql-indent-3.ql-direction-rtl.ql-align-right": {
287
+ paddingRight: "9em",
288
+ },
289
+
290
+ "& li.ql-indent-3.ql-direction-rtl.ql-align-right": {
291
+ paddingRight: "10.5em",
292
+ },
293
+
294
+ "& .ql-indent-4:not(.ql-direction-rtl)": {
295
+ paddingLeft: "12em",
296
+ },
297
+
298
+ "& li.ql-indent-4:not(.ql-direction-rtl)": {
299
+ paddingLeft: "13.5em",
300
+ },
301
+
302
+ "& .ql-indent-4.ql-direction-rtl.ql-align-right": {
303
+ paddingRight: "12em",
304
+ },
305
+
306
+ "& li.ql-indent-4.ql-direction-rtl.ql-align-right": {
307
+ paddingRight: "13.5em",
308
+ },
309
+
310
+ "& .ql-indent-5:not(.ql-direction-rtl)": {
311
+ paddingLeft: "15em",
312
+ },
313
+
314
+ "& li.ql-indent-5:not(.ql-direction-rtl)": {
315
+ paddingLeft: "16.5em",
316
+ },
317
+
318
+ "& .ql-indent-5.ql-direction-rtl.ql-align-right": {
319
+ paddingRight: "15em",
320
+ },
321
+
322
+ "& li.ql-indent-5.ql-direction-rtl.ql-align-right": {
323
+ paddingRight: "16.5em",
324
+ },
325
+
326
+ "& .ql-indent-6:not(.ql-direction-rtl)": {
327
+ paddingLeft: "18em",
328
+ },
329
+
330
+ "& li.ql-indent-6:not(.ql-direction-rtl)": {
331
+ paddingLeft: "19.5em",
332
+ },
333
+
334
+ "& .ql-indent-6.ql-direction-rtl.ql-align-right": {
335
+ paddingRight: "18em",
336
+ },
337
+
338
+ "& li.ql-indent-6.ql-direction-rtl.ql-align-right": {
339
+ paddingRight: "19.5em",
340
+ },
341
+
342
+ "& .ql-indent-7:not(.ql-direction-rtl)": {
343
+ paddingLeft: "21em",
344
+ },
345
+
346
+ "& li.ql-indent-7:not(.ql-direction-rtl)": {
347
+ paddingLeft: "22.5em",
348
+ },
349
+
350
+ "& .ql-indent-7.ql-direction-rtl.ql-align-right": {
351
+ paddingRight: "21em",
352
+ },
353
+
354
+ "& li.ql-indent-7.ql-direction-rtl.ql-align-right": {
355
+ paddingRight: "22.5em",
356
+ },
357
+
358
+ "& .ql-indent-8:not(.ql-direction-rtl)": {
359
+ paddingLeft: "24em",
360
+ },
361
+
362
+ "& li.ql-indent-8:not(.ql-direction-rtl)": {
363
+ paddingLeft: "25.5em",
364
+ },
365
+
366
+ "& .ql-indent-8.ql-direction-rtl.ql-align-right": {
367
+ paddingRight: "24em",
368
+ },
369
+
370
+ "& li.ql-indent-8.ql-direction-rtl.ql-align-right": {
371
+ paddingRight: "25.5em",
372
+ },
373
+
374
+ "& .ql-indent-9:not(.ql-direction-rtl)": {
375
+ paddingLeft: "27em",
376
+ },
377
+
378
+ "& li.ql-indent-9:not(.ql-direction-rtl)": {
379
+ paddingLeft: "28.5em",
380
+ },
381
+
382
+ "& .ql-indent-9.ql-direction-rtl.ql-align-right": {
383
+ paddingRight: "27em",
384
+ },
385
+
386
+ "& li.ql-indent-9.ql-direction-rtl.ql-align-right": {
387
+ paddingRight: "28.5em",
388
+ },
389
+
390
+ "& li.ql-direction-rtl": {
391
+ paddingRight: "1.5em",
392
+ },
393
+
394
+ "& li.ql-direction-rtl > .ql-ui:before": {
395
+ marginLeft: "0.3em",
396
+ marginRight: "-1.5em",
397
+ textAlign: "left",
398
+ },
399
+
400
+ // Code blocks
401
+ "& .ql-code-block-container": {
402
+ fontFamily: "monospace",
403
+ backgroundColor: "#23241f",
404
+ color: "#f8f8f2",
405
+ overflow: "visible",
406
+ marginBottom: "5px",
407
+ marginTop: "5px",
408
+ padding: "5px 10px",
409
+ },
410
+
411
+ // Video
412
+ "& .ql-video": {
413
+ display: "block",
414
+ maxWidth: "100%",
415
+ },
416
+
417
+ "& .ql-video.ql-align-center": {
418
+ margin: "0 auto",
419
+ },
420
+
421
+ "& .ql-video.ql-align-right": {
422
+ margin: "0 0 0 auto",
423
+ },
424
+
425
+ // Colors
426
+ "& .ql-bg-black": {
427
+ backgroundColor: "#000",
428
+ },
429
+
430
+ "& .ql-bg-red": {
431
+ backgroundColor: "#e60000",
432
+ },
433
+
434
+ "& .ql-bg-orange": {
435
+ backgroundColor: "#f90",
436
+ },
437
+
438
+ "& .ql-bg-yellow": {
439
+ backgroundColor: "#ff0",
440
+ },
441
+
442
+ "& .ql-bg-green": {
443
+ backgroundColor: "#008a00",
444
+ },
445
+
446
+ "& .ql-bg-blue": {
447
+ backgroundColor: "#06c",
448
+ },
449
+
450
+ "& .ql-bg-purple": {
451
+ backgroundColor: "#93f",
452
+ },
453
+
454
+ "& .ql-color-white": {
455
+ color: "#fff",
456
+ },
457
+
458
+ "& .ql-color-red": {
459
+ color: "#e60000",
460
+ },
461
+
462
+ "& .ql-color-orange": {
463
+ color: "#f90",
464
+ },
465
+
466
+ "& .ql-color-yellow": {
467
+ color: "#ff0",
468
+ },
469
+
470
+ "& .ql-color-green": {
471
+ color: "#008a00",
472
+ },
473
+
474
+ "& .ql-color-blue": {
475
+ color: "#06c",
476
+ },
477
+
478
+ "& .ql-color-purple": {
479
+ color: "#93f",
480
+ },
481
+
482
+ // Fonts
483
+ "& .ql-font-serif": {
484
+ fontFamily: "Georgia, Times New Roman, serif",
485
+ },
486
+
487
+ "& .ql-font-monospace": {
488
+ fontFamily: "Monaco, Courier New, monospace",
489
+ },
490
+
491
+ // Sizes
492
+ "& .ql-size-small": {
493
+ fontSize: "0.75em",
494
+ },
495
+
496
+ "& .ql-size-large": {
497
+ fontSize: "1.5em",
498
+ },
499
+
500
+ "& .ql-size-huge": {
501
+ fontSize: "2.5em",
502
+ },
503
+
504
+ // Direction
505
+ "& .ql-direction-rtl": {
506
+ direction: "rtl",
507
+ textAlign: "inherit",
508
+ },
509
+
510
+ // Alignment
511
+ "& .ql-align-center": {
512
+ textAlign: "center",
513
+ },
514
+
515
+ "& .ql-align-justify": {
516
+ textAlign: "justify",
517
+ },
518
+
519
+ "& .ql-align-right": {
520
+ textAlign: "right",
521
+ },
522
+
523
+ // UI
524
+ "& .ql-ui": {
525
+ position: "absolute",
526
+ },
527
+
528
+ // Formats
529
+ "& strong": {
530
+ fontWeight: "bold",
531
+ },
532
+
533
+ "& em": {
534
+ fontStyle: "italic",
535
+ },
536
+
537
+ "& u": {
538
+ textDecoration: "underline",
539
+ },
540
+
541
+ "& s": {
542
+ textDecoration: "line-through",
543
+ },
544
+
545
+ "& a": {
546
+ textDecoration: "underline",
547
+ color: "#06c",
548
+ },
549
+
550
+ "& blockquote": {
551
+ borderLeft: "4px solid #ccc",
552
+ marginBottom: "5px",
553
+ marginTop: "5px",
554
+ paddingLeft: "16px",
555
+ },
556
+
557
+ "& code": {
558
+ backgroundColor: "#f0f0f0",
559
+ borderRadius: "3px",
560
+ fontSize: "85%",
561
+ padding: "2px 4px",
562
+ },
563
+
564
+ "& pre": {
565
+ backgroundColor: "#f0f0f0",
566
+ borderRadius: "3px",
567
+ padding: "5px 10px",
568
+ whiteSpace: "pre-wrap",
569
+ },
570
+
571
+ "& img": {
572
+ maxWidth: "100%",
35
573
  },
36
574
 
37
575
  "& .ql-cursor": {
@@ -39,26 +577,575 @@ export const QuillEditor = styled("div", {
39
577
  },
40
578
  },
41
579
 
42
- "& .ql-toolbar": {
580
+ "&.ql-blank::before": {
581
+ color: "rgba(0, 0, 0, 0.6)",
582
+ content: "attr(data-placeholder)",
583
+ fontStyle: "italic",
584
+ left: "15px",
585
+ pointerEvents: "none",
586
+ position: "absolute",
587
+ right: "15px",
588
+ },
589
+
590
+ // Toolbar
591
+ "& .ql-toolbar, &.ql-toolbar": {
43
592
  backgroundColor: "$grey100",
44
593
  border: "1px solid $neutral300",
45
594
  borderBottom: "none",
46
595
  borderTopLeftRadius: "$sm",
47
596
  borderTopRightRadius: "$sm",
48
597
  padding: "$8 $12",
598
+ boxSizing: "border-box",
599
+ fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif",
600
+
601
+ "&::after": {
602
+ clear: "both",
603
+ content: "''",
604
+ display: "table",
605
+ },
606
+
607
+ "& button": {
608
+ background: "none",
609
+ border: "none",
610
+ cursor: "pointer",
611
+ display: "inline-block",
612
+ float: "left",
613
+ height: "24px",
614
+ padding: "3px 5px",
615
+ width: "28px",
616
+
617
+ "& svg": {
618
+ float: "left",
619
+ height: "100%",
620
+ },
621
+
622
+ "&:active:hover": {
623
+ outline: "none",
624
+ },
625
+
626
+ "&:hover, &:focus, &.ql-active": {
627
+ color: "#06c",
628
+
629
+ "& .ql-fill, & .ql-stroke.ql-fill": {
630
+ fill: "#06c",
631
+ },
632
+
633
+ "& .ql-stroke, & .ql-stroke-miter": {
634
+ stroke: "#06c",
635
+ },
636
+ },
637
+ },
638
+
639
+ "& input.ql-image[type=file]": {
640
+ display: "none",
641
+ },
642
+
643
+ "& .ql-formats": {
644
+ display: "inline-block",
645
+ verticalAlign: "middle",
646
+ marginRight: "15px",
647
+
648
+ "&::after": {
649
+ clear: "both",
650
+ content: "''",
651
+ display: "table",
652
+ },
653
+ },
654
+
655
+ "& .ql-picker-label": {
656
+ border: "1px solid transparent",
657
+
658
+ "&:hover, &.ql-active": {
659
+ color: "#06c",
660
+
661
+ "& .ql-fill": {
662
+ fill: "#06c",
663
+ },
664
+
665
+ "& .ql-stroke": {
666
+ stroke: "#06c",
667
+ },
668
+ },
669
+ },
670
+
671
+ "& .ql-picker-options": {
672
+ border: "1px solid transparent",
673
+ boxShadow: "rgba(0, 0, 0, 0.2) 0 2px 8px",
674
+ },
675
+
676
+ "& .ql-picker.ql-expanded .ql-picker-label": {
677
+ borderColor: "#ccc",
678
+
679
+ "& .ql-fill": {
680
+ fill: "#ccc",
681
+ },
682
+
683
+ "& .ql-stroke": {
684
+ stroke: "#ccc",
685
+ },
686
+ },
687
+
688
+ "& .ql-picker.ql-expanded .ql-picker-options": {
689
+ borderColor: "#ccc",
690
+ },
691
+
692
+ "& .ql-picker-item": {
693
+ "&:hover, &.ql-selected": {
694
+ color: "#06c",
695
+
696
+ "& .ql-fill, & .ql-stroke.ql-fill": {
697
+ fill: "#06c",
698
+ },
699
+
700
+ "& .ql-stroke, & .ql-stroke-miter": {
701
+ stroke: "#06c",
702
+ },
703
+ },
704
+ },
705
+
706
+ "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover": {
707
+ borderColor: "#000",
708
+ },
49
709
  },
50
710
 
51
- "& .ql-container": {
52
- border: "1px solid $neutral300",
53
- borderTop: "none",
54
- borderBottomLeftRadius: "$sm",
55
- borderBottomRightRadius: "$sm",
56
- fontFamily: "$default",
711
+ "@media (pointer: coarse)": {
712
+ "& .ql-toolbar button:hover:not(.ql-active)": {
713
+ color: "#444",
714
+
715
+ "& .ql-fill, & .ql-stroke.ql-fill": {
716
+ fill: "#444",
717
+ },
718
+
719
+ "& .ql-stroke, & .ql-stroke-miter": {
720
+ stroke: "#444",
721
+ },
722
+ },
57
723
  },
58
- "& .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before": {
59
- content: "Título 1",
724
+
725
+ // Snow theme
726
+ "&, & *": {
727
+ boxSizing: "border-box",
60
728
  },
61
- "& .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before": {
62
- content: "Título 2",
729
+
730
+ "& .ql-hidden": {
731
+ display: "none",
63
732
  },
64
- });
733
+
734
+ "& .ql-out-bottom, & .ql-out-top": {
735
+ visibility: "hidden",
736
+ },
737
+
738
+ "& .ql-tooltip": {
739
+ position: "absolute",
740
+ transform: "translateY(10px)",
741
+ backgroundColor: "#fff",
742
+ border: "1px solid #ccc",
743
+ boxShadow: "0 0 5px #ddd",
744
+ color: "#444",
745
+ padding: "5px 12px",
746
+ whiteSpace: "nowrap",
747
+
748
+ "& a": {
749
+ cursor: "pointer",
750
+ textDecoration: "none",
751
+ lineHeight: "26px",
752
+ color: "#06c",
753
+ },
754
+
755
+ "&.ql-flip": {
756
+ transform: "translateY(-10px)",
757
+ },
758
+
759
+ "&::before": {
760
+ content: "'Visit URL:'",
761
+ lineHeight: "26px",
762
+ marginRight: "8px",
763
+ },
764
+
765
+ "& input[type=text]": {
766
+ display: "none",
767
+ border: "1px solid #ccc",
768
+ fontSize: "13px",
769
+ height: "26px",
770
+ margin: 0,
771
+ padding: "3px 5px",
772
+ width: "170px",
773
+ },
774
+
775
+ "& a.ql-preview": {
776
+ display: "inline-block",
777
+ maxWidth: "200px",
778
+ overflowX: "hidden",
779
+ textOverflow: "ellipsis",
780
+ verticalAlign: "top",
781
+ },
782
+
783
+ "& a.ql-action::after": {
784
+ borderRight: "1px solid #ccc",
785
+ content: "'Edit'",
786
+ marginLeft: "16px",
787
+ paddingRight: "8px",
788
+ },
789
+
790
+ "& a.ql-remove::before": {
791
+ content: "'Remove'",
792
+ marginLeft: "8px",
793
+ },
794
+
795
+ "&.ql-editing a.ql-preview, &.ql-editing a.ql-remove": {
796
+ display: "none",
797
+ },
798
+
799
+ "&.ql-editing input[type=text]": {
800
+ display: "inline-block",
801
+ },
802
+
803
+ "&.ql-editing a.ql-action::after": {
804
+ borderRight: 0,
805
+ content: "'Save'",
806
+ paddingRight: 0,
807
+ },
808
+
809
+ "&[data-mode=link]::before": {
810
+ content: "'Enter link:'",
811
+ },
812
+
813
+ "&[data-mode=formula]::before": {
814
+ content: "'Enter formula:'",
815
+ },
816
+
817
+ "&[data-mode=video]::before": {
818
+ content: "'Enter video:'",
819
+ },
820
+ },
821
+
822
+ // Stroke and fill
823
+ "& .ql-stroke": {
824
+ fill: "none",
825
+ stroke: "#444",
826
+ strokeLinecap: "round",
827
+ strokeLinejoin: "round",
828
+ strokeWidth: "2",
829
+ },
830
+
831
+ "& .ql-stroke-miter": {
832
+ fill: "none",
833
+ stroke: "#444",
834
+ strokeMiterlimit: "10",
835
+ strokeWidth: "2",
836
+ },
837
+
838
+ "& .ql-fill, & .ql-stroke.ql-fill": {
839
+ fill: "#444",
840
+ },
841
+
842
+ "& .ql-empty": {
843
+ fill: "none",
844
+ },
845
+
846
+ "& .ql-even": {
847
+ fillRule: "evenodd",
848
+ },
849
+
850
+ "& .ql-thin, & .ql-stroke.ql-thin": {
851
+ strokeWidth: "1",
852
+ },
853
+
854
+ "& .ql-transparent": {
855
+ opacity: 0.4,
856
+ },
857
+
858
+ // Direction
859
+ "& .ql-direction svg:last-child": {
860
+ display: "none",
861
+ },
862
+
863
+ "& .ql-direction.ql-active svg:last-child": {
864
+ display: "inline",
865
+ },
866
+
867
+ "& .ql-direction.ql-active svg:first-child": {
868
+ display: "none",
869
+ },
870
+
871
+ // Picker
872
+ "& .ql-picker": {
873
+ color: "#444",
874
+ display: "inline-block",
875
+ float: "left",
876
+ fontSize: "14px",
877
+ fontWeight: "500",
878
+ height: "24px",
879
+ position: "relative",
880
+ verticalAlign: "middle",
881
+ },
882
+
883
+ "& .ql-picker-label": {
884
+ cursor: "pointer",
885
+ display: "inline-block",
886
+ height: "100%",
887
+ paddingLeft: "8px",
888
+ paddingRight: "2px",
889
+ position: "relative",
890
+ width: "100%",
891
+
892
+ "&::before": {
893
+ display: "inline-block",
894
+ lineHeight: "22px",
895
+ },
896
+ },
897
+
898
+ "& .ql-picker-options": {
899
+ backgroundColor: "#fff",
900
+ display: "none",
901
+ minWidth: "100%",
902
+ padding: "4px 8px",
903
+ position: "absolute",
904
+ whiteSpace: "nowrap",
905
+
906
+ "& .ql-picker-item": {
907
+ cursor: "pointer",
908
+ display: "block",
909
+ paddingBottom: "5px",
910
+ paddingTop: "5px",
911
+ },
912
+ },
913
+
914
+ "& .ql-picker.ql-expanded": {
915
+ "& .ql-picker-label": {
916
+ color: "#ccc",
917
+ zIndex: 2,
918
+ },
919
+
920
+ "& .ql-picker-options": {
921
+ display: "block",
922
+ marginTop: "-1px",
923
+ top: "100%",
924
+ zIndex: 1,
925
+ },
926
+ },
927
+
928
+ "& .ql-color-picker, & .ql-icon-picker": {
929
+ width: "28px",
930
+
931
+ "& .ql-picker-label": {
932
+ padding: "2px 4px",
933
+
934
+ "& svg": {
935
+ right: "4px",
936
+ },
937
+ },
938
+ },
939
+
940
+ "& .ql-icon-picker .ql-picker-options": {
941
+ padding: "4px 0",
942
+ },
943
+
944
+ "& .ql-icon-picker .ql-picker-item": {
945
+ height: "24px",
946
+ width: "24px",
947
+ padding: "2px 4px",
948
+ },
949
+
950
+ "& .ql-color-picker .ql-picker-options": {
951
+ padding: "3px 5px",
952
+ width: "152px",
953
+ },
954
+
955
+ "& .ql-color-picker .ql-picker-item": {
956
+ border: "1px solid transparent",
957
+ float: "left",
958
+ height: "16px",
959
+ margin: "2px",
960
+ padding: 0,
961
+ width: "16px",
962
+ },
963
+
964
+ "& .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg": {
965
+ position: "absolute",
966
+ marginTop: "-9px",
967
+ right: 0,
968
+ top: "50%",
969
+ width: "18px",
970
+ },
971
+
972
+ "& .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before": {
973
+ content: "attr(data-label)",
974
+ },
975
+
976
+ // Header picker
977
+ "& .ql-picker.ql-header": {
978
+ width: "98px",
979
+
980
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
981
+ content: "'Normal'",
982
+ },
983
+
984
+ "& .ql-picker-label[data-value='1']::before, & .ql-picker-item[data-value='1']::before": {
985
+ content: "'Título 1'",
986
+ },
987
+
988
+ "& .ql-picker-label[data-value='2']::before, & .ql-picker-item[data-value='2']::before": {
989
+ content: "'Título 2'",
990
+ },
991
+
992
+ "& .ql-picker-label[data-value='3']::before, & .ql-picker-item[data-value='3']::before": {
993
+ content: "'Heading 3'",
994
+ },
995
+
996
+ "& .ql-picker-label[data-value='4']::before, & .ql-picker-item[data-value='4']::before": {
997
+ content: "'Heading 4'",
998
+ },
999
+
1000
+ "& .ql-picker-label[data-value='5']::before, & .ql-picker-item[data-value='5']::before": {
1001
+ content: "'Heading 5'",
1002
+ },
1003
+
1004
+ "& .ql-picker-label[data-value='6']::before, & .ql-picker-item[data-value='6']::before": {
1005
+ content: "'Heading 6'",
1006
+ },
1007
+
1008
+ "& .ql-picker-item[data-value='1']::before": {
1009
+ fontSize: "2em",
1010
+ },
1011
+
1012
+ "& .ql-picker-item[data-value='2']::before": {
1013
+ fontSize: "1.5em",
1014
+ },
1015
+
1016
+ "& .ql-picker-item[data-value='3']::before": {
1017
+ fontSize: "1.17em",
1018
+ },
1019
+
1020
+ "& .ql-picker-item[data-value='4']::before": {
1021
+ fontSize: "1em",
1022
+ },
1023
+
1024
+ "& .ql-picker-item[data-value='5']::before": {
1025
+ fontSize: "0.83em",
1026
+ },
1027
+
1028
+ "& .ql-picker-item[data-value='6']::before": {
1029
+ fontSize: "0.67em",
1030
+ },
1031
+ },
1032
+
1033
+ // Font picker
1034
+ "& .ql-picker.ql-font": {
1035
+ width: "108px",
1036
+
1037
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
1038
+ content: "'Sans Serif'",
1039
+ },
1040
+
1041
+ "& .ql-picker-label[data-value=serif]::before, & .ql-picker-item[data-value=serif]::before": {
1042
+ content: "'Serif'",
1043
+ },
1044
+
1045
+ "& .ql-picker-label[data-value=monospace]::before, & .ql-picker-item[data-value=monospace]::before": {
1046
+ content: "'Monospace'",
1047
+ },
1048
+
1049
+ "& .ql-picker-item[data-value=serif]::before": {
1050
+ fontFamily: "Georgia, Times New Roman, serif",
1051
+ },
1052
+
1053
+ "& .ql-picker-item[data-value=monospace]::before": {
1054
+ fontFamily: "Monaco, Courier New, monospace",
1055
+ },
1056
+ },
1057
+
1058
+ // Size picker
1059
+ "& .ql-picker.ql-size": {
1060
+ width: "98px",
1061
+
1062
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
1063
+ content: "'Normal'",
1064
+ },
1065
+
1066
+ "& .ql-picker-label[data-value=small]::before, & .ql-picker-item[data-value=small]::before": {
1067
+ content: "'Small'",
1068
+ },
1069
+
1070
+ "& .ql-picker-label[data-value=large]::before, & .ql-picker-item[data-value=large]::before": {
1071
+ content: "'Large'",
1072
+ },
1073
+
1074
+ "& .ql-picker-label[data-value=huge]::before, & .ql-picker-item[data-value=huge]::before": {
1075
+ content: "'Huge'",
1076
+ },
1077
+
1078
+ "& .ql-picker-item[data-value=small]::before": {
1079
+ fontSize: "10px",
1080
+ },
1081
+
1082
+ "& .ql-picker-item[data-value=large]::before": {
1083
+ fontSize: "18px",
1084
+ },
1085
+
1086
+ "& .ql-picker-item[data-value=huge]::before": {
1087
+ fontSize: "32px",
1088
+ },
1089
+ },
1090
+
1091
+ // Color picker items
1092
+ "& .ql-color-picker.ql-background .ql-picker-item": {
1093
+ backgroundColor: "#fff",
1094
+ },
1095
+
1096
+ "& .ql-color-picker.ql-color .ql-picker-item": {
1097
+ backgroundColor: "#000",
1098
+ },
1099
+
1100
+ // Code block container
1101
+ "& .ql-code-block-container": {
1102
+ position: "relative",
1103
+
1104
+ "& .ql-ui": {
1105
+ right: "5px",
1106
+ top: "5px",
1107
+ },
1108
+ },
1109
+
1110
+ // Toolbar snow adjustments
1111
+ "&.ql-toolbar, & .ql-toolbar.ql-snow": {
1112
+ border: "1px solid #ccc",
1113
+ boxSizing: "border-box",
1114
+ fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif",
1115
+ padding: "8px",
1116
+
1117
+ "& .ql-formats": {
1118
+ marginRight: "15px",
1119
+ },
1120
+
1121
+ "& .ql-picker-label": {
1122
+ border: "1px solid transparent",
1123
+ },
1124
+
1125
+ "& .ql-picker-options": {
1126
+ border: "1px solid transparent",
1127
+ boxShadow: "rgba(0, 0, 0, 0.2) 0 2px 8px",
1128
+ },
1129
+
1130
+ "& .ql-picker.ql-expanded .ql-picker-label": {
1131
+ borderColor: "#ccc",
1132
+ },
1133
+
1134
+ "& .ql-picker.ql-expanded .ql-picker-options": {
1135
+ borderColor: "#ccc",
1136
+ },
1137
+
1138
+ "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover": {
1139
+ borderColor: "#000",
1140
+ },
1141
+ },
1142
+
1143
+ "& .ql-toolbar.ql-snow + .ql-container.ql-snow": {
1144
+ borderTop: 0,
1145
+ },
1146
+
1147
+ // Container snow
1148
+ "& .ql-container.ql-snow": {
1149
+ border: "1px solid #ccc",
1150
+ },
1151
+ });