@hailin-zheng/editor-core 2.2.7 → 2.2.9

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.
package/editor.css CHANGED
@@ -1,97 +1,100 @@
1
1
  .svg-container {
2
- background: #f2f4f7;
3
- overflow: hidden;
4
- flex: 1;
5
- height: 100%;
6
- position: relative;
2
+ background: #f2f4f7;
3
+ overflow: hidden;
4
+ flex: 1;
5
+ height: 100%;
6
+ position: relative;
7
7
  }
8
8
 
9
9
  .svg-container * {
10
- white-space: pre;
10
+ white-space: pre;
11
+ }
12
+ .svg-container svg{
13
+ pointer-events: none;
11
14
  }
12
15
 
13
16
  .drop-container {
14
- position: absolute;
15
- left: 0;
16
- top: 0;
17
+ position: absolute;
18
+ left: 0;
19
+ top: 0;
17
20
  }
18
21
 
19
22
  .data-list > div {
20
- padding: 6px 4px;
21
- display: flex;
22
- align-items: center;
23
- gap: 10px;
24
- border-bottom: 1px solid #ccc;
25
- cursor: default;
23
+ padding: 6px 4px;
24
+ display: flex;
25
+ align-items: center;
26
+ gap: 10px;
27
+ border-bottom: 1px solid #ccc;
28
+ cursor: default;
26
29
  }
27
30
 
28
31
  .data-list > div:hover {
29
- background-color: #ccc;
32
+ background-color: #ccc;
30
33
  }
31
34
 
32
35
  .data-list > div:last-child {
33
- border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
36
+ border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
34
37
  }
35
38
 
36
39
  @keyframes hover-color {
37
- from {
38
- border-color: #c0c0c0;
39
- }
40
- to {
41
- border-color: #3e97eb;
42
- }
40
+ from {
41
+ border-color: #c0c0c0;
42
+ }
43
+ to {
44
+ border-color: #3e97eb;
45
+ }
43
46
  }
44
47
 
45
48
  .magic-radio,
46
49
  .magic-checkbox {
47
- position: absolute;
48
- display: none;
50
+ position: absolute;
51
+ display: none;
49
52
  }
50
53
 
51
54
  .magic-radio[disabled],
52
55
  .magic-checkbox[disabled] {
53
- cursor: not-allowed;
56
+ cursor: not-allowed;
54
57
  }
55
58
 
56
59
  .magic-radio + label,
57
60
  .magic-checkbox + label {
58
- position: relative;
59
- display: block;
60
- padding-left: 30px;
61
- cursor: pointer;
62
- vertical-align: middle;
61
+ position: relative;
62
+ display: block;
63
+ padding-left: 30px;
64
+ cursor: pointer;
65
+ vertical-align: middle;
63
66
  }
64
67
 
65
68
  .magic-radio + label:hover:before,
66
69
  .magic-checkbox + label:hover:before {
67
- animation-duration: 0.4s;
68
- animation-fill-mode: both;
69
- animation-name: hover-color;
70
+ animation-duration: 0.4s;
71
+ animation-fill-mode: both;
72
+ animation-name: hover-color;
70
73
  }
71
74
 
72
75
  .magic-radio + label:before,
73
76
  .magic-checkbox + label:before {
74
- position: absolute;
75
- top: 0;
76
- left: 0;
77
- display: inline-block;
78
- width: 20px;
79
- height: 20px;
80
- content: "";
81
- border: 1px solid #c0c0c0;
77
+ position: absolute;
78
+ top: 0;
79
+ left: 0;
80
+ display: inline-block;
81
+ width: 20px;
82
+ height: 20px;
83
+ content: "";
84
+ border: 1px solid #c0c0c0;
82
85
  }
83
86
 
84
87
  .magic-radio + label:after,
85
88
  .magic-checkbox + label:after {
86
- position: absolute;
87
- display: none;
88
- content: "";
89
+ position: absolute;
90
+ display: none;
91
+ content: "";
89
92
  }
90
93
 
91
94
  .magic-radio[disabled] + label,
92
95
  .magic-checkbox[disabled] + label {
93
- cursor: not-allowed;
94
- color: #e4e4e4;
96
+ cursor: not-allowed;
97
+ color: #e4e4e4;
95
98
  }
96
99
 
97
100
  .magic-radio[disabled] + label:hover,
