@lets-events/react 12.2.1 → 12.2.3

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 (99) 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 +138 -1023
  5. package/dist/index.js +25 -9
  6. package/dist/index.mjs +25 -9
  7. package/package.json +1 -1
  8. package/src/components/Alert.tsx +303 -303
  9. package/src/components/Avatar.tsx +55 -55
  10. package/src/components/Badge.tsx +125 -125
  11. package/src/components/Box.tsx +3 -3
  12. package/src/components/Button/index.tsx +16 -16
  13. package/src/components/Button/styledComponents.ts +290 -288
  14. package/src/components/ButtonGroup.tsx +484 -484
  15. package/src/components/Calendar/index.tsx +146 -146
  16. package/src/components/Calendar/styledComponents.ts +250 -250
  17. package/src/components/Card.tsx +48 -48
  18. package/src/components/CheckboxGroup.tsx +176 -176
  19. package/src/components/Container.tsx +39 -39
  20. package/src/components/Drawer/index.tsx +138 -138
  21. package/src/components/Drawer/styledComponents.ts +52 -52
  22. package/src/components/Dropdown.tsx +302 -302
  23. package/src/components/Filter.tsx +164 -164
  24. package/src/components/Flex.tsx +118 -118
  25. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  26. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  27. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  28. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  29. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  30. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  31. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  32. package/src/components/FormFields/CPFFormField.tsx +78 -78
  33. package/src/components/FormFields/CalendarFormField.tsx +92 -92
  34. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  35. package/src/components/FormFields/EmailFormField.tsx +27 -27
  36. package/src/components/FormFields/Form.tsx +39 -39
  37. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  38. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  39. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  40. package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
  41. package/src/components/FormFields/RichEditorFormField.tsx +98 -98
  42. package/src/components/FormFields/SelectFormField.tsx +93 -93
  43. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  44. package/src/components/FormFields/TextAreaFormField.tsx +57 -57
  45. package/src/components/FormFields/TextFormField.tsx +112 -112
  46. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  47. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  48. package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
  49. package/src/components/FormFields/utils/validation.ts +23 -23
  50. package/src/components/Grid.tsx +137 -137
  51. package/src/components/Icon.tsx +47 -47
  52. package/src/components/MenuDropdown/index.tsx +38 -38
  53. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  54. package/src/components/Modal.tsx +90 -90
  55. package/src/components/MultiSelect/index.tsx +243 -243
  56. package/src/components/MultiSelect/styledComponents.ts +160 -158
  57. package/src/components/RadioGroup.tsx +210 -210
  58. package/src/components/RichEditor/QuillComponent.tsx +444 -431
  59. package/src/components/RichEditor/RichEditor.tsx +48 -48
  60. package/src/components/RichEditor/index.ts +2 -2
  61. package/src/components/RichEditor/styledComponents.ts +1151 -1150
  62. package/src/components/Section.tsx +33 -33
  63. package/src/components/Step.tsx +164 -164
  64. package/src/components/Switch.tsx +108 -108
  65. package/src/components/Text.tsx +38 -38
  66. package/src/components/TextField.tsx +372 -372
  67. package/src/components/TextareaField.tsx +127 -127
  68. package/src/components/TimePicker.tsx +328 -328
  69. package/src/components/Toast/components/ToastItem.tsx +41 -41
  70. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  71. package/src/components/Toast/hooks/useToast.ts +12 -12
  72. package/src/components/Toast/index.tsx +5 -5
  73. package/src/components/Toast/styles/index.ts +135 -135
  74. package/src/components/Toast/types/index.ts +46 -46
  75. package/src/components/Tooltip/index.tsx +66 -66
  76. package/src/components/Tooltip/styles.ts +77 -77
  77. package/src/hooks/useCountries.ts +41 -41
  78. package/src/hooks/useImageUpload.ts +139 -139
  79. package/src/hooks/useOnClickOutside.tsx +42 -42
  80. package/src/index.tsx +68 -68
  81. package/src/styles/index.ts +38 -38
  82. package/src/types/typographyValues.ts +178 -178
  83. package/src/utils/getNestedValue.ts +3 -3
  84. package/src/utils/states.ts +29 -29
  85. package/src/utils/uploadService.ts +180 -180
  86. package/tsconfig.json +3 -3
  87. package/tsup.config.ts +38 -38
  88. package/dist/QuillComponent-2YO26WOT.mjs +0 -458
  89. package/dist/QuillComponent-36H54CRL.mjs +0 -451
  90. package/dist/QuillComponent-A5KIFPCL.mjs +0 -438
  91. package/dist/QuillComponent-C2NXFWIZ.mjs +0 -459
  92. package/dist/QuillComponent-EIWPUIIH.mjs +0 -456
  93. package/dist/QuillComponent-FPVFLYUK.mjs +0 -448
  94. package/dist/QuillComponent-O5RSHCDS.mjs +0 -459
  95. package/dist/QuillComponent-PPWKGS74.mjs +0 -452
  96. package/dist/QuillComponent-QFVVQA6K.mjs +0 -459
  97. package/dist/QuillComponent-TLIZCM6V.mjs +0 -458
  98. package/dist/QuillComponent-ZLQ2VKPD.mjs +0 -457
  99. package/dist/chunk-TU7LKUXZ.mjs +0 -1927
@@ -1,1151 +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
- },
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
-
114
- "& h1 span, & h1, & h2, & h2 span": {
115
- lineHeight: "1.5rem",
116
- },
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%",
573
- },
574
-
575
- "& .ql-cursor": {
576
- borderLeft: "2px solid $primary500",
577
- },
578
- },
579
-
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": {
592
- backgroundColor: "$grey100",
593
- border: "1px solid $neutral300",
594
- borderBottom: "none",
595
- borderTopLeftRadius: "$sm",
596
- borderTopRightRadius: "$sm",
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
- },
709
- },
710
-
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
- },
723
- },
724
-
725
- // Snow theme
726
- "&, & *": {
727
- boxSizing: "border-box",
728
- },
729
-
730
- "& .ql-hidden": {
731
- display: "none",
732
- },
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
- },
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
+ },
1151
1152
  });