@windoc/react 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/index.d.mts +393 -0
  2. package/dist/index.d.ts +393 -0
  3. package/dist/index.js +1661 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +1582 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +39 -0
  8. package/src/styles/editor.css +1786 -0
  9. package/src/styles/images/alignment.svg +1 -0
  10. package/src/styles/images/arrow-left.svg +1 -0
  11. package/src/styles/images/arrow-right.svg +1 -0
  12. package/src/styles/images/block.svg +1 -0
  13. package/src/styles/images/bold.svg +1 -0
  14. package/src/styles/images/catalog.svg +1 -0
  15. package/src/styles/images/center.svg +1 -0
  16. package/src/styles/images/checkbox.svg +1 -0
  17. package/src/styles/images/close.svg +1 -0
  18. package/src/styles/images/codeblock.svg +1 -0
  19. package/src/styles/images/color.svg +1 -0
  20. package/src/styles/images/column.svg +4 -0
  21. package/src/styles/images/control.svg +1 -0
  22. package/src/styles/images/date.svg +1 -0
  23. package/src/styles/images/exit-fullscreen.svg +1 -0
  24. package/src/styles/images/format.svg +1 -0
  25. package/src/styles/images/highlight.svg +1 -0
  26. package/src/styles/images/hyperlink.svg +1 -0
  27. package/src/styles/images/image.svg +1 -0
  28. package/src/styles/images/insert-element.svg +5 -0
  29. package/src/styles/images/italic.svg +1 -0
  30. package/src/styles/images/justify.svg +7 -0
  31. package/src/styles/images/latex.svg +1 -0
  32. package/src/styles/images/left.svg +1 -0
  33. package/src/styles/images/line-dash-dot-dot.svg +1 -0
  34. package/src/styles/images/line-dash-dot.svg +1 -0
  35. package/src/styles/images/line-dash-large-gap.svg +1 -0
  36. package/src/styles/images/line-dash-small-gap.svg +1 -0
  37. package/src/styles/images/line-dot.svg +1 -0
  38. package/src/styles/images/line-double.svg +1 -0
  39. package/src/styles/images/line-height.svg +8 -0
  40. package/src/styles/images/line-single.svg +1 -0
  41. package/src/styles/images/line-wavy.svg +1 -0
  42. package/src/styles/images/list.svg +1 -0
  43. package/src/styles/images/option.svg +1 -0
  44. package/src/styles/images/page-break.svg +1 -0
  45. package/src/styles/images/page-mode.svg +1 -0
  46. package/src/styles/images/page-scale-add.svg +1 -0
  47. package/src/styles/images/page-scale-minus.svg +1 -0
  48. package/src/styles/images/painter.svg +1 -0
  49. package/src/styles/images/paper-direction.svg +1 -0
  50. package/src/styles/images/paper-margin.svg +1 -0
  51. package/src/styles/images/paper-size.svg +1 -0
  52. package/src/styles/images/print.svg +1 -0
  53. package/src/styles/images/radio.svg +4 -0
  54. package/src/styles/images/redo.svg +1 -0
  55. package/src/styles/images/request-fullscreen.svg +1 -0
  56. package/src/styles/images/right.svg +1 -0
  57. package/src/styles/images/row-margin.svg +1 -0
  58. package/src/styles/images/search.svg +1 -0
  59. package/src/styles/images/separator.svg +1 -0
  60. package/src/styles/images/signature-undo.svg +1 -0
  61. package/src/styles/images/signature.svg +1 -0
  62. package/src/styles/images/size-add.svg +1 -0
  63. package/src/styles/images/size-minus.svg +1 -0
  64. package/src/styles/images/strikeout.svg +1 -0
  65. package/src/styles/images/subscript.svg +1 -0
  66. package/src/styles/images/superscript.svg +1 -0
  67. package/src/styles/images/table.svg +1 -0
  68. package/src/styles/images/title.svg +1 -0
  69. package/src/styles/images/trash.svg +1 -0
  70. package/src/styles/images/underline.svg +1 -0
  71. package/src/styles/images/undo.svg +1 -0
  72. package/src/styles/images/watermark.svg +1 -0
  73. package/src/styles/images/word-tool.svg +1 -0