@@ -100,595 +103,595 @@
100
103
  .magic-checkbox[disabled] + label:hover,
101
104
  .magic-checkbox[disabled] + label:before,
102
105
  .magic-checkbox[disabled] + label:after {
103
- cursor: not-allowed;
106
+ cursor: not-allowed;
104
107
  }
105
108
 
106
109
  .magic-radio[disabled] + label:hover:before,
107
110
  .magic-checkbox[disabled] + label:hover:before {
108
- border: 1px solid #e4e4e4;
109
- animation-name: none;
111
+ border: 1px solid #e4e4e4;
112
+ animation-name: none;
110
113
  }
111
114
 
112
115
  .magic-radio[disabled] + label:before,
113
116
  .magic-checkbox[disabled] + label:before {
114
- border-color: #e4e4e4;
117
+ border-color: #e4e4e4;
115
118
  }
116
119
 
117
120
  .magic-radio:checked + label:before,
118
121
  .magic-checkbox:checked + label:before {
119
- animation-name: none;
122
+ animation-name: none;
120
123
  }
121
124
 
122
125
  .magic-radio:checked + label:after,
123
126
  .magic-checkbox:checked + label:after {
124
- display: block;
127
+ display: block;
125
128
  }
126
129
 
127
130
  .magic-radio + label:before {
128
- border-radius: 50%;
131
+ border-radius: 50%;
129
132
  }
130
133
 
131
134
  .magic-radio + label:after {
132
- top: 7px;
133
- left: 7px;
134
- width: 8px;
135
- height: 8px;
136
- border-radius: 50%;
137
- background: #3e97eb;
135
+ top: 7px;
136
+ left: 7px;
137
+ width: 8px;
138
+ height: 8px;
139
+ border-radius: 50%;
140
+ background: #3e97eb;
138
141
  }
139
142
 
140
143
  .magic-radio:checked + label:before {
141
- border: 1px solid #3e97eb;
144
+ border: 1px solid #3e97eb;
142
145
  }
143
146
 
144
147
  .magic-radio:checked[disabled] + label:before {
145
- border: 1px solid #c9e2f9;
148
+ border: 1px solid #c9e2f9;
146
149
  }
147
150
 
148
151
  .magic-radio:checked[disabled] + label:after {
149
- background: #c9e2f9;
152
+ background: #c9e2f9;
150
153
  }
151
154
 
152
155
  .magic-checkbox + label:before {
153
- border-radius: 3px;
156
+ border-radius: 3px;
154
157
  }
155
158
 
156
159
  .magic-checkbox + label:after {
157
- top: 2px;
158
- left: 7px;
159
- box-sizing: border-box;
160
- width: 6px;
161
- height: 12px;
162
- transform: rotate(45deg);
163
- border-width: 2px;
164
- border-style: solid;
165
- border-color: #fff;
166
- border-top: 0;
167
- border-left: 0;
160
+ top: 2px;
161
+ left: 7px;
162
+ box-sizing: border-box;
163
+ width: 6px;
164
+ height: 12px;
165
+ transform: rotate(45deg);
166
+ border-width: 2px;
167
+ border-style: solid;
168
+ border-color: #fff;
169
+ border-top: 0;
170
+ border-left: 0;
168
171
  }
169
172
 
170
173
  .magic-checkbox:checked + label:before {
171
- border: #3e97eb;
172
- background: #3e97eb;
174
+ border: #3e97eb;
175
+ background: #3e97eb;
173
176
  }
174
177
 
175
178
  .magic-checkbox:checked[disabled] + label:before {
176
- border: #c9e2f9;
177
- background: #c9e2f9;
179
+ border: #c9e2f9;
180
+ background: #c9e2f9;
178
181
  }
179
182
 
180
183
  /* 样式化 radio box 的外观 */
181
184
  .editor-list-radiobox {
182
- width: 16px;
183
- height: 16px;
184
- border: 1px solid #000;
185
- border-radius: 50%;
186
- cursor: pointer;
187
- display: inline-block;
188
- position: relative;
185
+ width: 16px;
186
+ height: 16px;
187
+ border: 1px solid #000;
188
+ border-radius: 50%;
189
+ cursor: pointer;
190
+ display: inline-block;
191
+ position: relative;
189
192
  }
190
193
 
191
194
  /* 选中状态的样式 */
