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