@@ -0,0 +1,1786 @@
1
+ ::-webkit-scrollbar {
2
+ height: 16px;
3
+ width: 16px;
4
+ overflow: visible;
5
+ }
6
+
7
+ ::-webkit-scrollbar-button {
8
+ width: 0;
9
+ height: 0;
10
+ }
11
+
12
+ ::-webkit-scrollbar-corner {
13
+ background: transparent;
14
+ }
15
+
16
+ ::-webkit-scrollbar-thumb {
17
+ background-color: #ddd;
18
+ background-clip: padding-box;
19
+ border: 4px solid #f2f4f7;
20
+ border-radius: 8px;
21
+ min-height: 24px;
22
+ }
23
+
24
+ ::-webkit-scrollbar-thumb:hover {
25
+ background-color: #c9c9c9;
26
+ }
27
+
28
+ ::-webkit-scrollbar-track {
29
+ background: #f2f4f7;
30
+ background-clip: padding-box;
31
+ }
32
+
33
+ .menu *,
34
+ .editor *,
35
+ .footer[editor-component="footer"] *,
36
+ .catalog *,
37
+ .comment * {
38
+ margin: 0;
39
+ padding: 0;
40
+ }
41
+
42
+ body {
43
+ background-color: #f2f4f7;
44
+ }
45
+
46
+ ul {
47
+ list-style: none;
48
+ }
49
+
50
+ .menu {
51
+ width: 100%;
52
+ height: 60px;
53
+ top: 0;
54
+ z-index: 9;
55
+ position: fixed;
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ background: #f2f4f7;
60
+ box-shadow: 0 2px 4px 0 transparent;
61
+ font-family: var(--font-inter), Inter, sans-serif;
62
+ }
63
+
64
+ .menu-divider {
65
+ width: 1px;
66
+ height: 16px;
67
+ margin: 0 8px;
68
+ display: inline-block;
69
+ background-color: #cfd2d8;
70
+ }
71
+
72
+ .menu-item {
73
+ height: 24px;
74
+ display: flex;
75
+ align-items: center;
76
+ position: relative;
77
+ }
78
+
79
+ .menu-item > div {
80
+ width: 28px;
81
+ height: 28px;
82
+ cursor: pointer;
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ margin: 0 2px;
87
+ border: 1px solid #d0d5dd;
88
+ border-radius: 8px;
89
+ background: #fff;
90
+ color: #475467;
91
+ transition: all 0.2s;
92
+ }
93
+
94
+ .menu-item > div:hover {
95
+ background: #f2f4f7;
96
+ border-color: #667085;
97
+ }
98
+
99
+ .menu-item > div.active {
100
+ border-color: #3b82f6;
101
+ background: #eff6ff;
102
+ color: #3b82f6;
103
+ }
104
+
105
+ .menu-item > div.disabled {
106
+ opacity: 0.4;
107
+ cursor: not-allowed;
108
+ pointer-events: none;
109
+ }
110
+
111
+ .menu-item i {
112
+ width: 16px;
113
+ height: 16px;
114
+ display: inline-block;
115
+ background-repeat: no-repeat;
116
+ background-size: 100% 100%;
117
+ }
118
+
119
+ .menu-item svg {
120
+ flex-shrink: 0;
121
+ }
122
+
123
+ .menu-item > div > span {
124
+ width: 14px;
125
+ height: 3px;
126
+ display: inline-block;
127
+ border-radius: 1px;
128
+ }
129
+
130
+ .menu-item .select {
131
+ border: none;
132
+ font-size: 12px;
133
+ line-height: 28px;
134
+ user-select: none;
135
+ font-family: var(--font-inter), Inter, sans-serif;
136
+ }
137
+
138
+ .menu-item .select::after {
139
+ position: absolute;
140
+ content: "";
141
+ top: 12px;
142
+ width: 0;
143
+ height: 0;
144
+ right: 6px;
145
+ border-color: #667085 transparent transparent;
146
+ border-style: solid solid none;
147
+ border-width: 3px 3px 0;
148
+ }
149
+
150
+ .menu-item .options {
151
+ width: 70px;
152
+ position: absolute;
153
+ left: 0;
154
+ top: 32px;
155
+ padding: 6px;
156
+ background: #fff;
157
+ font-size: 12px;
158
+ font-family: var(--font-inter), Inter, sans-serif;
159
+ box-shadow: 0 4px 12px 0 rgb(56 56 56 / 15%);
160
+ border: 1px solid #e2e6ed;
161
+ border-radius: 8px;
162
+ display: none;
163
+ z-index: 99;
164
+ }
165
+
166
+ .menu-item .options.visible {
167
+ display: block;
168
+ }
169
+
170
+ .menu-item .options li {
171
+ padding: 5px 8px;
172
+ margin: 2px 0;
173
+ user-select: none;
174
+ transition: all 0.2s;
175
+ border-radius: 4px;
176
+ cursor: pointer;
177
+ }
178
+
179
+ .menu-item .options li:hover {
180
+ background-color: #f2f4f7;
181
+ }
182
+
183
+ .menu-item .options li.active {
184
+ background-color: #eff6ff;
185
+ color: #3b82f6;
186
+ }
187
+
188
+ .menu-item .menu-item__font {
189
+ width: auto;
190
+ min-width: 65px;
191
+ height: 28px;
192
+ position: relative;
193
+ border: 1px solid #d0d5dd;
194
+ border-radius: 8px;
195
+ background: #fff;
196
+ padding: 0 16px 0 8px;
197
+ margin: 0 2px;
198
+ cursor: pointer;
199
+ transition: all 0.2s;
200
+ }
201
+
202
+ .menu-item .menu-item__font:hover {
203
+ background: #f2f4f7;
204
+ border-color: #667085;
205
+ }
206
+
207
+ .menu-item .menu-item__size {
208
+ width: auto;
209
+ min-width: 45px;
210
+ height: 28px;
211
+ text-align: center;
212
+ position: relative;
213
+ border: 1px solid #d0d5dd;
214
+ border-radius: 8px;
215
+ background: #fff;
216
+ padding: 0 16px 0 8px;
217
+ margin: 0 2px;
218
+ cursor: pointer;
219
+ transition: all 0.2s;
220
+ }
221
+
222
+ .menu-item .menu-item__size:hover {
223
+ background: #f2f4f7;
224
+ border-color: #667085;
225
+ }
226
+
227
+ .menu-item__font .select,
228
+ .menu-item__size .select {
229
+ width: 100%;
230
+ height: 100%;
231
+ }
232
+
233
+ .menu-item .menu-item__font .options {
234
+ width: 150px;
235
+ }
236
+
237
+ .menu-item .menu-item__size .options {
238
+ width: 60px;
239
+ }
240
+
241
+ .menu-item__undo.no-allow,
242
+ .menu-item__redo.no-allow,
243
+ .menu-item > div.disable {
244
+ color: #c0c4cc;
245
+ cursor: not-allowed;
246
+ opacity: 0.4;
247
+ pointer-events: none;
248
+ border-color: #e2e6ed;
249
+ }
250
+
251
+ .menu-item__undo i {
252
+ background-image: url("./images/undo.svg");
253
+ }
254
+
255
+ .menu-item__redo i {
256
+ background-image: url("./images/redo.svg");
257
+ }
258
+
259
+ .menu-item__painter i {
260
+ background-image: url("./images/painter.svg");
261
+ }
262
+
263
+ .menu-item__format i {
264
+ background-image: url("./images/format.svg");
265
+ }
266
+
267
+ .menu-item__size-add i {
268
+ background-image: url("./images/size-add.svg");
269
+ }
270
+
271
+ .menu-item__size-minus i {
272
+ background-image: url("./images/size-minus.svg");
273
+ }
274
+
275
+ .menu-item__bold i {
276
+ background-image: url("./images/bold.svg");
277
+ }
278
+
279
+ .menu-item__italic i {
280
+ background-image: url("./images/italic.svg");
281
+ }
282
+
283
+ .menu-item .menu-item__underline {
284
+ width: auto;
285
+ min-width: 38px;
286
+ height: 28px;
287
+ position: relative;
288
+ border: 1px solid #d0d5dd;
289
+ border-radius: 8px;
290
+ background: #fff;
291
+ padding: 0 4px;
292
+ margin: 0 2px;
293
+ display: flex;
294
+ align-items: center;
295
+ transition: all 0.2s;
296
+ }
297
+
298
+ .menu-item .menu-item__underline svg {
299
+ flex-shrink: 0;
300
+ width: 16px;
301
+ height: 16px;
302
+ }
303
+
304
+ .menu-item .menu-item__underline:hover {
305
+ background: #f2f4f7;
306
+ border-color: #667085;
307
+ }
308
+
309
+ .menu-item__underline > i {
310
+ flex-shrink: 0;
311
+ background-image: url("./images/underline.svg");
312
+ }
313
+
314
+ .menu-item__underline .select {
315
+ width: 100%;
316
+ height: 100%;
317
+ }
318
+
319
+ .menu-item .menu-item__underline .options {
320
+ width: 128px;
321
+ }
322
+
323
+ .menu-item .menu-item__underline li {
324
+ padding: 1px 5px;
325
+ }
326
+
327
+ .menu-item__underline li i {
328
+ pointer-events: none;
329
+ }
330
+
331
+ .menu-item__underline li[data-decoration-style="solid"] {
332
+ background-image: url("./images/line-single.svg");
333
+ }
334
+
335
+ .menu-item__underline li[data-decoration-style="double"] {
336
+ background-image: url("./images/line-double.svg");
337
+ }
338
+
339
+ .menu-item__underline li[data-decoration-style="dashed"] {
340
+ background-image: url("./images/line-dash-small-gap.svg");
341
+ }
342
+
343
+ .menu-item__underline li[data-decoration-style="dotted"] {
344
+ background-image: url("./images/line-dot.svg");
345
+ }
346
+
347
+ .menu-item__underline li[data-decoration-style="wavy"] {
348
+ background-image: url("./images/line-wavy.svg");
349
+ }
350
+
351
+ .menu-item__strikeout i {
352
+ background-image: url("./images/strikeout.svg");
353
+ }
354
+
355
+ .menu-item__superscript i {
356
+ background-image: url("./images/superscript.svg");
357
+ }
358
+
359
+ .menu-item__subscript i {
360
+ background-image: url("./images/subscript.svg");
361
+ }
362
+
363
+ .menu-item__color,
364
+ .menu-item__highlight {
365
+ display: flex;
366
+ flex-direction: column;
367
+ align-items: center;
368
+ justify-content: center;
369
+ width: 28px;
370
+ height: 28px;
371
+ border: 1px solid #d0d5dd;
372
+ border-radius: 8px;
373
+ background: #fff;
374
+ color: #475467;
375
+ margin: 0 2px;
376
+ cursor: pointer;
377
+ transition: all 0.2s;
378
+ position: relative;
379
+ }
380
+
381
+ .menu-item__color:hover,
382
+ .menu-item__highlight:hover {
383
+ background: #f2f4f7;
384
+ border-color: #667085;
385
+ }
386
+
387
+ .menu-item__color #color,
388
+ .menu-item__highlight #highlight {
389
+ width: 1px;
390
+ height: 1px;
391
+ visibility: hidden;
392
+ outline: none;
393
+ appearance: none;
394
+ }
395
+
396
+ .menu-item__color i {
397
+ background-image: url("./images/color.svg");
398
+ }
399
+
400
+ .menu-item__color span {
401
+ background-color: #000000;
402
+ }
403
+
404
+ .menu-item__highlight i {
405
+ background-image: url("./images/highlight.svg");
406
+ }
407
+
408
+ .menu-item__highlight span {
409
+ background-color: #ffff00;
410
+ }
411
+
412
+ .menu-item .menu-item__title {
413
+ width: auto;
414
+ min-width: 60px;
415
+ height: 28px;
416
+ position: relative;
417
+ border: 1px solid #d0d5dd;
418
+ border-radius: 8px;
419
+ background: #fff;
420
+ padding: 0 16px 0 8px;
421
+ margin: 0 2px;
422
+ cursor: pointer;
423
+ display: flex;
424
+ align-items: center;
425
+ transition: all 0.2s;
426
+ }
427
+
428
+ .menu-item .menu-item__title:hover {
429
+ background: #f2f4f7;
430
+ border-color: #667085;
431
+ }
432
+
433
+ .menu-item__title .select {
434
+ width: 100%;
435
+ height: 100%;
436
+ }
437
+
438
+ .menu-item__title .options {
439
+ width: 100px;
440
+ }
441
+
442
+ .menu-item__left i {
443
+ background-image: url("./images/left.svg");
444
+ }
445
+
446
+ .menu-item__center i {
447
+ background-image: url("./images/center.svg");
448
+ }
449
+
450
+ .menu-item__right i {
451
+ background-image: url("./images/right.svg");
452
+ }
453
+
454
+ .menu-item__alignment i {
455
+ background-image: url("./images/alignment.svg");
456
+ }
457
+
458
+ .menu-item__justify i {
459
+ background-image: url("./images/justify.svg");
460
+ }
461
+
462
+ .menu-item__row-margin {
463
+ position: relative;
464
+ }
465
+
466
+ .menu-item__row-margin i {
467
+ background-image: url("./images/row-margin.svg");
468
+ }
469
+
470
+ .menu-item__list {
471
+ position: relative;
472
+ width: 28px;
473
+ height: 28px;
474
+ display: flex;
475
+ align-items: center;
476
+ justify-content: center;
477
+ border: 1px solid #d0d5dd;
478
+ border-radius: 8px;
479
+ background: #fff;
480
+ color: #475467;
481
+ margin: 0 2px;
482
+ cursor: pointer;
483
+ transition: all 0.2s;
484
+ }
485
+
486
+ .menu-item__list:hover {
487
+ background: #f2f4f7;
488
+ border-color: #667085;
489
+ }
490
+
491
+ .menu-item__list i {
492
+ background-image: url("./images/list.svg");
493
+ }
494
+
495
+ .menu-item__list .options {
496
+ width: 110px;
497
+ }
498
+
499
+ .menu-item__list .options > ul > li * {
500
+ pointer-events: none;
501
+ }
502
+
503
+ .menu-item__list .options > ul > li li {
504
+ margin-left: 18px;
505
+ }
506
+
507
+ .menu-item__list .options > ul > li[data-list-style="checkbox"] li::marker {
508
+ font-size: 11px;
509
+ }
510
+
511
+ .menu-item__image i {
512
+ background-image: url("./images/image.svg");
513
+ }
514
+
515
+ .menu-item__image input {
516
+ display: none;
517
+ }
518
+
519
+ .menu-item__table {
520
+ position: relative;
521
+ width: 28px;
522
+ height: 28px;
523
+ display: flex;
524
+ align-items: center;
525
+ justify-content: center;
526
+ border: 1px solid #d0d5dd;
527
+ border-radius: 8px;
528
+ background: #fff;
529
+ color: #475467;
530
+ margin: 0 2px;
531
+ cursor: pointer;
532
+ transition: all 0.2s;
533
+ }
534
+
535
+ .menu-item__table:hover {
536
+ background: #f2f4f7;
537
+ border-color: #667085;
538
+ }
539
+
540
+ .menu-item__table i {
541
+ background-image: url("./images/table.svg");
542
+ }
543
+
544
+ .menu-item .menu-item__table__collapse {
545
+ width: 270px;
546
+ height: 310px;
547
+ background: #fff;
548
+ box-shadow: 0 4px 12px 0 rgb(56 56 56 / 15%);
549
+ border: 1px solid #e2e6ed;
550
+ box-sizing: border-box;
551
+ border-radius: 8px;
552
+ position: absolute;
553
+ display: none;
554
+ z-index: 99;
555
+ top: 32px;
556
+ left: 0;
557
+ padding: 14px 27px;
558
+ cursor: auto;
559
+ }
560
+
561
+ .menu-item .menu-item__table__collapse .table-close {
562
+ position: absolute;
563
+ right: 10px;
564
+ top: 5px;
565
+ cursor: pointer;
566
+ }
567
+
568
+ .menu-item .menu-item__table__collapse .table-close:hover {
569
+ color: #7d7e80;
570
+ }
571
+
572
+ .menu-item .menu-item__table__collapse:hover {
573
+ background: #fff;
574
+ }
575
+
576
+ .menu-item .menu-item__table__collapse .table-title {
577
+ display: flex;
578
+ justify-content: flex-start;
579
+ padding-bottom: 5px;
580
+ border-bottom: 1px solid #e2e6ed;
581
+ }
582
+
583
+ .table-title span {
584
+ font-size: 12px;
585
+ color: #3d4757;
586
+ display: inline;
587
+ margin: 0;
588
+ }
589
+
590
+ .table-panel {
591
+ cursor: pointer;
592
+ }
593
+
594
+ .table-panel .table-row {
595
+ display: flex;
596
+ flex-wrap: nowrap;
597
+ margin-top: 10px;
598
+ pointer-events: auto;
599
+ }
600
+
601
+ .table-panel .table-cel {
602
+ width: 16px;
603
+ height: 16px;
604
+ box-sizing: border-box;
605
+ border: 1px solid #e2e6ed;
606
+ background: #fff;
607
+ position: relative;
608
+ margin-right: 6px;
609
+ pointer-events: auto;
610
+ }
611
+
612
+ .table-panel .table-cel.active {
613
+ border: 1px solid rgba(73, 145, 242, 0.2);
614
+ background: rgba(73, 145, 242, 0.15);
615
+ }
616
+
617
+ .table-panel .table-row .table-cel:last-child {
618
+ margin-right: 0;
619
+ }
620
+
621
+ .menu-item__hyperlink i {
622
+ background-image: url("./images/hyperlink.svg");
623
+ }
624
+
625
+ .menu-item__separator {
626
+ position: relative;
627
+ }
628
+
629
+ .menu-item__separator > i {
630
+ background-image: url("./images/separator.svg");
631
+ }
632
+
633
+ .menu-item .menu-item__separator .options {
634
+ width: 128px;
635
+ }
636
+
637
+ .menu-item .menu-item__separator li {
638
+ padding: 1px 5px;
639
+ }
640
+
641
+ .menu-item__separator li i {
642
+ pointer-events: none;
643
+ }
644
+
645
+ .menu-item__separator li[data-separator="0,0"] {
646
+ background-image: url("./images/line-single.svg");
647
+ }
648
+
649
+ .menu-item__separator li[data-separator="1,1"] {
650
+ background-image: url("./images/line-dot.svg");
651
+ }
652
+
653
+ .menu-item__separator li[data-separator="3,1"] {
654
+ background-image: url("./images/line-dash-small-gap.svg");
655
+ }
656
+
657
+ .menu-item__separator li[data-separator="4,4"] {
658
+ background-image: url("./images/line-dash-large-gap.svg");
659
+ }
660
+
661
+ .menu-item__separator li[data-separator="7,3,3,3"] {
662
+ background-image: url("./images/line-dash-dot.svg");
663
+ }
664
+
665
+ .menu-item__separator li[data-separator="6,2,2,2,2,2"] {
666
+ background-image: url("./images/line-dash-dot-dot.svg");
667
+ }
668
+
669
+ .menu-item__insert-element > i {
670
+ background-image: url("./images/insert-element.svg");
671
+ }
672
+
673
+ .menu-item__insert-element {
674
+ position: relative;
675
+ }
676
+
677
+ .menu-item .menu-item__insert-element .options {
678
+ width: 160px;
679
+ }
680
+
681
+ .menu-item .options li.disabled {
682
+ opacity: 0.4;
683
+ cursor: not-allowed;
684
+ }
685
+
686
+ .menu-item__codeblock i {
687
+ background-image: url("./images/codeblock.svg");
688
+ }
689
+
690
+ .menu-item__page-break {
691
+ position: relative;
692
+ }
693
+
694
+ .menu-item__page-break i {
695
+ background-image: url("./images/page-break.svg");
696
+ }
697
+
698
+ .menu-item .menu-item__page-break .options {
699
+ width: 120px;
700
+ }
701
+
702
+ .menu-item__control {
703
+ position: relative;
704
+ }
705
+
706
+ .menu-item__control i {
707
+ background-image: url("./images/control.svg");
708
+ }
709
+
710
+ .menu-item__checkbox i {
711
+ background-image: url("./images/checkbox.svg");
712
+ }
713
+
714
+ .menu-item__radio i {
715
+ background-image: url("./images/radio.svg");
716
+ }
717
+
718
+ .menu-item__latex i {
719
+ background-image: url("./images/latex.svg");
720
+ }
721
+
722
+ .menu-item__date {
723
+ position: relative;
724
+ }
725
+
726
+ .menu-item__date i {
727
+ background-image: url("./images/date.svg");
728
+ }
729
+
730
+ .menu-item__date .options {
731
+ width: 160px;
732
+ }
733
+
734
+ .menu-item__block i {
735
+ background-image: url("./images/block.svg");
736
+ }
737
+
738
+ .menu-item .menu-item__control .options {
739
+ width: 55px;
740
+ }
741
+
742
+ .menu-item__search {
743
+ position: relative;
744
+ }
745
+
746
+ .menu-item__search i {
747
+ background-image: url("./images/search.svg");
748
+ }
749
+
750
+ .menu-item .menu-item__search__collapse {
751
+ width: 260px;
752
+ height: 108px;
753
+ box-sizing: border-box;
754
+ position: absolute;
755
+ display: none;
756
+ z-index: 99;
757
+ top: 25px;
758
+ left: 0;
759
+ background: #ffffff;
760
+ box-shadow: 0px 5px 5px #e3dfdf;
761
+ }
762
+
763
+ .menu-item .menu-item__search__collapse:hover {
764
+ background: #ffffff;
765
+ }
766
+
767
+ .menu-item .menu-item__search__collapse > div {
768
+ width: 250px;
769
+ height: 36px;
770
+ padding: 0 5px;
771
+ line-height: 36px;
772
+ display: flex;
773
+ align-items: center;
774
+ justify-content: space-between;
775
+ border-radius: 4px;
776
+ }
777
+
778
+ .menu-item .menu-item__search__collapse > div input[type="text"] {
779
+ width: 205px;
780
+ height: 27px;
781
+ appearance: none;
782
+ background-color: #fff;
783
+ background-image: none;
784
+ border-radius: 4px;
785
+ border: 1px solid #ebebeb;
786
+ box-sizing: border-box;
787
+ color: #606266;
788
+ display: inline-block;
789
+ line-height: 27px;
790
+ outline: none;
791
+ padding: 0 5px;
792
+ }
793
+
794
+ .menu-item .menu-item__search__collapse > div span {
795
+ height: 100%;
796
+ color: #dcdfe6;
797
+ font-size: 25px;
798
+ display: inline-block;
799
+ border: 0;
800
+ padding: 0 10px;
801
+ }
802
+
803
+ .menu-item .menu-item__search__collapse__replace button {
804
+ display: inline-block;
805
+ border: 1px solid #e2e6ed;
806
+ border-radius: 2px;
807
+ background: #fff;
808
+ line-height: 22px;
809
+ padding: 0 6px;
810
+ white-space: nowrap;
811
+ margin-left: 4px;
812
+ cursor: pointer;
813
+ font-size: 12px;
814
+ }
815
+
816
+ .menu-item .menu-item__search__collapse__replace button:hover {
817
+ background: rgba(25, 55, 88, 0.04);
818
+ }
819
+
820
+ .menu-item .menu-item__search__collapse__search {
821
+ position: relative;
822
+ }
823
+
824
+ .menu-item .menu-item__search__collapse__search label {
825
+ right: 110px;
826
+ font-size: 12px;
827
+ color: #3d4757;
828
+ position: absolute;
829
+ }
830
+
831
+ .menu-item .menu-item__search__collapse__search > input {
832
+ padding: 5px 90px 5px 5px !important;
833
+ }
834
+
835
+ .menu-item .menu-item__search__collapse__search > div {
836
+ width: 28px;
837
+ height: 27px;
838
+ display: flex;
839
+ justify-content: center;
840
+ align-items: center;
841
+ position: absolute;
842
+ border-left: 1px solid #e2e6ed;
843
+ transition: all 0.5s;
844
+ }
845
+
846
+ .menu-item .menu-item__search__collapse__search > div:hover {
847
+ background-color: rgba(25, 55, 88, 0.04);
848
+ }
849
+
850
+ .menu-item .menu-item__search__collapse__search i {
851
+ width: 6px;
852
+ height: 8px;
853
+ transform: translateY(1px);
854
+ }
855
+
856
+ .menu-item .menu-item__search__collapse__search .arrow-left {
857
+ right: 76px;
858
+ }
859
+
860
+ .menu-item .menu-item__search__collapse__search .arrow-left i {
861
+ background: url(./images/arrow-left.svg) no-repeat;
862
+ }
863
+
864
+ .menu-item .menu-item__search__collapse__search .arrow-right {
865
+ right: 48px;
866
+ }
867
+
868
+ .menu-item .menu-item__search__collapse__search .arrow-right i {
869
+ background: url(./images/arrow-right.svg) no-repeat;
870
+ }
871
+
872
+ .menu-item__search__collapse__option {
873
+ justify-content: flex-start !important;
874
+ }
875
+
876
+ .menu-item .menu-item__search__collapse__option .search-option-item {
877
+ display: flex;
878
+ align-items: center;
879
+ margin-right: 10px;
880
+ }
881
+
882
+ .menu-item .menu-item__search__collapse__option label {
883
+ font-size: 12px;
884
+ margin-left: 4px;
885
+ cursor: pointer;
886
+ }
887
+
888
+ .menu-item__print i {
889
+ background-image: url("./images/print.svg");
890
+ }
891
+
892
+ .menu-item .menu-item__column {
893
+ width: auto;
894
+ min-width: 65px;
895
+ height: 28px;
896
+ position: relative;
897
+ display: flex;
898
+ align-items: center;
899
+ border: 1px solid #d0d5dd;
900
+ border-radius: 8px;
901
+ background: #fff;
902
+ color: #475467;
903
+ padding: 0 16px 0 8px;
904
+ margin: 0 2px;
905
+ cursor: pointer;
906
+ transition: all 0.2s;
907
+ }
908
+
909
+ .menu-item .menu-item__column:hover {
910
+ background: #f2f4f7;
911
+ border-color: #667085;
912
+ }
913
+
914
+ .menu-item__column .select {
915
+ width: 100%;
916
+ height: 100%;
917
+ }
918
+
919
+ .menu-item .menu-item__column .options {
920
+ width: 130px;
921
+ }
922
+
923
+ .option-divider {
924
+ height: 1px;
925
+ background: #e5e7eb;
926
+ margin: 4px 0;
927
+ }
928
+
929
+ .option-row {
930
+ display: flex;
931
+ align-items: center;
932
+ justify-content: space-between;
933
+ padding: 4px 6px;
934
+ font-size: 12px;
935
+ }
936
+
937
+ .option-row label {
938
+ color: #667085;
939
+ white-space: nowrap;
940
+ }
941
+
942
+ .option-row input[type="number"] {
943
+ width: 50px;
944
+ height: 22px;
945
+ border: 1px solid #d0d5dd;
946
+ border-radius: 4px;
947
+ padding: 0 4px;
948
+ font-size: 12px;
949
+ text-align: center;
950
+ }
951
+
952
+ .menu-item__line-height {
953
+ width: auto;
954
+ min-width: 40px;
955
+ height: 28px;
956
+ position: relative;
957
+ display: flex;
958
+ align-items: center;
959
+ border: 1px solid #d0d5dd;
960
+ border-radius: 8px;
961
+ background: #fff;
962
+ color: #475467;
963
+ padding: 0 16px 0 8px;
964
+ margin: 0 2px;
965
+ cursor: pointer;
966
+ transition: all 0.2s;
967
+ }
968
+
969
+ .menu-item__line-height:hover {
970
+ background: #f2f4f7;
971
+ border-color: #667085;
972
+ }
973
+
974
+ .menu-item__line-height .select {
975
+ width: 100%;
976
+ height: 100%;
977
+ }
978
+
979
+ .menu-item__line-height .options {
980
+ width: 60px;
981
+ }
982
+
983
+ .catalog {
984
+ width: 250px;
985
+ position: fixed;
986
+ left: 0;
987
+ bottom: 0;
988
+ top: 100px;
989
+ padding: 0 20px 40px 20px;
990
+ }
991
+
992
+ .catalog .catalog__header {
993
+ height: 48px;
994
+ display: flex;
995
+ align-items: center;
996
+ justify-content: space-between;
997
+ border-bottom: 1px solid #e2e6ed;
998
+ }
999
+
1000
+ .catalog .catalog__header span {
1001
+ color: #3d4757;
1002
+ font-size: 14px;
1003
+ font-weight: bold;
1004
+ }
1005
+
1006
+ .catalog .catalog__header i {
1007
+ width: 16px;
1008
+ height: 16px;
1009
+ cursor: pointer;
1010
+ display: inline-block;
1011
+ background: url(./images/close.svg) no-repeat;
1012
+ transition: all 0.2s;
1013
+ }
1014
+
1015
+ .catalog .catalog__header > div:hover {
1016
+ background: rgba(235, 238, 241);
1017
+ }
1018
+
1019
+ .catalog__main {
1020
+ height: calc(100% - 60px);
1021
+ padding: 10px 0;
1022
+ overflow-y: auto;
1023
+ overflow-x: hidden;
1024
+ }
1025
+
1026
+ .catalog__main .catalog-item {
1027
+ width: 100%;
1028
+ padding-left: 10px;
1029
+ box-sizing: border-box;
1030
+ }
1031
+
1032
+ .catalog__main > .catalog-item {
1033
+ padding-left: 0;
1034
+ }
1035
+
1036
+ .catalog__main .catalog-item .catalog-item__content {
1037
+ width: 100%;
1038
+ overflow: hidden;
1039
+ white-space: nowrap;
1040
+ text-overflow: ellipsis;
1041
+ }
1042
+
1043
+ .catalog__main .catalog-item .catalog-item__content:hover > span {
1044
+ color: #4991f2;
1045
+ }
1046
+
1047
+ .catalog__main .catalog-item .catalog-item__content span {
1048
+ color: #3d4757;
1049
+ line-height: 30px;
1050
+ font-size: 12px;
1051
+ white-space: nowrap;
1052
+ cursor: pointer;
1053
+ user-select: none;
1054
+ }
1055
+
1056
+ .editor > div {
1057
+ margin: 80px auto;
1058
+ }
1059
+
1060
+ .ce-page-container canvas {
1061
+ box-shadow: none;
1062
+ border: 1px solid #c4c7c5;
1063
+ }
1064
+
1065
+ .comment {
1066
+ width: 250px;
1067
+ height: 650px;
1068
+ position: fixed;
1069
+ transform: translateX(420px);
1070
+ top: 200px;
1071
+ left: 50%;
1072
+ overflow-y: auto;
1073
+ }
1074
+
1075
+ .comment-item {
1076
+ background: #ffffff;
1077
+ border: 1px solid #e2e6ed;
1078
+ position: relative;
1079
+ border-radius: 8px;
1080
+ padding: 15px;
1081
+ font-size: 14px;
1082
+ margin-bottom: 20px;
1083
+ cursor: pointer;
1084
+ transition: all 0.5s;
1085
+ }
1086
+
1087
+ .comment-item:hover {
1088
+ border-color: #c0c6cf;
1089
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
1090
+ }
1091
+
1092
+ .comment-item.active {
1093
+ border-color: #e99d00;
1094
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
1095
+ }
1096
+
1097
+ .comment-item__title {
1098
+ height: 22px;
1099
+ position: relative;
1100
+ display: flex;
1101
+ align-items: center;
1102
+ color: #c1c6ce;
1103
+ }
1104
+
1105
+ .comment-item__title span:first-child {
1106
+ background-color: #dbdbdb;
1107
+ width: 4px;
1108
+ height: 16px;
1109
+ margin-right: 5px;
1110
+ display: inline-block;
1111
+ border-radius: 999px;
1112
+ }
1113
+
1114
+ .comment-item__title span:nth-child(2) {
1115
+ width: 200px;
1116
+ overflow: hidden;
1117
+ white-space: nowrap;
1118
+ text-overflow: ellipsis;
1119
+ }
1120
+
1121
+ .comment-item__title i {
1122
+ width: 16px;
1123
+ height: 16px;
1124
+ cursor: pointer;
1125
+ position: absolute;
1126
+ right: -8px;
1127
+ top: -8px;
1128
+ background: url(./images/close.svg) no-repeat;
1129
+ }
1130
+
1131
+ .comment-item__title i:hover {
1132
+ opacity: 0.6;
1133
+ }
1134
+
1135
+ .comment-item__info {
1136
+ height: 28px;
1137
+ display: flex;
1138
+ align-items: center;
1139
+ justify-content: space-between;
1140
+ }
1141
+
1142
+ .comment-item__info > span:first-child {
1143
+ font-weight: 600;
1144
+ }
1145
+
1146
+ .comment-item__info > span:last-child {
1147
+ color: #c1c6ce;
1148
+ }
1149
+
1150
+ .comment-item__content {
1151
+ line-height: 22px;
1152
+ }
1153
+
1154
+ .footer {
1155
+ width: 100%;
1156
+ height: 30px;
1157
+ display: flex;
1158
+ align-items: center;
1159
+ justify-content: space-between;
1160
+ background: #f2f4f7;
1161
+ z-index: 9;
1162
+ position: fixed;
1163
+ bottom: 0;
1164
+ left: 0;
1165
+ font-size: 12px;
1166
+ padding: 0 4px 0 20px;
1167
+ box-sizing: border-box;
1168
+ }
1169
+
1170
+ .footer > div:first-child {
1171
+ display: flex;
1172
+ align-items: center;
1173
+ }
1174
+
1175
+ .footer .catalog-mode {
1176
+ padding: 1px;
1177
+ position: relative;
1178
+ }
1179
+
1180
+ .footer .catalog-mode i {
1181
+ width: 16px;
1182
+ height: 16px;
1183
+ margin-right: 5px;
1184
+ cursor: pointer;
1185
+ display: inline-block;
1186
+ background-image: url("./images/catalog.svg");
1187
+ }
1188
+
1189
+ .footer .page-mode {
1190
+ padding: 1px;
1191
+ position: relative;
1192
+ }
1193
+
1194
+ .footer .page-mode i {
1195
+ width: 16px;
1196
+ height: 16px;
1197
+ margin-right: 5px;
1198
+ cursor: pointer;
1199
+ display: inline-block;
1200
+ background-image: url("./images/page-mode.svg");
1201
+ }
1202
+
1203
+ .footer .options {
1204
+ width: auto;
1205
+ min-width: 70px;
1206
+ white-space: nowrap;
1207
+ position: absolute;
1208
+ left: 0;
1209
+ bottom: 25px;
1210
+ padding: 6px;
1211
+ background: #fff;
1212
+ font-size: 12px;
1213
+ font-family: var(--font-inter), Inter, sans-serif;
1214
+ box-shadow: 0 4px 12px 0 rgb(56 56 56 / 15%);
1215
+ border: 1px solid #e2e6ed;
1216
+ border-radius: 8px;
1217
+ display: none;
1218
+ z-index: 99;
1219
+ }
1220
+
1221
+ .footer .options.visible {
1222
+ display: block;
1223
+ }
1224
+
1225
+ .footer .options li {
1226
+ padding: 5px 8px;
1227
+ margin: 2px 0;
1228
+ user-select: none;
1229
+ transition: all 0.15s;
1230
+ text-align: center;
1231
+ cursor: pointer;
1232
+ border-radius: 4px;
1233
+ }
1234
+
1235
+ .footer .options li:hover {
1236
+ background-color: #f2f4f7;
1237
+ }
1238
+
1239
+ .footer .options li.active {
1240
+ background: #eff6ff;
1241
+ color: #3b82f6;
1242
+ }
1243
+
1244
+ .footer > div:first-child > span {
1245
+ display: inline-block;
1246
+ margin-right: 8px;
1247
+ }
1248
+
1249
+ .footer .footer-divider {
1250
+ width: 1px;
1251
+ height: 12px;
1252
+ background: #c0c4cc;
1253
+ }
1254
+
1255
+ .footer > div:last-child {
1256
+ display: flex;
1257
+ align-items: center;
1258
+ justify-content: space-between;
1259
+ }
1260
+
1261
+ .footer > div:last-child > div {
1262
+ width: 24px;
1263
+ height: 24px;
1264
+ display: flex;
1265
+ align-items: center;
1266
+ justify-content: center;
1267
+ }
1268
+
1269
+ .footer > div:last-child > div:hover {
1270
+ background: rgba(25, 55, 88, 0.04);
1271
+ }
1272
+
1273
+ .footer > div:last-child i {
1274
+ width: 16px;
1275
+ height: 16px;
1276
+ display: inline-block;
1277
+ cursor: pointer;
1278
+ }
1279
+
1280
+ .footer .editor-option i {
1281
+ background-image: url("./images/option.svg");
1282
+ }
1283
+
1284
+ .footer .page-scale-minus i {
1285
+ background-image: url("./images/page-scale-minus.svg");
1286
+ }
1287
+
1288
+ .footer .page-scale-add i {
1289
+ background-image: url("./images/page-scale-add.svg");
1290
+ }
1291
+
1292
+ .footer .page-scale-percentage {
1293
+ cursor: pointer;
1294
+ user-select: none;
1295
+ }
1296
+
1297
+ .footer .fullscreen i {
1298
+ background-image: url("./images/request-fullscreen.svg");
1299
+ }
1300
+
1301
+ .footer .fullscreen.exist i {
1302
+ background-image: url("./images/exit-fullscreen.svg");
1303
+ }
1304
+
1305
+ .footer .paper-margin i {
1306
+ background-image: url("./images/paper-margin.svg");
1307
+ }
1308
+
1309
+ .footer .editor-mode {
1310
+ cursor: pointer;
1311
+ user-select: none;
1312
+ position: absolute;
1313
+ left: 50%;
1314
+ transform: translateX(-50%);
1315
+ }
1316
+
1317
+ .footer .paper-size {
1318
+ position: relative;
1319
+ }
1320
+
1321
+ .footer .paper-size i {
1322
+ background-image: url("./images/paper-size.svg");
1323
+ }
1324
+
1325
+ .footer .paper-size .options {
1326
+ right: 0;
1327
+ left: unset;
1328
+ }
1329
+
1330
+ .footer .paper-direction {
1331
+ position: relative;
1332
+ }
1333
+
1334
+ .footer .paper-direction i {
1335
+ background-image: url("./images/paper-direction.svg");
1336
+ }
1337
+
1338
+ .footer .paper-direction .options {
1339
+ right: 0;
1340
+ left: unset;
1341
+ }
1342
+
1343
+ .ce-contextmenu-signature {
1344
+ background-image: url("./images/signature.svg");
1345
+ }
1346
+
1347
+ .ce-contextmenu-word-tool {
1348
+ background-image: url("./images/word-tool.svg");
1349
+ }
1350
+
1351
+ /* List Preset Picker */
1352
+ .list-preset-grid {
1353
+ display: grid;
1354
+ grid-template-columns: repeat(3, 1fr);
1355
+ gap: 4px;
1356
+ }
1357
+
1358
+ .list-preset-cell {
1359
+ border: 1px solid #e4e7ec;
1360
+ border-radius: 4px;
1361
+ padding: 6px 8px;
1362
+ cursor: pointer;
1363
+ background: #fff;
1364
+ transition: all 0.15s;
1365
+ }
1366
+
1367
+ .list-preset-cell:hover {
1368
+ border-color: #3b82f6;
1369
+ background: #eff6ff;
1370
+ }
1371
+
1372
+ .list-preset-line {
1373
+ display: flex;
1374
+ align-items: center;
1375
+ gap: 4px;
1376
+ line-height: 1.4;
1377
+ }
1378
+
1379
+ .list-preset-marker {
1380
+ font-size: 10px;
1381
+ color: #344054;
1382
+ min-width: 16px;
1383
+ flex-shrink: 0;
1384
+ }
1385
+
1386
+ .list-preset-text {
1387
+ height: 2px;
1388
+ background: #d0d5dd;
1389
+ border-radius: 1px;
1390
+ flex: 1;
1391
+ min-width: 20px;
1392
+ }
1393
+
1394
+ .list-quick-btn {
1395
+ flex: 1;
1396
+ padding: 4px 8px;
1397
+ font-size: 11px;
1398
+ border: 1px solid #d0d5dd;
1399
+ border-radius: 4px;
1400
+ background: #fff;
1401
+ color: #475467;
1402
+ cursor: pointer;
1403
+ display: flex;
1404
+ align-items: center;
1405
+ justify-content: center;
1406
+ gap: 4px;
1407
+ transition: all 0.15s;
1408
+ }
1409
+
1410
+ .list-quick-btn:hover {
1411
+ border-color: #3b82f6;
1412
+ background: #eff6ff;
1413
+ color: #3b82f6;
1414
+ }
1415
+
1416
+ /* Table Dropdown */
1417
+ .table-dropdown {
1418
+ position: absolute;
1419
+ top: 32px;
1420
+ left: 0;
1421
+ z-index: 99;
1422
+ background: #fff;
1423
+ border: 1px solid #e4e7ec;
1424
+ border-radius: 8px;
1425
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
1426
+ padding: 12px;
1427
+ cursor: default;
1428
+ }
1429
+
1430
+ .table-dropdown-header {
1431
+ font-size: 12px;
1432
+ color: #475467;
1433
+ font-weight: 500;
1434
+ margin-bottom: 8px;
1435
+ text-align: center;
1436
+ }
1437
+
1438
+ .table-dropdown-grid {
1439
+ cursor: pointer;
1440
+ }
1441
+
1442
+ .table-dropdown-row {
1443
+ display: flex;
1444
+ gap: 3px;
1445
+ margin-bottom: 3px;
1446
+ }
1447
+
1448
+ .table-dropdown-cell {
1449
+ width: 20px;
1450
+ height: 20px;
1451
+ border: 1px solid #e4e7ec;
1452
+ border-radius: 2px;
1453
+ background: #fff;
1454
+ transition: all 0.1s;
1455
+ }
1456
+
1457
+ .table-dropdown-cell:hover {
1458
+ border-color: #93b4f6;
1459
+ }
1460
+
1461
+ .table-dropdown-cell.active {
1462
+ border-color: rgba(59, 130, 246, 0.3);
1463
+ background: rgba(59, 130, 246, 0.1);
1464
+ }
1465
+
1466
+ /* Color Palette Dropdown */
1467
+ .color-palette-dropdown {
1468
+ position: absolute;
1469
+ top: 32px;
1470
+ left: 50%;
1471
+ transform: translateX(-50%);
1472
+ z-index: 99;
1473
+ background: #fff;
1474
+ border: 1px solid #e4e7ec;
1475
+ border-radius: 8px;
1476
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
1477
+ padding: 10px;
1478
+ cursor: default;
1479
+ }
1480
+
1481
+ .color-palette-reset {
1482
+ display: flex;
1483
+ align-items: center;
1484
+ gap: 4px;
1485
+ width: 100%;
1486
+ padding: 4px 2px;
1487
+ margin-bottom: 6px;
1488
+ font-size: 12px;
1489
+ border: none;
1490
+ background: none;
1491
+ color: #667085;
1492
+ cursor: pointer;
1493
+ font-family: var(--font-inter), Inter, sans-serif;
1494
+ }
1495
+
1496
+ .color-palette-reset:hover {
1497
+ color: #344054;
1498
+ }
1499
+
1500
+ .color-palette-grid {
1501
+ display: flex;
1502
+ flex-direction: column;
1503
+ gap: 3px;
1504
+ }
1505
+
1506
+ .color-palette-row {
1507
+ display: flex;
1508
+ gap: 3px;
1509
+ }
1510
+
1511
+ .color-palette-swatch {
1512
+ width: 18px;
1513
+ height: 18px;
1514
+ border-radius: 50%;
1515
+ border: 1px solid rgba(0, 0, 0, 0.1);
1516
+ cursor: pointer;
1517
+ transition: transform 0.1s;
1518
+ flex-shrink: 0;
1519
+ }
1520
+
1521
+ .color-palette-swatch:hover {
1522
+ transform: scale(1.2);
1523
+ border-color: rgba(0, 0, 0, 0.3);
1524
+ }
1525
+
1526
+ .color-palette-swatch.active {
1527
+ border: 1px solid #3b82f6;
1528
+ box-shadow: 0 0 0 1px #3b82f6;
1529
+ }
1530
+
1531
+ /* ========== Watermark Footer Panel ========== */
1532
+ .footer .watermark-footer {
1533
+ position: relative;
1534
+ }
1535
+
1536
+ .footer .watermark-footer i {
1537
+ background-image: url("./images/watermark.svg");
1538
+ }
1539
+
1540
+ .watermark-footer-panel {
1541
+ position: absolute;
1542
+ bottom: 30px;
1543
+ right: 0;
1544
+ width: 280px;
1545
+ background: #fff;
1546
+ border-radius: 8px;
1547
+ box-shadow: 0 4px 12px 0 rgb(56 56 56 / 15%);
1548
+ border: 1px solid #e2e6ed;
1549
+ z-index: 99;
1550
+ font-family: var(--font-inter), Inter, sans-serif;
1551
+ font-size: 12px;
1552
+ }
1553
+
1554
+ .wm-panel-tabs {
1555
+ display: flex;
1556
+ border-bottom: 1px solid #e2e6ed;
1557
+ }
1558
+
1559
+ .wm-panel-tab {
1560
+ flex: 1;
1561
+ padding: 8px 0;
1562
+ background: none;
1563
+ border: none;
1564
+ border-bottom: 2px solid transparent;
1565
+ cursor: pointer;
1566
+ font-size: 12px;
1567
+ font-weight: 500;
1568
+ color: #667085;
1569
+ transition: all 0.15s;
1570
+ }
1571
+
1572
+ .wm-panel-tab:hover {
1573
+ color: #344054;
1574
+ }
1575
+
1576
+ .wm-panel-tab.active {
1577
+ color: #3b82f6;
1578
+ border-bottom-color: #3b82f6;
1579
+ }
1580
+
1581
+ .wm-panel-body {
1582
+ padding: 10px 12px;
1583
+ max-height: 340px;
1584
+ overflow-y: auto;
1585
+ }
1586
+
1587
+ .wm-panel-field {
1588
+ margin-bottom: 10px;
1589
+ }
1590
+
1591
+ .wm-panel-field label {
1592
+ display: block;
1593
+ font-size: 11px;
1594
+ font-weight: 500;
1595
+ color: #344054;
1596
+ margin-bottom: 4px;
1597
+ }
1598
+
1599
+ .wm-panel-value {
1600
+ font-weight: 400;
1601
+ color: #667085;
1602
+ }
1603
+
1604
+ .wm-panel-field input[type="text"],
1605
+ .wm-panel-field input[type="number"],
1606
+ .wm-panel-field select {
1607
+ width: 100%;
1608
+ height: 28px;
1609
+ border-radius: 4px;
1610
+ border: 1px solid #d0d5dd;
1611
+ padding: 4px 8px;
1612
+ font-size: 12px;
1613
+ outline: none;
1614
+ box-sizing: border-box;
1615
+ transition: border 0.2s;
1616
+ font-family: inherit;
1617
+ }
1618
+
1619
+ .wm-panel-field input[type="text"]:focus,
1620
+ .wm-panel-field input[type="number"]:focus,
1621
+ .wm-panel-field select:focus {
1622
+ border-color: #3b82f6;
1623
+ }
1624
+
1625
+ .wm-panel-field-row {
1626
+ display: flex;
1627
+ gap: 8px;
1628
+ }
1629
+
1630
+ .wm-panel-field-half {
1631
+ flex: 1;
1632
+ }
1633
+
1634
+ .wm-panel-colors {
1635
+ display: flex;
1636
+ flex-wrap: wrap;
1637
+ gap: 3px;
1638
+ }
1639
+
1640
+ .wm-panel-color {
1641
+ width: 16px;
1642
+ height: 16px;
1643
+ border-radius: 50%;
1644
+ border: 1px solid rgba(0, 0, 0, 0.1);
1645
+ cursor: pointer;
1646
+ transition: transform 0.1s;
1647
+ }
1648
+
1649
+ .wm-panel-color:hover {
1650
+ transform: scale(1.2);
1651
+ }
1652
+
1653
+ .wm-panel-color.active {
1654
+ border: 1.5px solid #3b82f6;
1655
+ box-shadow: 0 0 0 1px #3b82f6;
1656
+ }
1657
+
1658
+ .wm-panel-slider {
1659
+ width: 100%;
1660
+ height: 4px;
1661
+ -webkit-appearance: none;
1662
+ appearance: none;
1663
+ background: #e2e6ed;
1664
+ border-radius: 2px;
1665
+ outline: none;
1666
+ cursor: pointer;
1667
+ }
1668
+
1669
+ .wm-panel-slider::-webkit-slider-thumb {
1670
+ -webkit-appearance: none;
1671
+ appearance: none;
1672
+ width: 14px;
1673
+ height: 14px;
1674
+ border-radius: 50%;
1675
+ background: #3b82f6;
1676
+ cursor: pointer;
1677
+ border: 2px solid #fff;
1678
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
1679
+ }
1680
+
1681
+ .wm-panel-slider::-moz-range-thumb {
1682
+ width: 14px;
1683
+ height: 14px;
1684
+ border-radius: 50%;
1685
+ background: #3b82f6;
1686
+ cursor: pointer;
1687
+ border: 2px solid #fff;
1688
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
1689
+ }
1690
+
1691
+ .wm-panel-toggle {
1692
+ display: flex;
1693
+ border-radius: 4px;
1694
+ overflow: hidden;
1695
+ border: 1px solid #d0d5dd;
1696
+ }
1697
+
1698
+ .wm-panel-toggle button {
1699
+ flex: 1;
1700
+ padding: 5px 0;
1701
+ background: #fff;
1702
+ border: none;
1703
+ cursor: pointer;
1704
+ font-size: 11px;
1705
+ color: #667085;
1706
+ transition: all 0.15s;
1707
+ }
1708
+
1709
+ .wm-panel-toggle button:first-child {
1710
+ border-right: 1px solid #d0d5dd;
1711
+ }
1712
+
1713
+ .wm-panel-toggle button.active {
1714
+ background: #eff6ff;
1715
+ color: #3b82f6;
1716
+ font-weight: 500;
1717
+ }
1718
+
1719
+ .wm-panel-toggle button:hover:not(.active) {
1720
+ background: #f9fafb;
1721
+ }
1722
+
1723
+ .wm-panel-upload {
1724
+ padding: 5px 12px;
1725
+ background: #fff;
1726
+ border: 1px solid #d0d5dd;
1727
+ border-radius: 4px;
1728
+ cursor: pointer;
1729
+ font-size: 11px;
1730
+ color: #344054;
1731
+ transition: background 0.15s;
1732
+ }
1733
+
1734
+ .wm-panel-upload:hover {
1735
+ background: #f2f4f7;
1736
+ }
1737
+
1738
+ .wm-panel-preview {
1739
+ padding: 6px;
1740
+ border: 1px solid #e2e6ed;
1741
+ border-radius: 4px;
1742
+ background: #f9fafb;
1743
+ display: flex;
1744
+ align-items: center;
1745
+ justify-content: center;
1746
+ }
1747
+
1748
+ .wm-panel-actions {
1749
+ display: flex;
1750
+ justify-content: space-between;
1751
+ padding: 8px 12px;
1752
+ border-top: 1px solid #e2e6ed;
1753
+ }
1754
+
1755
+ .wm-panel-btn-delete {
1756
+ padding: 5px 12px;
1757
+ background: #fff;
1758
+ border: 1px solid #d0d5dd;
1759
+ border-radius: 4px;
1760
+ cursor: pointer;
1761
+ font-size: 12px;
1762
+ color: #dc2626;
1763
+ transition: all 0.15s;
1764
+ }
1765
+
1766
+ .wm-panel-btn-delete:hover {
1767
+ background: #fef2f2;
1768
+ border-color: #fca5a5;
1769
+ }
1770
+
1771
+ .wm-panel-btn-apply {
1772
+ padding: 5px 16px;
1773
+ background: #3b82f6;
1774
+ border: 1px solid #3b82f6;
1775
+ border-radius: 4px;
1776
+ cursor: pointer;
1777
+ font-size: 12px;
1778
+ color: #fff;
1779
+ font-weight: 500;
1780
+ transition: background 0.15s;
1781
+ }
1782
+
1783
+ .wm-panel-btn-apply:hover {
1784
+ background: #2563eb;
1785
+ border-color: #2563eb;
1786
+ }