192
195
  .editor-list-radiobox.checked::after {
193
- content: "";
194
- width: 8px;
195
- height: 8px;
196
- background-color: #007bff;
197
- border-radius: 50%;
198
- position: absolute;
199
- top: 50%;
200
- left: 50%;
201
- transform: translate(-50%, -50%);
196
+ content: "";
197
+ width: 8px;
198
+ height: 8px;
199
+ background-color: #007bff;
200
+ border-radius: 50%;
201
+ position: absolute;
202
+ top: 50%;
203
+ left: 50%;
204
+ transform: translate(-50%, -50%);
202
205
  }
203
206
 
204
207
  /* 样式化 checkbox 的外观 */
205
208
  .editor-list-checkbox {
206
- width: 16px;
207
- height: 16px;
208
- border: 1px solid #000;
209
- cursor: pointer;
209
+ width: 16px;
210
+ height: 16px;
211
+ border: 1px solid #000;
212
+ cursor: pointer;
210
213
  }
211
214
 
212
215
  /* 选中状态的样式 */
213
216
  .editor-list-checkbox.checked::after {
214
- content: "✔";
215
- font-size: 14px;
216
- color: #007bff;
217
- display: block;
218
- text-align: center;
219
- line-height: 16px;
217
+ content: "✔";
218
+ font-size: 14px;
219
+ color: #007bff;
220
+ display: block;
221
+ text-align: center;
222
+ line-height: 16px;
220
223
  }
221
224
 
222
225
  .decorate-container {
223
- position: absolute;
224
- cursor: default;
225
- z-index: 1;
226
+ position: absolute;
227
+ cursor: default;
228
+ z-index: 1;
226
229
  }
227
230
 
228
231
  .tg-container {
229
- font-size: 12px;
230
- border: 1px solid #ccc;
231
- padding: 10px;
232
- position: absolute;
233
- width: 200px;
234
- background: #fff;
235
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
232
+ font-size: 12px;
233
+ border: 1px solid #ccc;
234
+ padding: 10px;
235
+ position: absolute;
236
+ width: 200px;
237
+ background: #fff;
238
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
236
239
  }
237
240
 
238
241
  .tg-container--selected {
239
- box-shadow: 0 2px 16px 0 rgb(0 0 0 / 20%);;
242
+ box-shadow: 0 2px 16px 0 rgb(0 0 0 / 20%);
240
243
  }
241
244
 
242
245
  .tg-container > .header {
243
- display: flex;
244
- justify-content: space-between;
245
- align-items: center;
246
+ display: flex;
247
+ justify-content: space-between;
248
+ align-items: center;
246
249
  }
247
250
 
248
251
  .tg-container > .content {
249
- margin-top: 10px;
250
- white-space: normal;
251
- word-break: break-all;
252
+ margin-top: 10px;
253
+ white-space: normal;
254
+ word-break: break-all;
252
255
  }
253
256
 
254
257
  .tg-container > .header > .header-user {
255
- color: #3e97eb;
258
+ color: #3e97eb;
256
259
  }
257
260
 
258
261
  .tg-container > .header > .header-date {
259
- color: #c0c0c0;
260
- padding-right: 10px;
262
+ color: #c0c0c0;
263
+ padding-right: 10px;
261
264
  }
262
265
 
263
266
  .tg-container > .bg {
264
- position: absolute;
265
- left: 0;
266
- top: 0;
267
- width: 4px;
268
- height: 100%;
267
+ position: absolute;
268
+ left: 0;
269
+ top: 0;
270
+ width: 4px;
271
+ height: 100%;
269
272
  }
270
273
 
271
274
  .editor-calendar {
272
- width: 212px;
273
- height: 272px;
274
- border: 1px solid #ccc;
275
- background: #fff;
276
- cursor: default;
277
- user-select: none;
278
- font-size: 12px;
275
+ width: 212px;
276
+ height: 272px;
277
+ border: 1px solid #ccc;
278
+ background: #fff;
279
+ cursor: default;
280
+ user-select: none;
281
+ font-size: 12px;
279
282
  }
280
283
 
281
284
  .editor-calendar-header {
282
- display: flex;
283
- justify-content: space-between;
284
- align-items: center;
285
- height: 30px;
285
+ display: flex;
286
+ justify-content: space-between;
287
+ align-items: center;
288
+ line-height: 30px;
286
289
  }
287
290
 
