vft 0.0.520 → 0.0.521

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 (48) hide show
  1. package/dist/index.css +1 -1
  2. package/es/component.js +73 -75
  3. package/es/components/index.d.ts +0 -1
  4. package/es/components/index.js +199 -201
  5. package/es/components/md-container/md-container.vue2.js +47 -50
  6. package/es/components/md-container/style/css.d.ts +0 -1
  7. package/es/components/md-container/style/css.js +0 -1
  8. package/es/components/md-container/style/index.d.ts +0 -1
  9. package/es/components/md-container/style/index.js +0 -1
  10. package/es/components/super-form/super-form-item.vue2.js +2 -3
  11. package/es/index.js +0 -1
  12. package/es/package.json.d.ts +1 -2
  13. package/es/package.json.js +1 -1
  14. package/lib/component.cjs +1 -1
  15. package/lib/components/index.cjs +1 -1
  16. package/lib/components/index.d.ts +0 -1
  17. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  18. package/lib/components/md-container/style/css.cjs +1 -1
  19. package/lib/components/md-container/style/css.d.ts +0 -1
  20. package/lib/components/md-container/style/index.cjs +1 -1
  21. package/lib/components/md-container/style/index.d.ts +0 -1
  22. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  23. package/lib/index.cjs +1 -1
  24. package/lib/package.json.cjs +1 -1
  25. package/lib/package.json.d.ts +1 -2
  26. package/package.json +4 -5
  27. package/theme-style/index.css +1 -1
  28. package/theme-style/src/index.scss +0 -1
  29. package/web-types.json +1 -1
  30. package/es/components/md-comment/index.d.ts +0 -2
  31. package/es/components/md-comment/index.js +0 -13
  32. package/es/components/md-comment/md-comment.vue.d.ts +0 -2
  33. package/es/components/md-comment/md-comment.vue.js +0 -4
  34. package/es/components/md-comment/md-comment.vue2.js +0 -66
  35. package/es/components/md-comment/style/css.d.ts +0 -1
  36. package/es/components/md-comment/style/css.js +0 -2
  37. package/es/components/md-comment/style/index.d.ts +0 -1
  38. package/es/components/md-comment/style/index.js +0 -2
  39. package/lib/components/md-comment/index.cjs +0 -1
  40. package/lib/components/md-comment/index.d.ts +0 -2
  41. package/lib/components/md-comment/md-comment.vue.cjs +0 -1
  42. package/lib/components/md-comment/md-comment.vue.d.ts +0 -2
  43. package/lib/components/md-comment/md-comment.vue2.cjs +0 -1
  44. package/lib/components/md-comment/style/css.cjs +0 -1
  45. package/lib/components/md-comment/style/css.d.ts +0 -1
  46. package/lib/components/md-comment/style/index.cjs +0 -1
  47. package/lib/components/md-comment/style/index.d.ts +0 -1
  48. package/theme-style/src/md-comment.scss +0 -1353
