@w-run/wdesign-ui 0.0.0-stage → 1.0.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.
- package/README.md +174 -2
- package/dist/index.d.ts +83 -0
- package/dist/style/ai-msg.css +187 -0
- package/dist/style/alert.css +64 -0
- package/dist/style/audio.css +1363 -0
- package/dist/style/avatar.css +88 -0
- package/dist/style/badge.css +48 -0
- package/dist/style/breadcrumb.css +54 -0
- package/dist/style/button.css +234 -0
- package/dist/style/card.css +71 -0
- package/dist/style/carousel.css +101 -0
- package/dist/style/checkbox.css +129 -0
- package/dist/style/chevron.css +33 -0
- package/dist/style/collapse.css +69 -0
- package/dist/style/command.css +201 -0
- package/dist/style/container.css +7 -0
- package/dist/style/datepicker.css +205 -0
- package/dist/style/descriptions.css +119 -0
- package/dist/style/divider.css +62 -0
- package/dist/style/dot.css +30 -0
- package/dist/style/drawer.css +145 -0
- package/dist/style/dropdown.css +83 -0
- package/dist/style/empty.css +36 -0
- package/dist/style/explorer.css +336 -0
- package/dist/style/file-list.css +92 -0
- package/dist/style/form.css +96 -0
- package/dist/style/grid.css +4 -0
- package/dist/style/group.css +478 -0
- package/dist/style/icon-btn.css +75 -0
- package/dist/style/image-preview.css +81 -0
- package/dist/style/input.css +119 -0
- package/dist/style/list.css +81 -0
- package/dist/style/markdown.css +312 -0
- package/dist/style/modal.css +164 -0
- package/dist/style/notification.css +52 -0
- package/dist/style/otp.css +139 -0
- package/dist/style/pagination.css +120 -0
- package/dist/style/popconfirm.css +87 -0
- package/dist/style/popover.css +110 -0
- package/dist/style/post-item.css +134 -0
- package/dist/style/progress.css +34 -0
- package/dist/style/radio.css +126 -0
- package/dist/style/rate.css +44 -0
- package/dist/style/result.css +54 -0
- package/dist/style/segmented-picker.css +120 -0
- package/dist/style/segmented.css +190 -0
- package/dist/style/select.css +281 -0
- package/dist/style/skeleton.css +31 -0
- package/dist/style/slider.css +81 -0
- package/dist/style/sortable.css +128 -0
- package/dist/style/space.css +25 -0
- package/dist/style/spinner.css +27 -0
- package/dist/style/statistic.css +44 -0
- package/dist/style/steps.css +100 -0
- package/dist/style/switch.css +95 -0
- package/dist/style/table.css +379 -0
- package/dist/style/tabs.css +167 -0
- package/dist/style/tag.css +97 -0
- package/dist/style/timeline.css +521 -0
- package/dist/style/toast.css +37 -0
- package/dist/style/tooltip.css +45 -0
- package/dist/style/tree.css +189 -0
- package/dist/style/typography.css +66 -0
- package/dist/style/upload.css +169 -0
- package/dist/style/vlist.css +49 -0
- package/dist/style/vplayer.css +846 -0
- package/dist/wdesign-ui.css +10300 -0
- package/dist/wdesign-ui.esm.js +16333 -0
- package/package.json +47 -3
- package/tokens.json +385 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.wd-image-preview {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
cursor: zoom-in;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.wd-image-preview__thumb {
|
|
7
|
+
width: 100%;
|
|
8
|
+
border-radius: var(--wd-radius-sm);
|
|
9
|
+
display: block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.wd-preview {
|
|
13
|
+
position: fixed;
|
|
14
|
+
inset: 0;
|
|
15
|
+
z-index: 1300;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.wd-preview__mask {
|
|
19
|
+
position: absolute;
|
|
20
|
+
inset: 0;
|
|
21
|
+
background: var(--wd-mask);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.wd-preview__stage {
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset: 0;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
padding: 64px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.wd-preview__img {
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
max-height: 100%;
|
|
36
|
+
border-radius: var(--wd-radius-sm);
|
|
37
|
+
box-shadow: var(--wd-shadow-lg);
|
|
38
|
+
transition: transform var(--wd-dur) ease;
|
|
39
|
+
cursor: grab;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.wd-preview__toolbar {
|
|
43
|
+
position: absolute;
|
|
44
|
+
bottom: 26px;
|
|
45
|
+
left: 50%;
|
|
46
|
+
transform: translateX(-50%);
|
|
47
|
+
z-index: 2;
|
|
48
|
+
display: flex;
|
|
49
|
+
gap: 6px;
|
|
50
|
+
padding: 8px;
|
|
51
|
+
background: var(--wd-card);
|
|
52
|
+
border-radius: 999px;
|
|
53
|
+
box-shadow: var(--wd-shadow-pop);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.wd-preview__btn {
|
|
57
|
+
font-size: 17px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.wd-preview__count {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 24px;
|
|
63
|
+
right: 24px;
|
|
64
|
+
z-index: 2;
|
|
65
|
+
padding: 6px 14px;
|
|
66
|
+
background: var(--wd-mask);
|
|
67
|
+
color: #fff;
|
|
68
|
+
border-radius: 999px;
|
|
69
|
+
font-size: 12.5px;
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.wd-preview-fade-enter-active,
|
|
74
|
+
.wd-preview-fade-leave-active {
|
|
75
|
+
transition: opacity var(--wd-dur) ease;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.wd-preview-fade-enter-from,
|
|
79
|
+
.wd-preview-fade-leave-to {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.wd-input {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 10px;
|
|
6
|
+
min-width: 220px;
|
|
7
|
+
height: var(--wd-size-md);
|
|
8
|
+
padding: 0 22px;
|
|
9
|
+
background: var(--wd-field);
|
|
10
|
+
border-radius: var(--wd-radius-pill);
|
|
11
|
+
color: var(--wd-ink);
|
|
12
|
+
font-size: var(--wd-font-size-md);
|
|
13
|
+
transition: box-shadow var(--wd-dur-fast) ease;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.wd-input--rounded {
|
|
17
|
+
border-radius: var(--wd-radius-md);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.wd-input--lg {
|
|
21
|
+
height: var(--wd-size-lg);
|
|
22
|
+
padding: 0 28px;
|
|
23
|
+
font-size: var(--wd-font-size-lg);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.wd-input--sm {
|
|
27
|
+
height: var(--wd-size-sm);
|
|
28
|
+
padding: 0 14px;
|
|
29
|
+
font-size: var(--wd-font-size-sm);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.wd-input:focus-within {
|
|
33
|
+
box-shadow: 0 0 0 4px var(--wd-focus-ring-faint);
|
|
34
|
+
animation: wd-ring-in var(--wd-dur) var(--wd-ease-out);
|
|
35
|
+
caret-color: var(--wd-red);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.wd-input__icon {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
flex: none;
|
|
41
|
+
color: var(--wd-ink-3);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.wd-input input {
|
|
45
|
+
flex: 1;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
border: 0;
|
|
48
|
+
outline: none;
|
|
49
|
+
background: transparent;
|
|
50
|
+
font: inherit;
|
|
51
|
+
color: inherit;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.wd-input input::placeholder {
|
|
55
|
+
color: var(--wd-ink-2);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.wd-input input:disabled {
|
|
59
|
+
color: var(--wd-ink-3);
|
|
60
|
+
background: transparent;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* ---- 微交互(精致版)---- */
|
|
65
|
+
.wd-input {
|
|
66
|
+
transition: box-shadow var(--wd-dur) var(--wd-ease-out), background var(--wd-dur-fast) var(--wd-ease-out);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.wd-input__icon {
|
|
70
|
+
transition: color var(--wd-dur-fast) var(--wd-ease-out);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.wd-input input::placeholder {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
transition: opacity var(--wd-dur) ease;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.wd-input:focus-within input::placeholder {
|
|
79
|
+
opacity: 0.45;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.wd-input:focus-within .wd-input__icon {
|
|
83
|
+
color: var(--wd-red-text);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* ---- 清除按钮 ---- */
|
|
87
|
+
.wd-input__clear {
|
|
88
|
+
flex: none;
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
width: 18px;
|
|
93
|
+
height: 18px;
|
|
94
|
+
padding: 0;
|
|
95
|
+
border: 0;
|
|
96
|
+
border-radius: 50%;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
background: var(--wd-ink-3);
|
|
99
|
+
color: var(--wd-card);
|
|
100
|
+
transition: background var(--wd-dur-fast) var(--wd-ease-out);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (hover: hover) {
|
|
104
|
+
.wd-input__clear:hover {
|
|
105
|
+
background: var(--wd-ink-2);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/* ---- 字数统计 ---- */
|
|
109
|
+
.wd-input__count {
|
|
110
|
+
flex: none;
|
|
111
|
+
font-size: 11.5px;
|
|
112
|
+
font-variant-numeric: tabular-nums;
|
|
113
|
+
color: var(--wd-ink-2);
|
|
114
|
+
font-family: var(--wd-font-mono);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.wd-input--has-count {
|
|
118
|
+
padding-right: 14px;
|
|
119
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.wd-list {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 6px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.wd-list-item {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 14px;
|
|
12
|
+
padding: 12px 18px;
|
|
13
|
+
/* 可点击列表项优先胶囊 */
|
|
14
|
+
border-radius: var(--wd-radius-pill);
|
|
15
|
+
transition: background var(--wd-dur-fast) ease;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.wd-list-item--clickable {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (hover: hover) {
|
|
23
|
+
.wd-list-item--clickable:hover {
|
|
24
|
+
background: var(--wd-bg);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/* JS 增强(addHover):同一份声明,由 .is-hover 驱动,不受 hover 媒体查询限制 */
|
|
28
|
+
.wd-list-item--clickable.is-hover {
|
|
29
|
+
background: var(--wd-bg);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* 列表项前方图标:柔和浅色底 + 系统灰/主题色描边,避免"黑黢黢一小块" */
|
|
33
|
+
.wd-list-item__icon {
|
|
34
|
+
width: 38px;
|
|
35
|
+
height: 38px;
|
|
36
|
+
flex: none;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
/* 图标容器用中性灰,不用淡红(列表里每个条目都有一枚) */
|
|
42
|
+
background: var(--wd-field);
|
|
43
|
+
color: var(--wd-ink-2);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.wd-list-item__icon svg {
|
|
47
|
+
color: inherit;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.wd-list-item__title {
|
|
51
|
+
flex: 1;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
font-size: 14.5px;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.wd-list-item__meta {
|
|
61
|
+
font-size: 13px;
|
|
62
|
+
color: var(--wd-ink-2);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* ---- 微交互(精致版)---- */
|
|
66
|
+
.wd-list-item__icon {
|
|
67
|
+
transition: transform var(--wd-dur) var(--wd-ease-out), background var(--wd-dur-fast) var(--wd-ease-out), color var(--wd-dur-fast) var(--wd-ease-out);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (hover: hover) {
|
|
71
|
+
.wd-list-item--clickable:hover .wd-list-item__icon {
|
|
72
|
+
transform: translateX(2px);
|
|
73
|
+
background: var(--wd-field-hover);
|
|
74
|
+
color: var(--wd-ink-2);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.wd-list-item--clickable.is-hover .wd-list-item__icon {
|
|
78
|
+
transform: translateX(2px);
|
|
79
|
+
background: var(--wd-field-hover);
|
|
80
|
+
color: var(--wd-ink-2);
|
|
81
|
+
}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.wd-markdown {
|
|
3
|
+
font-size: 15.5px;
|
|
4
|
+
line-height: 1.75;
|
|
5
|
+
color: var(--wd-ink);
|
|
6
|
+
word-wrap: break-word;
|
|
7
|
+
-webkit-text-size-adjust: 100%;
|
|
8
|
+
}
|
|
9
|
+
.wd-markdown ::selection {
|
|
10
|
+
background: var(--wd-tint-3);
|
|
11
|
+
color: var(--wd-ink);
|
|
12
|
+
}
|
|
13
|
+
.wd-markdown > :first-child {
|
|
14
|
+
margin-top: 0;
|
|
15
|
+
}
|
|
16
|
+
.wd-markdown h1, .wd-markdown h2, .wd-markdown h3, .wd-markdown h4, .wd-markdown h5, .wd-markdown h6 {
|
|
17
|
+
margin: 1.6em 0 0.6em;
|
|
18
|
+
font-weight: 800;
|
|
19
|
+
letter-spacing: -0.01em;
|
|
20
|
+
line-height: 1.3;
|
|
21
|
+
}
|
|
22
|
+
.wd-markdown h1 {
|
|
23
|
+
font-size: 2rem;
|
|
24
|
+
}
|
|
25
|
+
.wd-markdown h2 {
|
|
26
|
+
font-size: 1.55rem;
|
|
27
|
+
}
|
|
28
|
+
.wd-markdown h3 {
|
|
29
|
+
font-size: 1.22rem;
|
|
30
|
+
}
|
|
31
|
+
.wd-markdown h4 {
|
|
32
|
+
font-size: 1.05rem;
|
|
33
|
+
}
|
|
34
|
+
.wd-markdown h5 {
|
|
35
|
+
font-size: 0.95rem;
|
|
36
|
+
}
|
|
37
|
+
.wd-markdown h6 {
|
|
38
|
+
font-size: 0.88rem;
|
|
39
|
+
color: var(--wd-ink-2);
|
|
40
|
+
}
|
|
41
|
+
.wd-markdown p {
|
|
42
|
+
margin: 0 0 1.15em;
|
|
43
|
+
}
|
|
44
|
+
.wd-markdown a {
|
|
45
|
+
color: var(--wd-red-text);
|
|
46
|
+
text-decoration: underline;
|
|
47
|
+
text-decoration-color: var(--wd-link-underline);
|
|
48
|
+
text-decoration-thickness: 1.5px;
|
|
49
|
+
text-underline-offset: 3px;
|
|
50
|
+
transition: color var(--wd-dur-fast) ease, text-decoration-color var(--wd-dur-fast) ease;
|
|
51
|
+
}
|
|
52
|
+
@media (hover: hover) {
|
|
53
|
+
.wd-markdown a:hover {
|
|
54
|
+
color: var(--wd-red-hover);
|
|
55
|
+
text-decoration-color: var(--wd-red-hover);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.wd-markdown {
|
|
59
|
+
/* JS 增强(addHover):同一份声明,由 .is-hover 驱动,不受 hover 媒体查询限制 */
|
|
60
|
+
}
|
|
61
|
+
.wd-markdown a.is-hover {
|
|
62
|
+
color: var(--wd-red-hover);
|
|
63
|
+
text-decoration-color: var(--wd-red-hover);
|
|
64
|
+
}
|
|
65
|
+
.wd-markdown strong, .wd-markdown b {
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
}
|
|
68
|
+
.wd-markdown em {
|
|
69
|
+
font-style: italic;
|
|
70
|
+
}
|
|
71
|
+
.wd-markdown mark {
|
|
72
|
+
padding: 0.05em 0.35em;
|
|
73
|
+
border-radius: 6px;
|
|
74
|
+
background: var(--wd-mark-bg);
|
|
75
|
+
color: inherit;
|
|
76
|
+
}
|
|
77
|
+
.wd-markdown small {
|
|
78
|
+
font-size: 0.88em;
|
|
79
|
+
color: var(--wd-ink-2);
|
|
80
|
+
}
|
|
81
|
+
.wd-markdown sub, .wd-markdown sup {
|
|
82
|
+
font-size: 0.72em;
|
|
83
|
+
line-height: 0;
|
|
84
|
+
position: relative;
|
|
85
|
+
vertical-align: baseline;
|
|
86
|
+
}
|
|
87
|
+
.wd-markdown sub {
|
|
88
|
+
bottom: -0.25em;
|
|
89
|
+
}
|
|
90
|
+
.wd-markdown sup {
|
|
91
|
+
top: -0.5em;
|
|
92
|
+
}
|
|
93
|
+
.wd-markdown abbr[title] {
|
|
94
|
+
text-decoration: underline dotted var(--wd-underline);
|
|
95
|
+
text-underline-offset: 3px;
|
|
96
|
+
}
|
|
97
|
+
.wd-markdown code, .wd-markdown kbd, .wd-markdown pre, .wd-markdown samp {
|
|
98
|
+
font-family: var(--wd-font-mono);
|
|
99
|
+
}
|
|
100
|
+
.wd-markdown code {
|
|
101
|
+
padding: 0.16em 0.45em;
|
|
102
|
+
font-size: 0.87em;
|
|
103
|
+
border-radius: 7px;
|
|
104
|
+
background: var(--wd-field);
|
|
105
|
+
color: var(--wd-ink);
|
|
106
|
+
white-space: break-spaces;
|
|
107
|
+
}
|
|
108
|
+
.wd-markdown pre {
|
|
109
|
+
margin: 0 0 1.25em;
|
|
110
|
+
padding: 18px 20px;
|
|
111
|
+
background: #101013; /* 固定深色块,不随主题翻转 */
|
|
112
|
+
color: var(--wd-on-dark-text);
|
|
113
|
+
border-radius: var(--wd-radius-md);
|
|
114
|
+
overflow: auto;
|
|
115
|
+
font-size: 13.5px;
|
|
116
|
+
line-height: 1.7;
|
|
117
|
+
}
|
|
118
|
+
.wd-markdown pre code {
|
|
119
|
+
padding: 0;
|
|
120
|
+
background: transparent;
|
|
121
|
+
border-radius: 0;
|
|
122
|
+
color: inherit;
|
|
123
|
+
font-size: inherit;
|
|
124
|
+
white-space: pre;
|
|
125
|
+
}
|
|
126
|
+
.wd-markdown kbd {
|
|
127
|
+
padding: 0.12em 0.45em;
|
|
128
|
+
font-size: 0.85em;
|
|
129
|
+
border-radius: 7px;
|
|
130
|
+
background: var(--wd-field);
|
|
131
|
+
color: var(--wd-ink);
|
|
132
|
+
box-shadow: 0 2px 0 var(--wd-ring-soft);
|
|
133
|
+
}
|
|
134
|
+
.wd-markdown blockquote {
|
|
135
|
+
position: relative;
|
|
136
|
+
margin: 0 0 1.25em;
|
|
137
|
+
padding: 15px 18px 15px 27px;
|
|
138
|
+
background: var(--wd-tint-1);
|
|
139
|
+
border-radius: var(--wd-radius-md);
|
|
140
|
+
color: var(--wd-ink-2);
|
|
141
|
+
}
|
|
142
|
+
.wd-markdown blockquote::before {
|
|
143
|
+
content: "";
|
|
144
|
+
position: absolute;
|
|
145
|
+
left: 11px;
|
|
146
|
+
top: 15px;
|
|
147
|
+
bottom: 15px;
|
|
148
|
+
width: 4px;
|
|
149
|
+
border-radius: 999px;
|
|
150
|
+
background: var(--wd-red-soft);
|
|
151
|
+
}
|
|
152
|
+
.wd-markdown blockquote > :last-child {
|
|
153
|
+
margin-bottom: 0;
|
|
154
|
+
}
|
|
155
|
+
.wd-markdown blockquote blockquote {
|
|
156
|
+
margin: 12px 0 2px;
|
|
157
|
+
background: var(--wd-card);
|
|
158
|
+
box-shadow: var(--wd-shadow-sm);
|
|
159
|
+
}
|
|
160
|
+
.wd-markdown blockquote blockquote::before {
|
|
161
|
+
background: var(--wd-tint-4);
|
|
162
|
+
}
|
|
163
|
+
.wd-markdown blockquote blockquote blockquote {
|
|
164
|
+
margin-bottom: 0;
|
|
165
|
+
background: var(--wd-field-hover);
|
|
166
|
+
box-shadow: none;
|
|
167
|
+
}
|
|
168
|
+
.wd-markdown blockquote blockquote blockquote::before {
|
|
169
|
+
background: var(--wd-red);
|
|
170
|
+
}
|
|
171
|
+
.wd-markdown ul, .wd-markdown ol {
|
|
172
|
+
margin: 0 0 1.15em;
|
|
173
|
+
padding-left: 1.5em;
|
|
174
|
+
}
|
|
175
|
+
.wd-markdown ul ul, .wd-markdown ul ol, .wd-markdown ol ol, .wd-markdown ol ul {
|
|
176
|
+
margin: 0.35em 0 0;
|
|
177
|
+
}
|
|
178
|
+
.wd-markdown li {
|
|
179
|
+
margin: 0.3em 0;
|
|
180
|
+
}
|
|
181
|
+
.wd-markdown li::marker {
|
|
182
|
+
color: var(--wd-red-text);
|
|
183
|
+
}
|
|
184
|
+
.wd-markdown ol li::marker {
|
|
185
|
+
color: var(--wd-ink-2);
|
|
186
|
+
font-weight: 600;
|
|
187
|
+
}
|
|
188
|
+
.wd-markdown li > p {
|
|
189
|
+
margin: 0.4em 0;
|
|
190
|
+
}
|
|
191
|
+
.wd-markdown .task-list-item {
|
|
192
|
+
list-style: none;
|
|
193
|
+
}
|
|
194
|
+
.wd-markdown .task-list-item input[type=checkbox],
|
|
195
|
+
.wd-markdown input.task-list-item-checkbox {
|
|
196
|
+
accent-color: var(--wd-red);
|
|
197
|
+
width: 15px;
|
|
198
|
+
height: 15px;
|
|
199
|
+
margin: 0 0.5em 0 0;
|
|
200
|
+
vertical-align: -2px;
|
|
201
|
+
}
|
|
202
|
+
.wd-markdown table {
|
|
203
|
+
width: 100%;
|
|
204
|
+
margin: 0 0 1.25em;
|
|
205
|
+
border-collapse: separate;
|
|
206
|
+
border-spacing: 0;
|
|
207
|
+
font-size: 14.5px;
|
|
208
|
+
background: var(--wd-card);
|
|
209
|
+
border-radius: var(--wd-radius-sm);
|
|
210
|
+
overflow: hidden;
|
|
211
|
+
box-shadow: var(--wd-shadow);
|
|
212
|
+
}
|
|
213
|
+
.wd-markdown table th, .wd-markdown table td {
|
|
214
|
+
padding: 11px 16px;
|
|
215
|
+
text-align: left;
|
|
216
|
+
}
|
|
217
|
+
.wd-markdown table thead th {
|
|
218
|
+
background: var(--wd-field);
|
|
219
|
+
font-size: 13px;
|
|
220
|
+
font-weight: 700;
|
|
221
|
+
color: var(--wd-ink);
|
|
222
|
+
}
|
|
223
|
+
.wd-markdown table tbody tr:nth-child(even) {
|
|
224
|
+
background: var(--wd-bg);
|
|
225
|
+
}
|
|
226
|
+
@media (hover: hover) {
|
|
227
|
+
.wd-markdown table tbody tr:hover {
|
|
228
|
+
background: var(--wd-tint-1);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
.wd-markdown table tbody tr.is-hover {
|
|
232
|
+
background: var(--wd-tint-1);
|
|
233
|
+
}
|
|
234
|
+
.wd-markdown hr {
|
|
235
|
+
border: 0;
|
|
236
|
+
height: 3px;
|
|
237
|
+
width: 64px;
|
|
238
|
+
margin: 34px auto;
|
|
239
|
+
border-radius: 999px;
|
|
240
|
+
background: var(--wd-field);
|
|
241
|
+
}
|
|
242
|
+
.wd-markdown img {
|
|
243
|
+
max-width: 100%;
|
|
244
|
+
height: auto;
|
|
245
|
+
border-radius: var(--wd-radius-md);
|
|
246
|
+
background: var(--wd-bg);
|
|
247
|
+
}
|
|
248
|
+
.wd-markdown figure {
|
|
249
|
+
margin: 0 0 1.25em;
|
|
250
|
+
}
|
|
251
|
+
.wd-markdown figcaption {
|
|
252
|
+
margin-top: 8px;
|
|
253
|
+
font-size: 12.5px;
|
|
254
|
+
color: var(--wd-ink-2);
|
|
255
|
+
text-align: center;
|
|
256
|
+
}
|
|
257
|
+
.wd-markdown dl {
|
|
258
|
+
margin: 0 0 1.25em;
|
|
259
|
+
}
|
|
260
|
+
.wd-markdown dt {
|
|
261
|
+
font-weight: 700;
|
|
262
|
+
margin-top: 0.8em;
|
|
263
|
+
}
|
|
264
|
+
.wd-markdown dd {
|
|
265
|
+
margin: 0.2em 0 0;
|
|
266
|
+
padding-left: 1.2em;
|
|
267
|
+
color: var(--wd-ink-2);
|
|
268
|
+
}
|
|
269
|
+
.wd-markdown .hljs-comment, .wd-markdown .hljs-quote, .wd-markdown .hljs-meta {
|
|
270
|
+
color: #6A9955;
|
|
271
|
+
}
|
|
272
|
+
.wd-markdown .hljs-name, .wd-markdown .hljs-keyword, .wd-markdown .hljs-selector-tag, .wd-markdown .hljs-literal,
|
|
273
|
+
.wd-markdown .hljs-link, .wd-markdown .hljs-modifier, .wd-markdown .hljs-template-tag {
|
|
274
|
+
color: #569CD6;
|
|
275
|
+
}
|
|
276
|
+
.wd-markdown .hljs-string {
|
|
277
|
+
color: #CE9178;
|
|
278
|
+
}
|
|
279
|
+
.wd-markdown .hljs-variable, .wd-markdown .hljs-template-variable, .wd-markdown .hljs-attr, .wd-markdown .hljs-attribute,
|
|
280
|
+
.wd-markdown .hljs-params, .wd-markdown .hljs-property, .wd-markdown .hljs-pseudo {
|
|
281
|
+
color: #9CDCFE;
|
|
282
|
+
}
|
|
283
|
+
.wd-markdown .hljs-title, .wd-markdown .hljs-function .hljs-title, .wd-markdown .hljs-function_ .hljs-title {
|
|
284
|
+
color: #DCDCAA;
|
|
285
|
+
}
|
|
286
|
+
.wd-markdown .hljs-number, .wd-markdown .hljs-value {
|
|
287
|
+
color: #B5CEA8;
|
|
288
|
+
}
|
|
289
|
+
.wd-markdown .hljs-operator, .wd-markdown .hljs-ellipsis {
|
|
290
|
+
color: #D4D4D4;
|
|
291
|
+
}
|
|
292
|
+
.wd-markdown .hljs-tag {
|
|
293
|
+
color: #808080;
|
|
294
|
+
}
|
|
295
|
+
.wd-markdown .hljs-built_in, .wd-markdown .hljs-builtin-name, .wd-markdown .hljs-constructor, .wd-markdown .hljs-class .hljs-title,
|
|
296
|
+
.wd-markdown .hljs-enum .hljs-title, .wd-markdown .hljs-interface .hljs-title {
|
|
297
|
+
color: #4EC9B0;
|
|
298
|
+
}
|
|
299
|
+
.wd-markdown .hljs-exception, .wd-markdown .hljs-regexp {
|
|
300
|
+
color: #D16969;
|
|
301
|
+
}
|
|
302
|
+
.wd-markdown .hljs-decorator {
|
|
303
|
+
color: #6394BF;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/*
|
|
307
|
+
* flush:嵌在已有 padding 的容器(如 WdCard)里时,
|
|
308
|
+
* 去掉外层内距,避免双重留白。
|
|
309
|
+
*/
|
|
310
|
+
.wd-markdown--flush {
|
|
311
|
+
padding: 0;
|
|
312
|
+
}
|