288
291
  .editor-calendar-header-left {
289
- display: flex;
290
- align-items: center;
292
+ display: flex;
293
+ align-items: center;
291
294
  }
292
295
 
293
296
  .editor-calendar-header-left-year {
294
- padding: 0 5px;
297
+ padding: 0 5px;
295
298
  }
296
299
 
297
300
  .editor-calendar-header-left-year:hover {
298
- background: #ccc;
301
+ background: #ccc;
299
302
  }
300
303
 
301
304
  .editor-calendar-item:hover {
302
- background: #ccc;
305
+ background: #ccc;
303
306
  }
304
307
 
305
308
  .editor-calendar-header-left-month {
306
- padding: 0 5px;
309
+ padding: 0 5px;
307
310
  }
308
311
 
309
312
  .editor-calendar-header-left-month:hover {
310
- background: #ccc;
313
+ background: #ccc;
311
314
  }
312
315
 
313
316
  .editor-calendar-header-right {
314
- display: flex;
315
- align-items: center;
317
+ display: flex;
318
+ align-items: center;
316
319
  }
317
320
 
318
321
  .editor-calendar-header-right-prev {
319
- padding: 0 5px;
322
+ padding: 0 5px;
320
323
  }
321
324
 
322
325
  .editor-calendar-header-right-prev:hover {
323
- background-color: #ccc;
326
+ background-color: #ccc;
324
327
  }
325
328
 
326
329
  .editor-calendar-header-right-next {
327
- padding: 0 5px;
330
+ padding: 0 5px;
328
331
  }
329
332
 
330
333
  .editor-calendar-header-right-next:hover {
331
- background-color: #ccc;
334
+ background-color: #ccc;
332
335
  }
333
336
 
334
337
  .editor-calendar-body {
335
- display: flex;
336
- flex-direction: column;
338
+ display: flex;
339
+ flex-direction: column;
337
340
  }
338
341
 
339
342
  .editor-calendar-body-week {
340
- display: flex;
343
+ display: flex;
341
344
  }
342
345
 
343
346
  .editor-calendar-body-week-item {
344
- width: 30px;
345
- height: 30px;
346
- line-height: 30px;
347
- text-align: center;
347
+ width: 30px;
348
+ height: 30px;
349
+ line-height: 30px;
350
+ text-align: center;
348
351
  }
349
352
 
350
353
  .editor-calendar-body-day {
351
- display: flex;
352
- flex-wrap: wrap;
354
+ display: flex;
355
+ flex-wrap: wrap;
353
356
  }
354
357
 
355
358
  .editor-calendar-body-day-item {
356
- width: 30px;
357
- height: 30px;
358
- line-height: 30px;
359
- text-align: center;
360
- opacity: 0.6;
359
+ width: 30px;
360
+ height: 30px;
361
+ line-height: 30px;
362
+ text-align: center;
363
+ opacity: 0.6;
361
364
  }
362
365
 
363
366
  .editor-calendar-body-day-item--current-month {
364
- opacity: 1;
367
+ opacity: 1;
365
368
  }
366
369
 
367
370
  .editor-calendar-body-day-item--today {
368
- background: #2b88d8;
369
- color: #fff;
371
+ background: #2b88d8;
372
+ color: #fff;
370
373
  }
371
374
 
372
375
  .editor-calendar-body-day-item--selected {
373
- outline: #2b88d8 1px solid;
374
- font-weight: bold;
376
+ outline: #2b88d8 1px solid;
377
+ font-weight: bold;
375
378
  }
376
379
 
377
380
  .editor-calendar-body-day-item:hover {
378
- background-color: #ccc;
381
+ background-color: #ccc;
379
382
  }
380
383
 
381
384
  .editor-calendar-footer {
382
- display: flex;
383
- justify-content: space-between;
385
+ display: flex;
386
+ justify-content: space-between;
384
387
  }
385
388
 
386
389
  .editor-calendar-footer-right {
387
- display: flex;
388
- justify-content: flex-end;
389
- align-items: center;
390
- height: 30px;
391
- font-size: 12px;
390
+ display: flex;
391
+ justify-content: flex-end;
392
+ align-items: center;
393
+ height: 30px;
394
+ font-size: 12px;
392
395
  }
393
396
 
394
397
  .editor-calendar-footer-right-btn {
395
- padding: 2px 3px;
396
- cursor: default;
397
- user-select: none;
398
+ padding: 2px 3px;
399
+ cursor: default;
400
+ user-select: none;
398
401
  }