@@ -1,1353 +0,0 @@
1
- @use 'common/var' as *;
2
- @use 'mixins/mixins' as *;
3
-
4
- $name: md-comment;
5
-
6
- @include b($name) {
7
- padding: 0 30px 20px;
8
-
9
- @media (width <= 720px) {
10
- .wl-avatar {
11
- width: 40px;
12
- height: 40px;
13
- }
14
- }
15
-
16
- @media (width <= 580px) {
17
- .wl-header {
18
- display: block;
19
- }
20
- }
21
-
22
- @media (width <= 580px) {
23
- .wl-header-item:not(:last-child) {
24
- border-bottom: 2px dashed getCssVar('border-color');
25
- }
26
- }
27
-
28
- @media (width <= 580px) {
29
- .wl-header-2 .wl-header-item {
30
- flex: 0;
31
- width: 100%;
32
- }
33
- }
34
-
35
- @media (width <= 580px) {
36
- .wl-header-3 .wl-header-item {
37
- width: 100%;
38
- }
39
- }
40
-
41
- @media (width <= 720px) {
42
- .wl-cards .wl-user {
43
- --avatar-size: 40px;
44
- }
45
- }
46
-
47
- @media (width <= 580px) {
48
- .wl-reaction-list {
49
- gap: 12px;
50
- }
51
- }
52
-
53
- @media (width <= 580px) {
54
- .wl-reaction-img {
55
- width: 32px;
56
- height: 32px;
57
- }
58
- }
59
-
60
- #vft-md-comment__waline {
61
- min-width: 300px;
62
- max-width: getCssVar('md-container-content-max-width');
63
-
64
- a::after {
65
- content: '';
66
- display: none !important;
67
- }
68
-
69
- li {
70
- display: block;
71
- }
72
-
73
- .wl-power,
74
- .wl-like {
75
- display: none;
76
- }
77
- }
78
-
79
- [data-waline] {
80
- font-size: getCssVar('font-size-base');
81
- text-align: start;
82
- }
83
-
84
- [dir='rtl'] [data-waline] {
85
- direction: rtl;
86
- }
87
-
88
- [data-waline] * {
89
- box-sizing: content-box;
90
- line-height: 1.75;
91
- }
92
-
93
- [data-waline] p {
94
- color: getCssVar('text-primary-color');
95
- }
96
-
97
- [data-waline] a {
98
- display: inline-block;
99
- position: relative;
100
- color: getCssVar('text-primary-color');
101
- text-decoration: none;
102
- word-break: break-word;
103
- cursor: pointer;
104
- }
105
-
106
- [data-waline] a:hover {
107
- color: getCssVar('primary-color');
108
- }
109
-
110
- [data-waline] img {
111
- max-width: 100%;
112
- max-height: 400px;
113
- border: none;
114
- }
115
-
116
- [data-waline] hr {
117
- margin: 0.825em 0;
118
- border-style: dashed;
119
- border-color: getCssVar('border-color-lighter');
120
- }
121
-
122
- [data-waline] code,
123
- [data-waline] pre {
124
- margin: 0;
125
- padding: 0.2em 0.4em;
126
- border-radius: 3px;
127
- background: getCssVar('theme-color');
128
- font-size: 85%;
129
- }
130
-
131
- [data-waline] pre {
132
- padding: 10px;
133
- overflow: auto;
134
- line-height: 1.45;
135
- }
136
-
137
- [data-waline] pre::-webkit-scrollbar {
138
- width: 6px;
139
- height: 6px;
140
- }
141
-
142
- [data-waline] pre::-webkit-scrollbar-track-piece:horizontal {
143
- -webkit-border-radius: 6px;
144
- border-radius: 6px;
145
- background: rgba(0, 0, 0, 0.1);
146
- }
147
-
148
- [data-waline] pre::-webkit-scrollbar-thumb:horizontal {
149
- width: 6px;
150
- -webkit-border-radius: 6px;
151
- border-radius: 6px;
152
- background: getCssVar('primary-color');
153
- }
154
-
155
- [data-waline] pre code {
156
- padding: 0;
157
- background: rgba(0, 0, 0, 0);
158
- color: getCssVar('text-primary-color');
159
- word-break: keep-all;
160
- white-space: pre-wrap;
161
- }
162
-
163
- [data-waline] blockquote {
164
- margin: 0.5em 0;
165
- padding: 0.5em 0 0.5em 1em;
166
- border-inline-start: 8px solid getCssVar('border-color');
167
- color: getCssVar('fill-color-darker');
168
- }
169
-
170
- [data-waline] blockquote > p {
171
- margin: 0;
172
- }
173
-
174
- [data-waline] ol,
175
- [data-waline] ul {
176
- margin-inline-start: 1.25em;
177
- padding: 0;
178
- }
179
-
180
- [data-waline] input[type='checkbox'],
181
- [data-waline] input[type='radio'] {
182
- display: inline-block;
183
- margin-top: -2px;
184
- vertical-align: middle;
185
- }
186
-
187
- .wl-btn {
188
- display: inline-block;
189
- min-width: 2.5em;
190
- margin-bottom: 0;
191
- padding: 0.5em 1em;
192
- transition-duration: 0.4s;
193
- border: 1px solid getCssVar('border-color');
194
- border-radius: 0.5em;
195
- background: rgba(0, 0, 0, 0);
196
- color: getCssVar('text-primary-color');
197
- font-size: 0.75em;
198
- font-weight: 400;
199
- line-height: 1.5;
200
- text-align: center;
201
- vertical-align: middle;
202
- white-space: nowrap;
203
- cursor: pointer;
204
- user-select: none;
205
- touch-action: manipulation;
206
- }
207
-
208
- .wl-btn:hover,
209
- .wl-btn:active {
210
- border-color: getCssVar('primary-color');
211
- color: getCssVar('primary-color');
212
- }
213
-
214
- .wl-btn:disabled {
215
- border-color: getCssVar('border-color');
216
- background: getCssVar('disable-bg-color');
217
- color: getCssVar('disable-text-color');
218
- cursor: not-allowed;
219
- }
220
-
221
- .wl-btn.primary {
222
- border-color: getCssVar('primary-color');
223
- background: getCssVar('primary-color');
224
- color: getCssVar('color-white');
225
- }
226
-
227
- .wl-btn.primary:hover,
228
- .wl-btn.primary:active {
229
- border-color: getCssVar('primary-color');
230
- background: getCssVar('primary-color');
231
- color: getCssVar('color-white');
232
- }
233
-
234
- .wl-btn.primary:disabled {
235
- border-color: getCssVar('border-color');
236
- background: getCssVar('disable-bg-color');
237
- color: getCssVar('disable-text-color');
238
- cursor: not-allowed;
239
- }
240
-
241
- .wl-loading {
242
- text-align: center;
243
- }
244
-
245
- .wl-loading svg {
246
- margin: 0 auto;
247
- }
248
-
249
- .wl-comment {
250
- display: flex;
251
- position: relative;
252
- margin-bottom: 0.75em;
253
- }
254
-
255
- .wl-close {
256
- position: absolute;
257
- top: -4px;
258
- inset-inline-end: -4px;
259
- padding: 0;
260
- border: none;
261
- background: rgba(0, 0, 0, 0);
262
- line-height: 1;
263
- cursor: pointer;
264
- }
265
-
266
- .wl-login-info {
267
- max-width: 80px;
268
- margin-top: 0.75em;
269
- text-align: center;
270
- }
271
-
272
- .wl-logout-btn {
273
- position: absolute;
274
- top: -10px;
275
- inset-inline-end: -10px;
276
- padding: 3px;
277
- border: none;
278
- background: rgba(0, 0, 0, 0);
279
- line-height: 0;
280
- cursor: pointer;
281
- }
282
-
283
- .wl-avatar {
284
- position: relative;
285
- width: 40px;
286
- height: 40px;
287
- margin: 0 auto;
288
- border: getCssVar('border-color');
289
- border-radius: getCssVar('border-radius-base');
290
- }
291
-
292
- .wl-avatar img {
293
- width: 100%;
294
- height: 100%;
295
- border-radius: getCssVar('border-radius-base');
296
- }
297
-
298
- .wl-login-nick {
299
- display: block;
300
- color: getCssVar('primary-color');
301
- font-size: 0.75em;
302
- word-break: break-all;
303
- }
304
-
305
- .wl-panel {
306
- position: relative;
307
- flex-shrink: 1;
308
- width: 100%;
309
- margin: 0.5em;
310
- border: getCssVar('border-color');
311
- border-radius: 0.75em;
312
- background: getCssVar('bg-color');
313
- box-shadow: getCssVar('box-shadow');
314
- }
315
-
316
- .wl-header {
317
- display: flex;
318
- padding: 0 4px;
319
- overflow: hidden;
320
- border-bottom: 2px dashed getCssVar('border-color');
321
- border-top-left-radius: 0.75em;
322
- border-top-right-radius: 0.75em;
323
- }
324
-
325
- .wl-header label {
326
- min-width: 40px;
327
- padding: 0.75em 0.5em;
328
- color: getCssVar('text-primary-color');
329
- font-size: 0.75em;
330
- text-align: center;
331
- }
332
-
333
- .wl-header input {
334
- flex: 1;
335
- width: 0;
336
- padding: 0.5em;
337
- background: rgba(0, 0, 0, 0);
338
- font-size: 0.625em;
339
- resize: none;
340
- }
341
-
342
- .wl-header-item {
343
- display: flex;
344
- flex: 1;
345
- }
346
-
347
- .wl-header-1 .wl-header-item {
348
- width: 100%;
349
- }
350
-
351
- .wl-header-2 .wl-header-item {
352
- width: 50%;
353
- }
354
-
355
- .wl-header-3 .wl-header-item {
356
- width: 33.33%;
357
- }
358
-
359
- .wl-editor {
360
- position: relative;
361
- width: calc(100% - 1em);
362
- min-height: 8.75em;
363
- margin: 0.75em 0.5em;
364
- border-radius: 0.5em;
365
- background: rgba(0, 0, 0, 0);
366
- font-size: 0.875em;
367
- resize: vertical;
368
- }
369
-
370
- .wl-editor,
371
- .wl-input {
372
- max-width: 100%;
373
- transition: all 0.25s ease;
374
- border: none;
375
- outline: none;
376
- color: getCssVar('text-primary-color');
377
- }
378
-
379
- .wl-editor:focus,
380
- .wl-input:focus {
381
- background: getCssVar('fill-color');
382
- }
383
-
384
- .wl-preview {
385
- padding: 0 0.5em 0.5em;
386
- }
387
-
388
- .wl-preview h4 {
389
- margin: 0.25em;
390
- font-size: 0.9375em;
391
- font-weight: bold;
392
- }
393
-
394
- .wl-preview .wl-content {
395
- min-height: 1.25em;
396
- padding: 0.25em;
397
- word-break: break-word;
398
- hyphens: auto;
399
- }
400
-
401
- .wl-preview .wl-content > *:first-child {
402
- margin-top: 0;
403
- }
404
-
405
- .wl-preview .wl-content > *:last-child {
406
- margin-bottom: 0;
407
- }
408
-
409
- .wl-footer {
410
- display: flex;
411
- position: relative;
412
- flex-wrap: wrap;
413
- margin: 0.5em 0.75em;
414
- }
415
-
416
- .wl-actions {
417
- display: flex;
418
- flex: 2;
419
- align-items: center;
420
- }
421
-
422
- .wl-action {
423
- display: inline-flex;
424
- align-items: center;
425
- justify-content: center;
426
- width: 1.5em;
427
- height: 1.5em;
428
- margin: 2px;
429
- padding: 0;
430
- border: none;
431
- background: rgba(0, 0, 0, 0);
432
- color: getCssVar('primary-color');
433
- font-size: 16px;
434
- cursor: pointer;
435
- }
436
-
437
- .wl-action:hover {
438
- color: getCssVar('primary-color');
439
- }
440
-
441
- .wl-action.active {
442
- color: getCssVar('primary-color');
443
- }
444
-
445
- #wl-image-upload {
446
- display: none;
447
- }
448
-
449
- #wl-image-upload:focus + label {
450
- color: getCssVar('text-primary-color');
451
- }
452
-
453
- #wl-image-upload:focus-visible + label {
454
- outline: -webkit-focus-ring-color auto 1px;
455
- }
456
-
457
- .wl-info {
458
- display: flex;
459
- flex: 3;
460
- align-items: center;
461
- justify-content: flex-end;
462
- }
463
-
464
- .wl-info .wl-text-number {
465
- color: getCssVar('info-color');
466
- font-size: 0.75em;
467
- }
468
-
469
- .wl-info .wl-text-number .illegal {
470
- color: red;
471
- }
472
-
473
- .wl-info button {
474
- margin-inline-start: 0.75em;
475
- }
476
-
477
- .wl-info button svg {
478
- display: block;
479
- margin: 0 auto;
480
- line-height: 18px;
481
- }
482
-
483
- .wl-emoji-popup {
484
- visibility: hidden;
485
- position: absolute;
486
- z-index: 10;
487
- top: 100%;
488
- max-width: 526px;
489
- transform: scale(0.9, 0.9);
490
- transform-origin: 0 0;
491
- transition:
492
- transform 0.2s ease-out,
493
- opacity 0.2s ease-out;
494
- border: getCssVar('border-color');
495
- border-radius: 6px;
496
- opacity: 0;
497
- background: getCssVar('bg-color');
498
- box-shadow: getCssVar('box-shadow');
499
- inset-inline-start: 1.25em;
500
- }
501
-
502
- .wl-emoji-popup.display {
503
- visibility: visible;
504
- transform: none;
505
- opacity: 1;
506
- }
507
-
508
- .wl-emoji-popup button {
509
- display: inline-block;
510
- width: 2em;
511
- margin: 0.125em;
512
- padding: 0;
513
- border-width: 0;
514
- background: rgba(0, 0, 0, 0);
515
- font-size: inherit;
516
- line-height: 2;
517
- text-align: center;
518
- vertical-align: middle;
519
- cursor: pointer;
520
- }
521
-
522
- .wl-emoji-popup button:hover {
523
- background: getCssVar('info-color');
524
- }
525
-
526
- .wl-emoji-popup .wl-emoji {
527
- display: inline-block;
528
- max-width: 1.5em;
529
- max-height: 1.5em;
530
- vertical-align: middle;
531
- }
532
-
533
- .wl-emoji-popup .wl-tab-wrapper {
534
- max-height: 145px;
535
- padding: 0.5em;
536
- overflow-y: auto;
537
- }
538
-
539
- .wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar {
540
- width: 6px;
541
- height: 6px;
542
- }
543
-
544
- .wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-track-piece:vertical {
545
- -webkit-border-radius: 6px;
546
- border-radius: 6px;
547
- background: rgba(0, 0, 0, 0.1);
548
- }
549
-
550
- .wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-thumb:vertical {
551
- width: 6px;
552
- -webkit-border-radius: 6px;
553
- border-radius: 6px;
554
- background: getCssVar('primary-color');
555
- }
556
-
557
- .wl-emoji-popup .wl-tabs {
558
- position: relative;
559
- padding: 0 6px;
560
- overflow-x: auto;
561
- white-space: nowrap;
562
- }
563
-
564
- .wl-emoji-popup .wl-tabs::before {
565
- content: ' ';
566
- position: absolute;
567
- z-index: 2;
568
- top: 0;
569
- right: 0;
570
- left: 0;
571
- height: 1px;
572
- background: getCssVar('border-color');
573
- }
574
-
575
- .wl-emoji-popup .wl-tabs::-webkit-scrollbar {
576
- width: 6px;
577
- height: 6px;
578
- }
579
-
580
- .wl-emoji-popup .wl-tabs::-webkit-scrollbar-track-piece:horizontal {
581
- -webkit-border-radius: 6px;
582
- border-radius: 6px;
583
- background: rgba(0, 0, 0, 0.1);
584
- }
585
-
586
- .wl-emoji-popup .wl-tabs::-webkit-scrollbar-thumb:horizontal {
587
- height: 6px;
588
- -webkit-border-radius: 6px;
589
- border-radius: 6px;
590
- background: getCssVar('primary-color');
591
- }
592
-
593
- .wl-emoji-popup .wl-tab {
594
- position: relative;
595
- margin: 0;
596
- padding: 0 0.5em;
597
- }
598
-
599
- .wl-emoji-popup .wl-tab.active {
600
- z-index: 3;
601
- border: 1px solid getCssVar('border-color');
602
- border-top-width: 0;
603
- border-bottom-right-radius: 6px;
604
- border-bottom-left-radius: 6px;
605
- background: getCssVar('bg-color');
606
- }
607
-
608
- .wl-gif-popup {
609
- visibility: hidden;
610
- position: absolute;
611
- z-index: 10;
612
- top: 100%;
613
- width: calc(100% - 3em);
614
- padding: 0.75em 0.75em 0.25em;
615
- transform: scale(0.9, 0.9);
616
- transform-origin: 0 0;
617
- transition:
618
- transform 0.2s ease-out,
619
- opacity 0.2s ease-out;
620
- border: getCssVar('border-color');
621
- border-radius: 6px;
622
- opacity: 0;
623
- box-shadow: getCssVar('box-shadow');
624
- inset-inline-start: 1.25em;
625
- }
626
-
627
- .wl-gif-popup.display {
628
- visibility: visible;
629
- transform: none;
630
- opacity: 1;
631
- }
632
-
633
- .wl-gif-popup input {
634
- box-sizing: border-box;
635
- width: 100%;
636
- margin-bottom: 10px;
637
- padding: 3px 5px;
638
- border: getCssVar('border-color');
639
- }
640
-
641
- .wl-gif-popup img {
642
- display: block;
643
- box-sizing: border-box;
644
- width: 100%;
645
- border-width: 2px;
646
- border-style: solid;
647
- border-color: #fff;
648
- cursor: pointer;
649
- }
650
-
651
- .wl-gif-popup img:hover {
652
- border-radius: 2px;
653
- border-color: getCssVar('primary-color');
654
- }
655
-
656
- .wl-gallery {
657
- display: flex;
658
- max-height: 80vh;
659
- overflow-y: auto;
660
- }
661
-
662
- .wl-gallery-column {
663
- display: flex;
664
- flex: 1;
665
- flex-direction: column;
666
- height: max-content;
667
- }
668
-
669
- .wl-cards .wl-user {
670
- --avatar-size: 40px;
671
-
672
- position: relative;
673
- margin-inline-end: 0.75em;
674
- }
675
-
676
- .wl-cards .wl-user img {
677
- width: var(--avatar-size);
678
- height: var(--avatar-size);
679
- border-radius: getCssVar('border-radius-base');
680
- box-shadow: getCssVar('box-shadow');
681
- }
682
-
683
- .wl-cards .wl-user .verified-icon {
684
- position: absolute;
685
- top: calc(var(--avatar-size) * 3 / 4);
686
- inset-inline-start: calc(var(--avatar-size) * 3 / 4);
687
- border-radius: 50%;
688
- background: getCssVar('bg-color');
689
- box-shadow: getCssVar('box-shadow');
690
- }
691
-
692
- .wl-card-item {
693
- display: flex;
694
- position: relative;
695
- padding: 0.5em;
696
- }
697
-
698
- .wl-card-item .wl-card-item {
699
- padding-inline-end: 0;
700
- }
701
-
702
- .wl-card {
703
- flex: 1;
704
- width: 0;
705
- padding-bottom: 0.5em;
706
- border-bottom: 1px dashed getCssVar('border-color');
707
- }
708
-
709
- .wl-card:first-child {
710
- margin-inline-start: 1em;
711
- }
712
-
713
- .wl-card-item:last-child > .wl-card {
714
- border-bottom: none;
715
- }
716
-
717
- .wl-card .wl-nick svg {
718
- position: relative;
719
- bottom: -0.125em;
720
- line-height: 1;
721
- }
722
-
723
- .wl-card .wl-head {
724
- overflow: hidden;
725
- line-height: 1.5;
726
- }
727
-
728
- .wl-card .wl-head .wl-nick {
729
- display: inline-block;
730
- position: relative;
731
- margin-inline-end: 0.5em;
732
- font-size: 0.875em;
733
- font-weight: bold;
734
- line-height: 1;
735
- text-decoration: none;
736
- }
737
-
738
- .wl-card span.wl-nick {
739
- color: getCssVar('text-primary-color');
740
- }
741
-
742
- .wl-card .wl-badge {
743
- display: inline-block;
744
- margin-inline-end: 1em;
745
- padding: 0 0.3em;
746
- border: 1px solid getCssVar('primary-color');
747
- border-radius: 4px;
748
- color: getCssVar('primary-color');
749
- font-size: getCssVar('font-size-base');
750
- }
751
-
752
- .wl-card .wl-time {
753
- margin-inline-end: 0.875em;
754
- color: getCssVar('info-color');
755
- font-size: 0.75em;
756
- }
757
-
758
- .wl-card .wl-meta {
759
- position: relative;
760
- line-height: 1;
761
- }
762
-
763
- .wl-card .wl-meta > span {
764
- display: inline-block;
765
- margin-inline-end: 0.25em;
766
- padding: 2px 4px;
767
- border-radius: 0.2em;
768
- background: getCssVar('theme-color');
769
- color: getCssVar('primary-color');
770
- font-size: getCssVar('font-size-base');
771
- line-height: 1.5;
772
- }
773
-
774
- .wl-card .wl-meta > span:empty {
775
- display: none;
776
- }
777
-
778
- .wl-card .wl-comment-actions {
779
- float: right;
780
- line-height: 1;
781
- }
782
-
783
- [dir='rtl'] .wl-card .wl-comment-actions {
784
- float: left;
785
- }
786
-
787
- .wl-card .wl-delete,
788
- .wl-card .wl-like,
789
- .wl-card .wl-reply,
790
- .wl-card .wl-edit {
791
- display: inline-flex;
792
- align-items: center;
793
- transition: color 0.2s ease;
794
- border: none;
795
- background: rgba(0, 0, 0, 0);
796
- color: getCssVar('text-primary-color');
797
- line-height: 1;
798
- cursor: pointer;
799
- }
800
-
801
- .wl-card .wl-delete:hover,
802
- .wl-card .wl-like:hover,
803
- .wl-card .wl-reply:hover,
804
- .wl-card .wl-edit:hover {
805
- color: getCssVar('primary-color');
806
- }
807
-
808
- .wl-card .wl-delete.active,
809
- .wl-card .wl-like.active,
810
- .wl-card .wl-reply.active,
811
- .wl-card .wl-edit.active {
812
- color: getCssVar('primary-color');
813
- }
814
-
815
- .wl-card .wl-content {
816
- position: relative;
817
- margin-bottom: 0.75em;
818
- padding-top: 0.625em;
819
- font-size: 0.875em;
820
- line-height: 2;
821
- word-wrap: break-word;
822
- }
823
-
824
- .wl-card .wl-content.expand {
825
- max-height: 8em;
826
- overflow: hidden;
827
- cursor: pointer;
828
- }
829
-
830
- .wl-card .wl-content.expand::before {
831
- content: '';
832
- display: block;
833
- position: absolute;
834
- z-index: 999;
835
- top: 0;
836
- bottom: 3.15em;
837
- width: 100%;
838
- background: linear-gradient(180deg, #000, rgba(255, 255, 255, 0.9));
839
- inset-inline-start: 0;
840
- }
841
-
842
- .wl-card .wl-content.expand::after {
843
- content: attr(data-expand);
844
- display: block;
845
- position: absolute;
846
- z-index: 999;
847
- bottom: 0;
848
- width: 100%;
849
- height: 3.15em;
850
- background: rgba(255, 255, 255, 0.9);
851
- color: #828586;
852
- line-height: 3.15em;
853
- text-align: center;
854
- inset-inline-start: 0;
855
- }
856
-
857
- .wl-card .wl-content > *:first-child {
858
- margin-top: 0;
859
- }
860
-
861
- .wl-card .wl-content > *:last-child {
862
- margin-bottom: 0;
863
- }
864
-
865
- .wl-card .wl-admin-actions {
866
- margin: 8px 0;
867
- font-size: 12px;
868
- text-align: right;
869
- }
870
-
871
- .wl-card .wl-comment-status {
872
- margin: 0 8px;
873
- }
874
-
875
- .wl-card .wl-comment-status .wl-btn {
876
- border-radius: 0;
877
- }
878
-
879
- .wl-card .wl-comment-status .wl-btn:first-child {
880
- border-inline-end: 0;
881
- border-radius: 0.5em 0 0 0.5em;
882
- }
883
-
884
- .wl-card .wl-comment-status .wl-btn:last-child {
885
- border-inline-start: 0;
886
- border-radius: 0 0.5em 0.5em 0;
887
- }
888
-
889
- .wl-card .wl-quote {
890
- border-inline-start: 1px dashed rgba(237, 237, 237, 0.5);
891
- }
892
-
893
- .wl-card .wl-quote .wl-user {
894
- --avatar-size: 40px;
895
- }
896
-
897
- .wl-close-icon {
898
- color: getCssVar('border-color');
899
- }
900
-
901
- .wl-content .vemoji,
902
- .wl-content .wl-emoji {
903
- display: inline-block;
904
- height: 1.25em;
905
- margin: -0.125em 0.25em;
906
- vertical-align: baseline;
907
- }
908
-
909
- .wl-content .wl-tex {
910
- background: getCssVar('fill-color');
911
- color: getCssVar('info-color');
912
- }
913
-
914
- .wl-content span.wl-tex {
915
- display: inline-block;
916
- margin-inline-end: 0.25em;
917
- padding: 2px 4px;
918
- border-radius: 0.2em;
919
- font-size: getCssVar('font-size-base');
920
- line-height: 1.5;
921
- }
922
-
923
- .wl-content p.wl-tex {
924
- text-align: center;
925
- }
926
-
927
- .wl-content .katex-display {
928
- padding-top: 0.2em;
929
- padding-bottom: 0.2em;
930
- overflow: auto hidden;
931
- -webkit-overflow-scrolling: touch;
932
- }
933
-
934
- .wl-content .katex-display::-webkit-scrollbar {
935
- height: 3px;
936
- }
937
-
938
- .wl-content .katex-error {
939
- color: red;
940
- }
941
-
942
- .wl-count {
943
- flex: 1;
944
- font-size: 1.25em;
945
- font-weight: bold;
946
- }
947
-
948
- .wl-empty {
949
- padding: 1.25em;
950
- overflow: auto;
951
- color: getCssVar('text-primary-color');
952
- text-align: center;
953
- }
954
-
955
- .wl-operation {
956
- text-align: center;
957
- }
958
-
959
- .wl-operation button {
960
- margin: 1em 0;
961
- }
962
-
963
- .wl-power {
964
- padding: 0.5em 0;
965
- color: getCssVar('info-color');
966
- font-size: getCssVar(font-size-base);
967
- text-align: end;
968
- }
969
-
970
- .wl-meta-head {
971
- display: flex;
972
- flex-direction: row;
973
- align-items: center;
974
- padding: 0.375em;
975
- }
976
-
977
- .wl-sort {
978
- margin: 0;
979
- list-style-type: none;
980
- }
981
-
982
- .wl-sort li {
983
- display: inline-block;
984
- color: getCssVar('info-color');
985
- font-size: 0.75em;
986
- cursor: pointer;
987
- }
988
-
989
- .wl-sort li.active {
990
- color: getCssVar('primary-color');
991
- }
992
-
993
- .wl-sort li + li {
994
- margin-inline-start: 1em;
995
- }
996
-
997
- .wl-reaction {
998
- margin-bottom: 1.75em;
999
- overflow: auto hidden;
1000
- text-align: center;
1001
- }
1002
-
1003
- .wl-reaction img {
1004
- width: 100%;
1005
- height: 100%;
1006
- transition: all 250ms ease-in-out;
1007
- }
1008
-
1009
- .wl-reaction-title {
1010
- margin: 16px auto;
1011
- font-size: 18px;
1012
- font-weight: bold;
1013
- }
1014
-
1015
- .wl-reaction-list {
1016
- display: flex;
1017
- flex-direction: row;
1018
- gap: 16px;
1019
- justify-content: center;
1020
- margin: 0;
1021
- padding: 8px;
1022
- list-style-type: none;
1023
- }
1024
-
1025
- [data-waline] .wl-reaction-list {
1026
- margin-inline-start: 0;
1027
- }
1028
-
1029
- .wl-reaction-item {
1030
- display: flex;
1031
- flex-direction: column;
1032
- align-items: center;
1033
- cursor: pointer;
1034
- }
1035
-
1036
- .wl-reaction-item:hover img,
1037
- .wl-reaction-item.active img {
1038
- transform: scale(1.15);
1039
- }
1040
-
1041
- .wl-reaction-img {
1042
- position: relative;
1043
- width: 42px;
1044
- height: 42px;
1045
- }
1046
-
1047
- .wl-reaction-loading {
1048
- position: absolute;
1049
- top: -4px;
1050
- inset-inline-end: -5px;
1051
- width: 18px;
1052
- height: 18px;
1053
- color: getCssVar('primary-color');
1054
- }
1055
-
1056
- .wl-reaction-votes {
1057
- position: absolute;
1058
- top: -9px;
1059
- min-width: 1em;
1060
- padding: 2px;
1061
- border: 1px solid getCssVar('primary-color');
1062
- border-radius: 1em;
1063
- background: getCssVar('bg-color');
1064
- color: getCssVar('primary-color');
1065
- font-size: 0.75em;
1066
- font-weight: 700;
1067
- line-height: 1;
1068
- inset-inline-end: -9px;
1069
- }
1070
-
1071
- .wl-reaction-item.active .wl-reaction-votes {
1072
- background: getCssVar('primary-color');
1073
- color: getCssVar('bg-color');
1074
- }
1075
-
1076
- .wl-reaction-text {
1077
- font-size: 0.875em;
1078
- }
1079
-
1080
- .wl-reaction-item.active .wl-reaction-text {
1081
- color: getCssVar('primary-color');
1082
- }
1083
-
1084
- .wl-content pre,
1085
- .wl-content pre[class*='language-'] {
1086
- margin: 0.75rem 0;
1087
- padding: 1rem 1.25rem;
1088
- overflow: auto;
1089
- border-radius: 6px;
1090
- background: getCssVar('reverse-color');
1091
- line-height: 1.4;
1092
- }
1093
-
1094
- .wl-content pre code,
1095
- .wl-content pre[class*='language-'] code {
1096
- padding: 0;
1097
- border-radius: 0;
1098
- background: rgba(0, 0, 0, 0) !important;
1099
- color: #bbb;
1100
- direction: ltr;
1101
- }
1102
-
1103
- .wl-content code[class*='language-'],
1104
- .wl-content pre[class*='language-'] {
1105
- background: none;
1106
- color: #ccc;
1107
- font-size: 1em;
1108
- text-align: left;
1109
- word-wrap: normal;
1110
- word-break: normal;
1111
- white-space: pre;
1112
- word-spacing: normal;
1113
- hyphens: none;
1114
- tab-size: 4;
1115
- }
1116
-
1117
- .wl-content pre[class*='language-'] {
1118
- overflow: auto;
1119
- }
1120
-
1121
- .wl-content :not(pre) > code[class*='language-'],
1122
- .wl-content pre[class*='language-'] {
1123
- background: #2d2d2d;
1124
- }
1125
-
1126
- .wl-content :not(pre) > code[class*='language-'] {
1127
- padding: 0.1em;
1128
- border-radius: 0.3em;
1129
- white-space: normal;
1130
- }
1131
-
1132
- .wl-content .token.comment,
1133
- .wl-content .token.block-comment,
1134
- .wl-content .token.prolog,
1135
- .wl-content .token.doctype,
1136
- .wl-content .token.cdata {
1137
- color: #999;
1138
- }
1139
-
1140
- .wl-content .token.punctuation {
1141
- color: #ccc;
1142
- }
1143
-
1144
- .wl-content .token.tag,
1145
- .wl-content .token.attr-name,
1146
- .wl-content .token.namespace,
1147
- .wl-content .token.deleted {
1148
- color: #e2777a;
1149
- }
1150
-
1151
- .wl-content .token.function-name {
1152
- color: #6196cc;
1153
- }
1154
-
1155
- .wl-content .token.boolean,
1156
- .wl-content .token.number,
1157
- .wl-content .token.function {
1158
- color: #f08d49;
1159
- }
1160
-
1161
- .wl-content .token.property,
1162
- .wl-content .token.class-name,
1163
- .wl-content .token.constant,
1164
- .wl-content .token.symbol {
1165
- color: #f8c555;
1166
- }
1167
-
1168
- .wl-content .token.selector,
1169
- .wl-content .token.important,
1170
- .wl-content .token.atrule,
1171
- .wl-content .token.keyword,
1172
- .wl-content .token.builtin {
1173
- color: #cc99cd;
1174
- }
1175
-
1176
- .wl-content .token.string,
1177
- .wl-content .token.char,
1178
- .wl-content .token.attr-value,
1179
- .wl-content .token.regex,
1180
- .wl-content .token.variable {
1181
- color: #7ec699;
1182
- }
1183
-
1184
- .wl-content .token.operator,
1185
- .wl-content .token.entity,
1186
- .wl-content .token.url {
1187
- color: #67cdcc;
1188
- }
1189
-
1190
- .wl-content .token.important,
1191
- .wl-content .token.bold {
1192
- font-weight: bold;
1193
- }
1194
-
1195
- .wl-content .token.italic {
1196
- font-style: italic;
1197
- }
1198
-
1199
- .wl-content .token.entity {
1200
- cursor: help;
1201
- }
1202
-
1203
- .wl-content .token.inserted {
1204
- color: green;
1205
- }
1206
-
1207
- .wl-recent-item p {
1208
- display: inline;
1209
- }
1210
-
1211
- .wl-user-list {
1212
- padding: 0;
1213
- list-style: none;
1214
- }
1215
-
1216
- .wl-user-list a,
1217
- .wl-user-list a:hover,
1218
- .wl-user-list a:visited {
1219
- color: getCssVar('text-primary-color');
1220
- text-decoration: none;
1221
- }
1222
-
1223
- .wl-user-list .wl-user-avatar {
1224
- display: inline-block;
1225
- position: relative;
1226
- margin-inline-end: 10px;
1227
- overflow: hidden;
1228
- border-radius: 4px;
1229
- line-height: 0;
1230
- }
1231
-
1232
- .wl-user-list .wl-user-avatar > img {
1233
- width: 48px;
1234
- height: 48px;
1235
- }
1236
-
1237
- .wl-user-list .wl-user-badge {
1238
- position: absolute;
1239
- bottom: 0;
1240
- min-width: 0.7em;
1241
- height: 1.5em;
1242
- padding: 0 0.4em;
1243
- border-radius: 4px;
1244
- background: getCssVar('info-color');
1245
- color: getCssVar('info-color');
1246
- font-size: 10px;
1247
- font-weight: bold;
1248
- line-height: 1.5em;
1249
- text-align: center;
1250
- inset-inline-end: 0;
1251
- }
1252
-
1253
- .wl-user-list .wl-user-item {
1254
- margin: 10px 0;
1255
- }
1256
-
1257
- .wl-user-list .wl-user-item:nth-child(1) .wl-user-badge {
1258
- background: #fa3939;
1259
- color: getCssVar('color-white');
1260
- font-weight: bold;
1261
- }
1262
-
1263
- .wl-user-list .wl-user-item:nth-child(2) .wl-user-badge {
1264
- background: #fb811c;
1265
- color: getCssVar('color-white');
1266
- font-weight: bold;
1267
- }
1268
-
1269
- .wl-user-list .wl-user-item:nth-child(3) .wl-user-badge {
1270
- background: #feb207;
1271
- color: getCssVar('color-white');
1272
- }
1273
-
1274
- .wl-user-list .wl-user-meta {
1275
- display: inline-block;
1276
- vertical-align: top;
1277
- }
1278
-
1279
- .wl-user-list .wl-badge {
1280
- display: inline-block;
1281
- margin-inline-start: 0.5em;
1282
- padding: 0 0.3em;
1283
- border: 1px solid getCssVar('primary-color');
1284
- border-radius: 4px;
1285
- color: getCssVar('primary-color');
1286
- font-size: getCssVar(font-size-base);
1287
- vertical-align: text-top;
1288
- }
1289
-
1290
- .wl-user-wall {
1291
- padding: 0;
1292
- list-style: none;
1293
- }
1294
-
1295
- .wl-user-wall .wl-user-badge,
1296
- .wl-user-wall .wl-user-meta {
1297
- display: none;
1298
- }
1299
-
1300
- .wl-user-wall .wl-user-item {
1301
- display: inline-block;
1302
- position: relative;
1303
- transition: transform ease-in-out 0.2s;
1304
- }
1305
-
1306
- .wl-user-wall .wl-user-item::before,
1307
- .wl-user-wall .wl-user-item::after {
1308
- position: absolute;
1309
- z-index: 10;
1310
- bottom: 100%;
1311
- left: 50%;
1312
- transform: translate(-50%, 4px);
1313
- transform-origin: top;
1314
- transition: all 0.18s ease-out 0.18s;
1315
- opacity: 0;
1316
- pointer-events: none;
1317
- }
1318
-
1319
- .wl-user-wall .wl-user-item::before {
1320
- content: '';
1321
- width: 0;
1322
- height: 0;
1323
- border: 5px solid rgba(0, 0, 0, 0);
1324
- border-top-color: rgba(16, 16, 16, 0.95);
1325
- }
1326
-
1327
- .wl-user-wall .wl-user-item::after {
1328
- content: attr(aria-label);
1329
- margin-bottom: 10px;
1330
- padding: 0.5em 1em;
1331
- border-radius: 2px;
1332
- background: rgba(16, 16, 16, 0.95);
1333
- color: #fff;
1334
- font-size: 12px;
1335
- white-space: nowrap;
1336
- }
1337
-
1338
- .wl-user-wall .wl-user-item:hover {
1339
- transform: scale(1.1);
1340
- }
1341
-
1342
- .wl-user-wall .wl-user-item:hover::before,
1343
- .wl-user-wall .wl-user-item:hover::after {
1344
- transform: translate(-50%, 0);
1345
- opacity: 1;
1346
- pointer-events: none;
1347
- }
1348
-
1349
- .wl-user-wall .wl-user-item img {
1350
- width: 48px;
1351
- height: 48px;
1352
- }
1353
- }