399
402
 
400
403
  .editor-calendar-footer-right-btn:hover {
401
- outline: 1px solid rgb(118, 142, 222);
404
+ outline: 1px solid rgb(118, 142, 222);
402
405
  }
403
406
 
404
407
  .editor-calendar-footer-right-btn:active {
405
- outline: 1px solid rgb(95, 19, 216);
408
+ outline: 1px solid rgb(95, 19, 216);
406
409
  }
407
410
 
408
411
  .invert {
409
- filter: invert(100%);
412
+ filter: invert(100%);
410
413
  }
411
414
 
412
415
  .editor-calendar-month {
413
- width: 210px;
414
- height: 180px;
415
- border: 1px solid #ccc;
416
- background: #fff;
417
- cursor: default;
416
+ width: 210px;
417
+ height: 180px;
418
+ border: 1px solid #ccc;
419
+ background: #fff;
420
+ cursor: default;
418
421
  }
419
422
 
420
423
  .editor-calendar-month-header {
421
- display: flex;
422
- justify-content: space-between;
423
- align-items: center;
424
- height: 30px;
424
+ display: flex;
425
+ justify-content: space-between;
426
+ align-items: center;
427
+ height: 30px;
425
428
  }
426
429
 
427
430
  .editor-calendar-month-header-left {
428
- display: flex;
429
- align-items: center;
431
+ display: flex;
432
+ align-items: center;
430
433
  }
431
434
 
432
435
  .editor-calendar-month-header-left-year {
433
- padding-left: 10px;
436
+ padding-left: 10px;
434
437
  }
435
438
 
436
439
  .editor-calendar-month-header-right {
437
- display: flex;
438
- align-items: center;
440
+ display: flex;
441
+ align-items: center;
439
442
  }
440
443
 
441
444
  .editor-calendar-month-header-right-prev {
442
- padding: 0 5px;
445
+ padding: 0 5px;
443
446
  }
444
447
 
445
448
  .editor-calendar-month-header-right-next {
446
- padding: 0 5px;
449
+ padding: 0 5px;
447
450
  }
448
451
 
449
452
  .editor-calendar-month-body {
450
- display: flex;
451
- flex-direction: column;
453
+ display: flex;
454
+ flex-direction: column;
452
455
  }
453
456
 
454
457
  .editor-calendar-month-body-month {
455
- display: flex;
456
- flex-wrap: wrap;
458
+ display: flex;
459
+ flex-wrap: wrap;
457
460
  }
458
461
 
459
462
  .editor-calendar-month-body-month-item {
460
- width: 52px;
461
- height: 50px;
462
- line-height: 50px;
463
- text-align: center;
463
+ width: 52px;
464
+ height: 50px;
465
+ line-height: 50px;
466
+ text-align: center;
464
467
  }
465
468
 
466
469
  .editor-calendar-month-body-month-item--current {
467
- outline: #2b88d8 1px solid;
468
- font-weight: bold;
470
+ outline: #2b88d8 1px solid;
471
+ font-weight: bold;
469
472
  }
470
473
 
471
474
  .editor-calendar-year {
472
- width: 210px;
473
- height: 210px;
474
- border: 1px solid #ccc;
475
- background: #fff;
476
- cursor: default;
475
+ width: 210px;
476
+ height: 210px;
477
+ border: 1px solid #ccc;
478
+ background: #fff;
479
+ cursor: default;
477
480
  }
478
481
 
479
482
  .editor-calendar-year-header {
480
- display: flex;
481
- justify-content: space-between;
482
- align-items: center;
483
- height: 30px;
483
+ display: flex;
484
+ justify-content: space-between;
485
+ align-items: center;
486
+ height: 30px;
484
487
  }
485
488
 
486
489
  .editor-calendar-year-header-left {
487
- display: flex;
488
- align-items: center;
490
+ display: flex;
491
+ align-items: center;
489
492
  }
490
493
 
491
494
  .editor-calendar-year-header-left-year {
492
- padding: 0 5px;
495
+ padding: 0 5px;
493
496
  }
494
497
 
495
498
  .editor-calendar-year-header-right {
496
- display: flex;
497
- align-items: center;
499
+ display: flex;
500
+ align-items: center;
498
501
  }
499
502
 
500
503
  .editor-calendar-year-header-right-prev {
501
- padding: 0 5px;
504
+ padding: 0 5px;
502
505
  }
503
506
 
504
507
  .editor-calendar-year-header-right-next {
505
- padding: 0 5px;
508
+ padding: 0 5px;
506
509
  }
507
510
 
508
511
  .editor-calendar-year-body {
509
- display: flex;
510
- flex-direction: column;
512
+ display: flex;
513
+ flex-direction: column;
511
514
  }
512
515
 
513
516
  .editor-calendar-year-body-year {
514
- display: flex;
515
- flex-wrap: wrap;
517
+ display: flex;
518
+ flex-wrap: wrap;
516
519
  }
517
520
 
518
521
  .editor-calendar-year-body-year-item {
519
- width: 52px;
520
- height: 36px;
521
- line-height: 36px;
522
- text-align: center;
522
+ width: 52px;
523
+ height: 36px;
524
+ line-height: 36px;
525
+ text-align: center;
523
526
  }
524
527
 
525
528
  .editor-contextmenu {
526
- z-index: 1000;
527
- position: absolute;
528
- background: white;
529
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
529
+ z-index: 1000;
530
+ position: absolute;
531
+ background: white;
532
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
530
533
  }
531
534
 
532
535
  .editor-overlays-menus {
533
- font-size: 14px;
534
- font-family: "宋体", serif;
535
- margin: 0;
536
- cursor: pointer;
537
- padding: 0;
538
- list-style: none;
539
- user-select: none;
536
+ font-size: 14px;
537
+ font-family: "宋体", serif;
538
+ margin: 0;
539
+ cursor: pointer;
540
+ padding: 0;
541
+ list-style: none;
542
+ user-select: none;
540
543
  }
541
544
 
542
545
  .editor-overlays-menus {
543
- padding: 3px;
546
+ padding: 3px;
544
547
  }
545
548
 
546
549
  .editor-overlays-menus > li {
547
- padding: 8px 12px;
548
- display: flex;
549
- gap: 6px;
550
- align-items: center;
551
- word-break: keep-all;
552
- border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
553
- position: relative;
554
- }
555
- .editor-overlays-menus > li >ul{
556
- display: none;
557
- position: absolute;
558
- left: calc(100% + 5px);
559
- top: 0;
560
- z-index: 1;
561
- background: #fff;
562
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
563
- }
564
- .editor-overlays-menus .sub:after{
565
- content:'';
566
- margin-left: auto;
567
- }
568
- .editor-overlays-menus > li:hover >ul{
569
- display: block;
550
+ padding: 8px 12px;
551
+ display: flex;
552
+ gap: 6px;
553
+ align-items: center;
554
+ word-break: keep-all;
555
+ border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
556
+ position: relative;
557
+ }
558
+ .editor-overlays-menus > li > ul {
559
+ display: none;
560
+ position: absolute;
561
+ left: calc(100%);
562
+ top: 0;
563
+ z-index: 1;
564
+ background: #fff;
565
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
566
+ }
567
+ .editor-overlays-menus .sub:after {
568
+ content: "";
569
+ margin-left: auto;
570
+ }
571
+ .editor-overlays-menus > li:hover > ul {
572
+ display: block;
570
573
  }
571
574
 
572
575
  .editor-overlays-menus > li:hover {
573
- background-color: #ccc;
576
+ background-color: #ccc;
574
577
  }
575
578
 
576
579
  .editor-overlays-menus > li:last-child {
577
- border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
580
+ border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
578
581
  }
579
582
 
580
583
  /*.scale-container > *{*/
581
584
  /* transform-origin: center top;*/
582
585
  /*}*/
583
586
  .doc-rule {
584
- position: absolute;
585
- font-size: 0;
586
- background: white;
587
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
588
- cursor: default;
589
- left: 0;
590
- top: 0;
587
+ position: absolute;
588
+ font-size: 0;
589
+ background: white;
590
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
591
+ cursor: default;
592
+ left: 0;
593
+ top: 0;
591
594
  }
592
595
 
593
596
  .editor-calendar-footer-left {
594
- display: flex;
597
+ display: flex;
595
598
  }
596
599
 
597
600
  .editor-calendar-footer-left-time {
598
- outline: none;
599
- width: 110px;
600
- text-align: center;
601
- padding: 0;
602
- margin: 0;
603
- font-size: 14px;
601
+ outline: none;
602
+ width: 110px;
603
+ text-align: center;
604
+ padding: 0;
605
+ margin: 0;
606
+ font-size: 14px;
604
607
  }
605
608
 
606
609
  .editor-input-cursor {
607
- position: absolute;
608
- width: 1.6px;
609
- padding: 0;
610
- border: none;
611
- outline: none;
612
- background: black;
613
- pointer-events: none;
614
- opacity: 0;
615
- animation: editor-cursor-blink 1s infinite steps(1, start);
610
+ position: absolute;
611
+ width: 1.6px;
612
+ padding: 0;
613
+ border: none;
614
+ outline: none;
615
+ background: black;
616
+ pointer-events: none;
617
+ opacity: 0;
618
+ animation: editor-cursor-blink 1s infinite steps(1, start);
616
619
  }
617
620
 
618
621
  @keyframes editor-cursor-blink {
619
- 0% {
620
- opacity: 1;
621
- }
622
- 50% {
623
- opacity: 0;
624
- }
625
- 100% {
626
- opacity: 1;
627
- }
622
+ 0% {
623
+ opacity: 1;
624
+ }
625
+ 50% {
626
+ opacity: 0;
627
+ }
628
+ 100% {
629
+ opacity: 1;
630
+ }
628
631
  }
629
632
 
630
633
  .doc-triangle {
631
- position: absolute;
632
- width: 0;
633
- height: 0;
634
- border-left: 5px solid transparent;
635
- border-right: 5px solid transparent;
636
- border-bottom: 10px solid red; /* 修改颜色 */
634
+ position: absolute;
635
+ width: 0;
636
+ height: 0;
637
+ border-left: 5px solid transparent;
638
+ border-right: 5px solid transparent;
639
+ border-bottom: 10px solid red; /* 修改颜色 */
637
640
  }
638
641
 
639
642
  .doc-triangle-line {
640
- position: absolute;
641
- height: 1px;
642
- background: red;
643
- transform-origin: top left
643
+ position: absolute;
644
+ height: 1px;
645
+ background: red;
646
+ transform-origin: top left;
644
647
  }
645
648
 
646
649
  .data-list-container {
647
- min-width: 100px;
648
- background-color: white;
649
- z-index: 1000;
650
- box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
651
- user-select: none;
650
+ min-width: 100px;
651
+ background-color: white;
652
+ z-index: 1000;
653
+ box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
654
+ user-select: none;
652
655
  }
653
- .editor-suggestions-container{
654
- z-index: 1000;
655
- position: absolute;
656
- background: white;
657
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
658
- max-height: 300px;
659
- overflow: auto;
656
+ .editor-suggestions-container {
657
+ z-index: 1000;
658
+ position: absolute;
659
+ background: white;
660
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
661
+ max-height: 300px;
662
+ overflow: auto;
660
663
  }
661
664
 
662
665
  .editor-suggestions {
663
- font-size: 14px;
664
- font-family: "宋体", serif;
665
- margin: 0;
666
- cursor: pointer;
667
- padding: 0;
668
- list-style: none;
669
- user-select: none;
666
+ font-size: 14px;
667
+ font-family: "宋体", serif;
668
+ margin: 0;
669
+ cursor: pointer;
670
+ padding: 0;
671
+ list-style: none;
672
+ user-select: none;
670
673
  }
671
674
 
672
675
  .editor-suggestions {
673
- padding: 3px;
676
+ padding: 3px;
674
677
  }
675
678
 
676
679
  .editor-suggestions > li {
677
- padding: 8px 12px;
678
- display: flex;
679
- gap: 6px;
680
- align-items: center;
681
- word-break: keep-all;
682
- border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
683
- position: relative;
680
+ padding: 8px 12px;
681
+ display: flex;
682
+ gap: 6px;
683
+ align-items: center;
684
+ word-break: keep-all;
685
+ border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
686
+ position: relative;
684
687
  }
685
688
 
686
689
  .editor-suggestions > li:hover {
687
- background-color: #eee;
690
+ background-color: #eee;
688
691
  }
689
- .editor-suggestions > li.hovered{
690
- background-color: #ccc;
692
+ .editor-suggestions > li.hovered {
693
+ background-color: #ccc;
691
694
  }
692
695
  .editor-suggestions > li:last-child {
693
- border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
694
- }
696
+ border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
697
+ }