@tdesign/site-components 0.0.1 → 0.17.1
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/LICENSE +1 -1
- package/README.md +45 -0
- package/lib/favicon.ico +0 -0
- package/lib/font/TCloudNumber.ttf +0 -0
- package/lib/font/tencent-w7.ttf +0 -0
- package/lib/images/add.svg +3 -0
- package/lib/images/angular-logo.svg +7 -0
- package/lib/images/backtop.svg +4 -0
- package/lib/images/bulletpoint.svg +8 -0
- package/lib/images/check.svg +3 -0
- package/lib/images/chevron-right.svg +3 -0
- package/lib/images/close.svg +5 -0
- package/lib/images/cloud-logo.svg +14 -0
- package/lib/images/code.svg +5 -0
- package/lib/images/codesign-logo.svg +20 -0
- package/lib/images/committee-logo.svg +104 -0
- package/lib/images/copy.svg +4 -0
- package/lib/images/fake-arrow.svg +3 -0
- package/lib/images/flutter-logo.svg +3 -0
- package/lib/images/git.svg +18 -0
- package/lib/images/github.svg +5 -0
- package/lib/images/groups/design-group.png +0 -0
- package/lib/images/groups/design-logo.svg +32 -0
- package/lib/images/groups/flutter-group.png +0 -0
- package/lib/images/groups/flutter-logo.svg +5 -0
- package/lib/images/groups/react-group.png +0 -0
- package/lib/images/groups/react-logo.svg +5 -0
- package/lib/images/groups/vue-logo.svg +6 -0
- package/lib/images/groups/vue2-group.png +0 -0
- package/lib/images/groups/vue3-group.png +0 -0
- package/lib/images/groups/wx-group.png +0 -0
- package/lib/images/groups/wx-logo.svg +10 -0
- package/lib/images/history.svg +6 -0
- package/lib/images/info.svg +5 -0
- package/lib/images/jump.svg +3 -0
- package/lib/images/link.svg +5 -0
- package/lib/images/logo.svg +59 -0
- package/lib/images/menu-application.svg +11 -0
- package/lib/images/menu-fold.svg +6 -0
- package/lib/images/menu-unfold.svg +6 -0
- package/lib/images/mobile.svg +4 -0
- package/lib/images/moon.svg +3 -0
- package/lib/images/more.svg +3 -0
- package/lib/images/prowork-logo.svg +22 -0
- package/lib/images/qq-logo.svg +3 -0
- package/lib/images/qrcode.svg +11 -0
- package/lib/images/react-logo.svg +3 -0
- package/lib/images/search.svg +3 -0
- package/lib/images/sun.svg +11 -0
- package/lib/images/taro-logo.png +0 -0
- package/lib/images/tdesign-logo.svg +24 -0
- package/lib/images/tdesign-qrcode.svg +60 -0
- package/lib/images/tencentcloud-logo.svg +32 -0
- package/lib/images/tips.svg +4 -0
- package/lib/images/translate.svg +3 -0
- package/lib/images/tuxiaocao-logo.svg +17 -0
- package/lib/images/tvision-logo.svg +18 -0
- package/lib/images/vue-logo.svg +4 -0
- package/lib/images/wenjuan-logo.svg +5 -0
- package/lib/images/wx-logo.svg +8 -0
- package/lib/site-components.css +1 -0
- package/lib/site.es.js +12719 -0
- package/lib/site.umd.js +1148 -0
- package/lib/styles/prism-theme-dark.less +191 -0
- package/lib/styles/prism-theme.less +188 -0
- package/lib/styles/style.css +986 -0
- package/package.json +40 -9
- package/index.js +0 -1
|
@@ -0,0 +1,986 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:root[theme-mode="light"] {
|
|
3
|
+
--header-height: 64px;
|
|
4
|
+
--doc-header-height: 252px;
|
|
5
|
+
--aside-width: 260px;
|
|
6
|
+
--footer-height: 388px;
|
|
7
|
+
--border-radius: 3px;
|
|
8
|
+
--theme-block-light-display: block;
|
|
9
|
+
--theme-block-dark-display: none;
|
|
10
|
+
--content-max-width: 960px;
|
|
11
|
+
--content-padding-right: 264px;
|
|
12
|
+
--content-padding-left-right: 24px;
|
|
13
|
+
--header-box-shadow: inset 0 -1px 0 #e7e7e7;
|
|
14
|
+
--footer-box-shadow: inset 0 1px 0 #e7e7e7;
|
|
15
|
+
--aside-box-shadow: inset -1px 0 0 #e7e7e7;
|
|
16
|
+
--portal-box-shadow: inset 1px 0px 0px #dcdcdc, inset -1px 0px 0px #dcdcdc, inset 0px -1px 0px #dcdcdc, inset 0px 1px 0px #dcdcdc;
|
|
17
|
+
--table-box-shadow: inset 0px 1px 0px #e7e7e7, inset 0px -1px 0px #e7e7e7, inset -1px 0px 0px #e7e7e7, inset 1px 0px 0px #e7e7e7;
|
|
18
|
+
--shadow-1: 0 1px 10px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 8%), 0 2px 4px -1px rgba(0, 0, 0, 12%);
|
|
19
|
+
--shadow-2: 0 3px 14px 2px rgba(0, 0, 0, 0.05), 0 8px 10px 1px rgba(0, 0, 0, 6%), 0 5px 5px -3px rgba(0, 0, 0, 10%);
|
|
20
|
+
--shadow-3: 0 6px 30px 5px rgba(0, 0, 0, 0.05), 0 16px 24px 2px rgba(0, 0, 0, 4%), 0 8px 10px -5px rgba(0, 0, 0, 8%);
|
|
21
|
+
--shadow-inset-top: inset 0 0.5px 0 #dcdcdc;
|
|
22
|
+
--shadow-inset-right: inset 0.5px 0 0 #dcdcdc;
|
|
23
|
+
--shadow-inset-bottom: inset 0 -0.5px 0 #dcdcdc;
|
|
24
|
+
--shadow-inset-left: inset -0.5px 0 0 #dcdcdc;
|
|
25
|
+
--anim-time-fn-easing: cubic-bezier(0.38, 0, 0.24, 1);
|
|
26
|
+
--anim-time-fn-ease-out: cubic-bezier(0, 0, 0.15, 1);
|
|
27
|
+
--anim-time-fn-ease-in: cubic-bezier(0.82, 0, 1, 0.9);
|
|
28
|
+
--anim-duration-base: 0.2s;
|
|
29
|
+
--anim-duration-moderate: 0.24s;
|
|
30
|
+
--anim-duration-slow: 0.28s;
|
|
31
|
+
--bg-color-page: #f5f5f5;
|
|
32
|
+
--bg-color-secondarypage: #f5f5f5;
|
|
33
|
+
--bg-color-demo: #fff;
|
|
34
|
+
--bg-color-demo-secondary: #eee;
|
|
35
|
+
--bg-color-code: #f3f3f3;
|
|
36
|
+
--bg-color-code-linear: linear-gradient(180deg, #f3f3f3 0%, rgba(243, 243, 243, 0) 100%);
|
|
37
|
+
--bg-color-footer: #eee;
|
|
38
|
+
--bg-color-secondaryfooter: #e7e7e7;
|
|
39
|
+
--bg-color-docpage: #fff;
|
|
40
|
+
--bg-color-container: #fff;
|
|
41
|
+
--bg-color-container-transparent: rgba(255, 255, 255, 0.9);
|
|
42
|
+
--bg-color-secondarycontainer: #f5f5f5;
|
|
43
|
+
--bg-color-component: #eee;
|
|
44
|
+
--bg-color-component-transparent: rgba(238, 238, 238, 0.8);
|
|
45
|
+
--bg-color-tag: #eee;
|
|
46
|
+
--bg-color-tab: #eee;
|
|
47
|
+
--bg-color-table: #fff;
|
|
48
|
+
--bg-color-thead: #dcdcdc;
|
|
49
|
+
--bg-color-navigation: #fff;
|
|
50
|
+
--bg-color-card: #fff;
|
|
51
|
+
--component-stroke: #eee;
|
|
52
|
+
--component-border: #e7e7e7;
|
|
53
|
+
--bg-color-demo-hover: rgba(0, 0, 0, 0.05);
|
|
54
|
+
--bg-color-demo-select: rgba(0, 0, 0, 0.1);
|
|
55
|
+
--bg-color-code-hover: #e7e7e7;
|
|
56
|
+
--bg-color-code-select: #dcdcdc;
|
|
57
|
+
--bg-color-container-hover: #f3f3f3;
|
|
58
|
+
--bg-color-container-select: #eee;
|
|
59
|
+
--bg-color-component-hover: #dcdcdc;
|
|
60
|
+
--bg-color-component-select: #a6a6a6;
|
|
61
|
+
--bg-color-tab-select: #fff;
|
|
62
|
+
--bg-color-table-hover: #f5f5f5;
|
|
63
|
+
--bg-color-navigation-hover: #f3f3f3;
|
|
64
|
+
--bg-color-navigation-select: #e7e7e7;
|
|
65
|
+
--bg-color-card-hover: #f3f3f3;
|
|
66
|
+
--bg-color-scroll: rgba(0, 0, 0, 0.14);
|
|
67
|
+
--bg-color-component-disabled: #eee;
|
|
68
|
+
--text-primary: rgba(0, 0, 0, 0.9);
|
|
69
|
+
--text-secondary: rgba(0, 0, 0, 0.6);
|
|
70
|
+
--text-placeholder: rgba(0, 0, 0, 0.4);
|
|
71
|
+
--text-disabled: rgba(0, 0, 0, 0.26);
|
|
72
|
+
--text-anti: #fff;
|
|
73
|
+
--text-interactive: var(--td-brand-color);
|
|
74
|
+
--brand-main: var(--td-brand-color);
|
|
75
|
+
--brand-main-hover: var(--td-brand-color-hover, var(--td-brand-color-active));
|
|
76
|
+
--brand-main-focus: var(--td-brand-color-focus);
|
|
77
|
+
--brand-main-disabled: var(--td-brand-color-disabled);
|
|
78
|
+
--brand-main-light: rgba(0, 82, 217, 0.1);
|
|
79
|
+
--error-1: #fff0ed;
|
|
80
|
+
--error-8: #881f1c;
|
|
81
|
+
--error-main: #d54941;
|
|
82
|
+
--error-main-hover: #f6685d;
|
|
83
|
+
--error-main-disabled: #ffb9b0;
|
|
84
|
+
--error-main-light: rgba(213, 73, 65, 0.1);
|
|
85
|
+
--warning-main: #e37318;
|
|
86
|
+
--warning-main-hover: #fa9550;
|
|
87
|
+
--warning-main-disabled: #ffb98c;
|
|
88
|
+
--warning-main-light: rgba(227, 115, 24, 0.1);
|
|
89
|
+
--success-main: #2ba471;
|
|
90
|
+
--success-main-disabled: rgba(43, 164, 113, 0.25);
|
|
91
|
+
--success-main-light: rgba(43, 164, 113, 0.1);
|
|
92
|
+
--bg-color-theme-transparent: rgba(238, 238, 238, 0.6);
|
|
93
|
+
--bg-color-theme-secondary: #f3f3f3;
|
|
94
|
+
--bg-color-theme-surface: #fff;
|
|
95
|
+
--bg-color-theme-tertiary: #e7e7e7;
|
|
96
|
+
--theme-component-border: rgba(0, 0, 0, 0.06);
|
|
97
|
+
--bg-color-theme-radio: #e7e7e7;
|
|
98
|
+
--bg-color-theme-radio-active: #fff;
|
|
99
|
+
}
|
|
100
|
+
@media screen and (max-width: 960px) {
|
|
101
|
+
:root,
|
|
102
|
+
:root[theme-mode="light"] {
|
|
103
|
+
--content-padding-right: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
@media screen and (min-width: 1200px) {
|
|
107
|
+
:root,
|
|
108
|
+
:root[theme-mode="light"] {
|
|
109
|
+
--content-padding-left-right: 48px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
@media screen and (min-width: 1920px) {
|
|
113
|
+
:root,
|
|
114
|
+
:root[theme-mode="light"] {
|
|
115
|
+
--content-max-width: 1200px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
:root[theme-mode="dark"] {
|
|
119
|
+
background: var(--bg-color-page);
|
|
120
|
+
--theme-block-light-display: none;
|
|
121
|
+
--theme-block-dark-display: block;
|
|
122
|
+
--header-box-shadow: inset 0 -1px 0 #4b4b4b;
|
|
123
|
+
--footer-box-shadow: inset 0 1px 0 #4b4b4b;
|
|
124
|
+
--aside-box-shadow: inset -1px 0 0 #4b4b4b;
|
|
125
|
+
--portal-box-shadow: inset 1px 0px 0px #5e5e5e, inset -1px 0px 0px #5e5e5e, inset 0px -1px 0px #5e5e5e, inset 0px 1px 0px #5e5e5e;
|
|
126
|
+
--table-box-shadow: inset 0px 1px 0px #4b4b4b, inset 0px -1px 0px #4b4b4b, inset -1px 0px 0px #4b4b4b, inset 1px 0px 0px #4b4b4b;
|
|
127
|
+
--shadow-1: 0 4px 6px rgba(0, 0, 0, 0.06), 0 1px 10px rgba(0, 0, 0, 8%), 0 2px 4px rgba(0, 0, 0, 12%);
|
|
128
|
+
--shadow-2: 0 8px 10px rgba(0, 0, 0, 0.12), 0 3px 14px rgba(0, 0, 0, 10%), 0 5px 5px rgba(0, 0, 0, 16%);
|
|
129
|
+
--shadow-3: 0 16px 24px rgba(0, 0, 0, 0.14), 0 6px 30px rgba(0, 0, 0, 12%), 0 8px 10px rgba(0, 0, 0, 20%);
|
|
130
|
+
--shadow-inset-top: inset 0 0.5px 0 #5e5e5e;
|
|
131
|
+
--shadow-inset-right: inset 0.5px 0 0 #5e5e5e;
|
|
132
|
+
--shadow-inset-bottom: inset 0 -0.5px 0 #5e5e5e;
|
|
133
|
+
--shadow-inset-left: inset -0.5px 0 0 #5e5e5e;
|
|
134
|
+
--bg-color-page: #242424;
|
|
135
|
+
--bg-color-secondarypage: #181818;
|
|
136
|
+
--bg-color-demo: #181818;
|
|
137
|
+
--bg-color-demo-secondary: #181818;
|
|
138
|
+
--bg-color-code: #2c2c2c;
|
|
139
|
+
--bg-color-code-linear: linear-gradient(180deg, #2c2c2c 0%, rgba(44, 44, 44, 0) 100%);
|
|
140
|
+
--bg-color-footer: #181818;
|
|
141
|
+
--bg-color-secondaryfooter: #101010;
|
|
142
|
+
--bg-color-docpage: #242424;
|
|
143
|
+
--bg-color-container: #242424;
|
|
144
|
+
--bg-color-container-transparent: rgba(44, 44, 44, 0.9);
|
|
145
|
+
--bg-color-secondarycontainer: #383838;
|
|
146
|
+
--bg-color-component: #383838;
|
|
147
|
+
--bg-color-component-transparent: rgba(75, 75, 75, 0.9);
|
|
148
|
+
--bg-color-tag: #4b4b4b;
|
|
149
|
+
--bg-color-tab: #383838;
|
|
150
|
+
--bg-color-table: #242424;
|
|
151
|
+
--bg-color-thead: #4b4b4b;
|
|
152
|
+
--bg-color-navigation: #2c2c2c;
|
|
153
|
+
--bg-color-card: #383838;
|
|
154
|
+
--component-stroke: #383838;
|
|
155
|
+
--component-border: #4b4b4b;
|
|
156
|
+
--bg-color-demo-hover: rgba(255, 255, 255, 0.05);
|
|
157
|
+
--bg-color-demo-select: rgba(255, 255, 255, 0.1);
|
|
158
|
+
--bg-color-code-hover: #383838;
|
|
159
|
+
--bg-color-code-select: #4b4b4b;
|
|
160
|
+
--bg-color-container-hover: #383838;
|
|
161
|
+
--bg-color-container-select: #4b4b4b;
|
|
162
|
+
--bg-color-component-hover: #5e5e5e;
|
|
163
|
+
--bg-color-component-select: #777;
|
|
164
|
+
--bg-color-tab-select: #4b4b4b;
|
|
165
|
+
--bg-color-table-hover: #2c2c2c;
|
|
166
|
+
--bg-color-navigation-hover: #383838;
|
|
167
|
+
--bg-color-navigation-select: #4b4b4b;
|
|
168
|
+
--bg-color-card-hover: #4b4b4b;
|
|
169
|
+
--bg-color-scroll: rgba(255, 255, 255, 0.14);
|
|
170
|
+
--bg-color-component-disabled: #242424;
|
|
171
|
+
--text-primary: rgba(255, 255, 255, 0.9);
|
|
172
|
+
--text-secondary: rgba(255, 255, 255, 0.55);
|
|
173
|
+
--text-placeholder: rgba(255, 255, 255, 0.35);
|
|
174
|
+
--text-disabled: rgba(255, 255, 255, 0.22);
|
|
175
|
+
--text-anti: #fff;
|
|
176
|
+
--brand-main-light: rgba(69, 130, 230, 0.2);
|
|
177
|
+
--error-1: #472324;
|
|
178
|
+
--error-8: #ec888e;
|
|
179
|
+
--error-main: #c64751;
|
|
180
|
+
--error-main-hover: #a03f46;
|
|
181
|
+
--error-main-disabled: #951114;
|
|
182
|
+
--error-main-light: rgba(227, 77, 89, 0.1);
|
|
183
|
+
--warning-main: #cf6e2d;
|
|
184
|
+
--warning-main-hover: #a75d2b;
|
|
185
|
+
--warning-main-disabled: #733c23;
|
|
186
|
+
--warning-main-light: rgba(237, 123, 47, 0.1);
|
|
187
|
+
--success-main: #059465;
|
|
188
|
+
--success-main-hover: #0d7a55;
|
|
189
|
+
--success-main-disabled: rgba(0, 168, 112, 0.25);
|
|
190
|
+
--success-main-light: rgba(0, 168, 112, 0.1);
|
|
191
|
+
--bg-color-theme-transparent: rgba(44, 44, 44, 0.6);
|
|
192
|
+
--bg-color-theme-secondary: #424242;
|
|
193
|
+
--bg-color-theme-surface: #4d4d4d;
|
|
194
|
+
--bg-color-theme-tertiary: #5e5e5e;
|
|
195
|
+
--theme-component-border: rgba(255, 255, 255, 0.06);
|
|
196
|
+
--bg-color-theme-radio: #424242;
|
|
197
|
+
--bg-color-theme-radio-active: #5e5e5e;
|
|
198
|
+
}
|
|
199
|
+
:root[theme-mode="dark"] img {
|
|
200
|
+
filter: brightness(0.85);
|
|
201
|
+
}
|
|
202
|
+
html,
|
|
203
|
+
body {
|
|
204
|
+
margin: 0;
|
|
205
|
+
padding: 0;
|
|
206
|
+
color: var(--text-secondary);
|
|
207
|
+
font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
|
|
208
|
+
font-size: 14px;
|
|
209
|
+
-webkit-font-smoothing: antialiased;
|
|
210
|
+
-moz-osx-font-smoothing: grayscale;
|
|
211
|
+
}
|
|
212
|
+
html::-webkit-scrollbar-corner,
|
|
213
|
+
body::-webkit-scrollbar-corner {
|
|
214
|
+
width: 0;
|
|
215
|
+
}
|
|
216
|
+
html::-webkit-scrollbar,
|
|
217
|
+
body::-webkit-scrollbar {
|
|
218
|
+
width: 16px;
|
|
219
|
+
height: 16px;
|
|
220
|
+
background: transparent;
|
|
221
|
+
}
|
|
222
|
+
html::-webkit-scrollbar-track,
|
|
223
|
+
body::-webkit-scrollbar-track {
|
|
224
|
+
background: var(--bg-color-page);
|
|
225
|
+
}
|
|
226
|
+
html::-webkit-scrollbar-thumb,
|
|
227
|
+
body::-webkit-scrollbar-thumb {
|
|
228
|
+
border-radius: 8px;
|
|
229
|
+
border: 4px solid transparent;
|
|
230
|
+
background-clip: content-box;
|
|
231
|
+
background-color: var(--bg-color-scroll);
|
|
232
|
+
}
|
|
233
|
+
ul,
|
|
234
|
+
dl,
|
|
235
|
+
ol {
|
|
236
|
+
margin: 0;
|
|
237
|
+
padding: 0;
|
|
238
|
+
padding-left: 1.2em;
|
|
239
|
+
line-height: 22px;
|
|
240
|
+
}
|
|
241
|
+
h1,
|
|
242
|
+
h2,
|
|
243
|
+
h3,
|
|
244
|
+
h4,
|
|
245
|
+
h5,
|
|
246
|
+
h6,
|
|
247
|
+
p {
|
|
248
|
+
margin: 0;
|
|
249
|
+
}
|
|
250
|
+
@font-face {
|
|
251
|
+
font-family: TencentSansW7;
|
|
252
|
+
src: url("../font/tencent-w7.ttf");
|
|
253
|
+
font-weight: normal;
|
|
254
|
+
font-style: normal;
|
|
255
|
+
font-display: swap;
|
|
256
|
+
}
|
|
257
|
+
@font-face {
|
|
258
|
+
font-family: TCloudNumber;
|
|
259
|
+
src: url("../font/TCloudNumber.ttf");
|
|
260
|
+
font-weight: normal;
|
|
261
|
+
font-style: normal;
|
|
262
|
+
font-display: swap;
|
|
263
|
+
}
|
|
264
|
+
/* stylelint-disable */
|
|
265
|
+
@keyframes gradient {
|
|
266
|
+
0% {
|
|
267
|
+
background-position: 0 0;
|
|
268
|
+
}
|
|
269
|
+
100% {
|
|
270
|
+
background-position: -200% 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
@keyframes nprogress-spinner {
|
|
274
|
+
0% {
|
|
275
|
+
transform: rotate(0deg);
|
|
276
|
+
}
|
|
277
|
+
100% {
|
|
278
|
+
transform: rotate(360deg);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
/* Make clicks pass-through */
|
|
282
|
+
#nprogress {
|
|
283
|
+
pointer-events: none;
|
|
284
|
+
}
|
|
285
|
+
#nprogress .bar {
|
|
286
|
+
position: fixed;
|
|
287
|
+
z-index: 1031;
|
|
288
|
+
top: 0;
|
|
289
|
+
left: 0;
|
|
290
|
+
width: 100%;
|
|
291
|
+
height: 4px;
|
|
292
|
+
background: repeating-linear-gradient(to right, #0062fa 0%, #ffbd2e 25%, #ff454f 50%, #ffbd2e 75%, #0062fa 100%);
|
|
293
|
+
background-size: 200% auto;
|
|
294
|
+
background-position: 0 100%;
|
|
295
|
+
animation: gradient 6s infinite;
|
|
296
|
+
animation-fill-mode: forwards;
|
|
297
|
+
animation-timing-function: linear;
|
|
298
|
+
}
|
|
299
|
+
/* Fancy blur effect */
|
|
300
|
+
#nprogress .peg {
|
|
301
|
+
display: block;
|
|
302
|
+
position: absolute;
|
|
303
|
+
right: 0px;
|
|
304
|
+
width: 100px;
|
|
305
|
+
height: 100%;
|
|
306
|
+
box-shadow: 0 0 10px #29d, 0 0 5px #29d;
|
|
307
|
+
opacity: 1;
|
|
308
|
+
transform: rotate(3deg) translate(0px, -4px);
|
|
309
|
+
}
|
|
310
|
+
/* Remove these to get rid of the spinner */
|
|
311
|
+
#nprogress .spinner {
|
|
312
|
+
display: none;
|
|
313
|
+
position: fixed;
|
|
314
|
+
z-index: 1031;
|
|
315
|
+
top: 15px;
|
|
316
|
+
right: 15px;
|
|
317
|
+
}
|
|
318
|
+
#nprogress .spinner-icon {
|
|
319
|
+
width: 18px;
|
|
320
|
+
height: 18px;
|
|
321
|
+
box-sizing: border-box;
|
|
322
|
+
border: solid 2px transparent;
|
|
323
|
+
border-top-color: #29d;
|
|
324
|
+
border-left-color: #29d;
|
|
325
|
+
border-radius: 50%;
|
|
326
|
+
animation: nprogress-spinner 400ms linear infinite;
|
|
327
|
+
}
|
|
328
|
+
.nprogress-custom-parent {
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
position: relative;
|
|
331
|
+
}
|
|
332
|
+
.nprogress-custom-parent #nprogress .spinner,
|
|
333
|
+
.nprogress-custom-parent #nprogress .bar {
|
|
334
|
+
position: absolute;
|
|
335
|
+
}
|
|
336
|
+
:root .__light__,
|
|
337
|
+
:root[theme-mode="light"] .__light__ {
|
|
338
|
+
display: block;
|
|
339
|
+
}
|
|
340
|
+
:root .__dark__,
|
|
341
|
+
:root[theme-mode="light"] .__dark__ {
|
|
342
|
+
display: none;
|
|
343
|
+
}
|
|
344
|
+
:root[theme-mode="dark"] .__light__ {
|
|
345
|
+
display: none;
|
|
346
|
+
}
|
|
347
|
+
:root[theme-mode="dark"] .__dark__ {
|
|
348
|
+
display: block;
|
|
349
|
+
}
|
|
350
|
+
div[name="DOC"] img,
|
|
351
|
+
div[name="API"] img,
|
|
352
|
+
div[name="DESIGN"] img {
|
|
353
|
+
max-width: 100%;
|
|
354
|
+
margin: 16px 0 8px;
|
|
355
|
+
}
|
|
356
|
+
div[name="DOC"] em,
|
|
357
|
+
div[name="API"] em,
|
|
358
|
+
div[name="DESIGN"] em {
|
|
359
|
+
font-size: 12px;
|
|
360
|
+
line-height: 20px;
|
|
361
|
+
}
|
|
362
|
+
div[name="DOC"] blockquote,
|
|
363
|
+
div[name="DEMO"] blockquote,
|
|
364
|
+
div[name="API"] blockquote,
|
|
365
|
+
div[name="DESIGN"] blockquote {
|
|
366
|
+
display: block;
|
|
367
|
+
overflow: auto;
|
|
368
|
+
border-left: 2px solid var(--component-border);
|
|
369
|
+
background: var(--bg-color-code);
|
|
370
|
+
color: var(--text-primary);
|
|
371
|
+
padding: 12px 12px 12px 24px;
|
|
372
|
+
margin: 16px 0;
|
|
373
|
+
}
|
|
374
|
+
div[name="DOC"] > ul:not([class]) li,
|
|
375
|
+
div[name="DEMO"] > ul:not([class]) li,
|
|
376
|
+
div[name="API"] > ul:not([class]) li,
|
|
377
|
+
div[name="DESIGN"] > ul:not([class]) li,
|
|
378
|
+
div[name="DOC"] > ol:not([class]) li,
|
|
379
|
+
div[name="DEMO"] > ol:not([class]) li,
|
|
380
|
+
div[name="API"] > ol:not([class]) li,
|
|
381
|
+
div[name="DESIGN"] > ol:not([class]) li {
|
|
382
|
+
margin-top: 4px;
|
|
383
|
+
}
|
|
384
|
+
div[name="DOC"] > h5:not([class]),
|
|
385
|
+
div[name="DEMO"] > h5:not([class]),
|
|
386
|
+
div[name="API"] > h5:not([class]),
|
|
387
|
+
div[name="DESIGN"] > h5:not([class]) {
|
|
388
|
+
font-weight: 500;
|
|
389
|
+
}
|
|
390
|
+
div[name="DOC"] > p:not([class]),
|
|
391
|
+
div[name="DEMO"] > p:not([class]),
|
|
392
|
+
div[name="API"] > p:not([class]),
|
|
393
|
+
div[name="DESIGN"] > p:not([class]) {
|
|
394
|
+
margin: 16px 0 8px;
|
|
395
|
+
}
|
|
396
|
+
div[name="DOC"] > :first-child,
|
|
397
|
+
div[name="DEMO"] > :first-child,
|
|
398
|
+
div[name="API"] > :first-child,
|
|
399
|
+
div[name="DESIGN"] > :first-child {
|
|
400
|
+
margin-top: 0;
|
|
401
|
+
}
|
|
402
|
+
div[name="DOC"] pre,
|
|
403
|
+
div[name="DEMO"] pre,
|
|
404
|
+
div[name="API"] pre,
|
|
405
|
+
div[name="DESIGN"] pre {
|
|
406
|
+
color: var(--text-primary);
|
|
407
|
+
padding: 20px 24px;
|
|
408
|
+
border-radius: 6px;
|
|
409
|
+
border: 1px solid var(--component-border);
|
|
410
|
+
background: var(--bg-color-code);
|
|
411
|
+
overflow: auto;
|
|
412
|
+
position: relative;
|
|
413
|
+
}
|
|
414
|
+
div[name="DOC"] pre:hover::-webkit-scrollbar-thumb,
|
|
415
|
+
div[name="DEMO"] pre:hover::-webkit-scrollbar-thumb,
|
|
416
|
+
div[name="API"] pre:hover::-webkit-scrollbar-thumb,
|
|
417
|
+
div[name="DESIGN"] pre:hover::-webkit-scrollbar-thumb {
|
|
418
|
+
background-color: var(--bg-color-scroll);
|
|
419
|
+
}
|
|
420
|
+
div[name="DOC"] pre::-webkit-scrollbar-corner,
|
|
421
|
+
div[name="DEMO"] pre::-webkit-scrollbar-corner,
|
|
422
|
+
div[name="API"] pre::-webkit-scrollbar-corner,
|
|
423
|
+
div[name="DESIGN"] pre::-webkit-scrollbar-corner {
|
|
424
|
+
width: 0;
|
|
425
|
+
}
|
|
426
|
+
div[name="DOC"] pre::-webkit-scrollbar,
|
|
427
|
+
div[name="DEMO"] pre::-webkit-scrollbar,
|
|
428
|
+
div[name="API"] pre::-webkit-scrollbar,
|
|
429
|
+
div[name="DESIGN"] pre::-webkit-scrollbar {
|
|
430
|
+
width: 12px;
|
|
431
|
+
height: 12px;
|
|
432
|
+
background-color: transparent;
|
|
433
|
+
}
|
|
434
|
+
div[name="DOC"] pre::-webkit-scrollbar-thumb,
|
|
435
|
+
div[name="DEMO"] pre::-webkit-scrollbar-thumb,
|
|
436
|
+
div[name="API"] pre::-webkit-scrollbar-thumb,
|
|
437
|
+
div[name="DESIGN"] pre::-webkit-scrollbar-thumb {
|
|
438
|
+
border-radius: 6px;
|
|
439
|
+
border: 4px solid transparent;
|
|
440
|
+
background-clip: content-box;
|
|
441
|
+
background-color: transparent;
|
|
442
|
+
}
|
|
443
|
+
div[name="DOC"] *:not(pre) > code,
|
|
444
|
+
div[name="DEMO"] *:not(pre) > code,
|
|
445
|
+
div[name="API"] *:not(pre) > code,
|
|
446
|
+
div[name="DESIGN"] *:not(pre) > code {
|
|
447
|
+
margin: 0 2px;
|
|
448
|
+
color: var(--error-8);
|
|
449
|
+
background: var(--error-1);
|
|
450
|
+
border-radius: 3px;
|
|
451
|
+
padding: 2px 6px;
|
|
452
|
+
font-size: 12px;
|
|
453
|
+
word-break: break-word;
|
|
454
|
+
}
|
|
455
|
+
div[name="DOC"] code,
|
|
456
|
+
div[name="DEMO"] code,
|
|
457
|
+
div[name="API"] code,
|
|
458
|
+
div[name="DESIGN"] code,
|
|
459
|
+
div[name="DOC"] code *,
|
|
460
|
+
div[name="DEMO"] code *,
|
|
461
|
+
div[name="API"] code *,
|
|
462
|
+
div[name="DESIGN"] code * {
|
|
463
|
+
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
|
|
464
|
+
}
|
|
465
|
+
div[name="DOC"] a:not([class]),
|
|
466
|
+
div[name="DEMO"] a:not([class]),
|
|
467
|
+
div[name="API"] a:not([class]),
|
|
468
|
+
div[name="DESIGN"] a:not([class]) {
|
|
469
|
+
line-height: 24px;
|
|
470
|
+
text-decoration: none;
|
|
471
|
+
color: var(--text-interactive);
|
|
472
|
+
}
|
|
473
|
+
div[name="DOC"] > table,
|
|
474
|
+
div[name="DEMO"] > table,
|
|
475
|
+
div[name="API"] > table,
|
|
476
|
+
div[name="DESIGN"] > table {
|
|
477
|
+
width: 100%;
|
|
478
|
+
background: var(--bg-color-table);
|
|
479
|
+
border-radius: 6px;
|
|
480
|
+
border-collapse: collapse;
|
|
481
|
+
overflow: hidden;
|
|
482
|
+
margin: 16px 0;
|
|
483
|
+
box-shadow: var(--table-box-shadow);
|
|
484
|
+
}
|
|
485
|
+
div[name="DOC"] > table thead,
|
|
486
|
+
div[name="DEMO"] > table thead,
|
|
487
|
+
div[name="API"] > table thead,
|
|
488
|
+
div[name="DESIGN"] > table thead {
|
|
489
|
+
background: var(--bg-color-tag);
|
|
490
|
+
font-weight: normal;
|
|
491
|
+
}
|
|
492
|
+
div[name="DOC"] > table thead th,
|
|
493
|
+
div[name="DEMO"] > table thead th,
|
|
494
|
+
div[name="API"] > table thead th,
|
|
495
|
+
div[name="DESIGN"] > table thead th {
|
|
496
|
+
border: 0;
|
|
497
|
+
}
|
|
498
|
+
div[name="DOC"] > table thead tr:hover,
|
|
499
|
+
div[name="DEMO"] > table thead tr:hover,
|
|
500
|
+
div[name="API"] > table thead tr:hover,
|
|
501
|
+
div[name="DESIGN"] > table thead tr:hover {
|
|
502
|
+
background: var(--bg-color-tag);
|
|
503
|
+
}
|
|
504
|
+
div[name="DOC"] > table tr,
|
|
505
|
+
div[name="DEMO"] > table tr,
|
|
506
|
+
div[name="API"] > table tr,
|
|
507
|
+
div[name="DESIGN"] > table tr {
|
|
508
|
+
transition: all 0.2s;
|
|
509
|
+
}
|
|
510
|
+
div[name="DOC"] > table tr:hover,
|
|
511
|
+
div[name="DEMO"] > table tr:hover,
|
|
512
|
+
div[name="API"] > table tr:hover,
|
|
513
|
+
div[name="DESIGN"] > table tr:hover {
|
|
514
|
+
background-color: var(--bg-color-table-hover);
|
|
515
|
+
}
|
|
516
|
+
div[name="DOC"] > table td:first-child,
|
|
517
|
+
div[name="DEMO"] > table td:first-child,
|
|
518
|
+
div[name="API"] > table td:first-child,
|
|
519
|
+
div[name="DESIGN"] > table td:first-child {
|
|
520
|
+
font-weight: bold;
|
|
521
|
+
}
|
|
522
|
+
div[name="DOC"] > table td:nth-child(1),
|
|
523
|
+
div[name="DEMO"] > table td:nth-child(1),
|
|
524
|
+
div[name="API"] > table td:nth-child(1),
|
|
525
|
+
div[name="DESIGN"] > table td:nth-child(1) {
|
|
526
|
+
font-weight: bold;
|
|
527
|
+
}
|
|
528
|
+
div[name="DOC"] > table td:nth-child(4),
|
|
529
|
+
div[name="DEMO"] > table td:nth-child(4),
|
|
530
|
+
div[name="API"] > table td:nth-child(4),
|
|
531
|
+
div[name="DESIGN"] > table td:nth-child(4) {
|
|
532
|
+
word-break: break-all;
|
|
533
|
+
}
|
|
534
|
+
div[name="DOC"] > table th,
|
|
535
|
+
div[name="DEMO"] > table th,
|
|
536
|
+
div[name="API"] > table th,
|
|
537
|
+
div[name="DESIGN"] > table th,
|
|
538
|
+
div[name="DOC"] > table td,
|
|
539
|
+
div[name="DEMO"] > table td,
|
|
540
|
+
div[name="API"] > table td,
|
|
541
|
+
div[name="DESIGN"] > table td {
|
|
542
|
+
padding: 16px;
|
|
543
|
+
line-height: 22px;
|
|
544
|
+
text-align: left;
|
|
545
|
+
font-size: 14px;
|
|
546
|
+
border-bottom: 1px solid var(--component-stroke);
|
|
547
|
+
}
|
|
548
|
+
div[name="DOC"] > table th,
|
|
549
|
+
div[name="DEMO"] > table th,
|
|
550
|
+
div[name="API"] > table th,
|
|
551
|
+
div[name="DESIGN"] > table th {
|
|
552
|
+
white-space: nowrap;
|
|
553
|
+
}
|
|
554
|
+
div[name="DOC"] nav + h1,
|
|
555
|
+
div[name="DEMO"] nav + h1,
|
|
556
|
+
div[name="API"] nav + h1,
|
|
557
|
+
div[name="DESIGN"] nav + h1,
|
|
558
|
+
div[name="DOC"] nav + h2,
|
|
559
|
+
div[name="DEMO"] nav + h2,
|
|
560
|
+
div[name="API"] nav + h2,
|
|
561
|
+
div[name="DESIGN"] nav + h2,
|
|
562
|
+
div[name="DOC"] nav + h3,
|
|
563
|
+
div[name="DEMO"] nav + h3,
|
|
564
|
+
div[name="API"] nav + h3,
|
|
565
|
+
div[name="DESIGN"] nav + h3,
|
|
566
|
+
div[name="DOC"] nav + h4,
|
|
567
|
+
div[name="DEMO"] nav + h4,
|
|
568
|
+
div[name="API"] nav + h4,
|
|
569
|
+
div[name="DESIGN"] nav + h4 {
|
|
570
|
+
margin-top: 0;
|
|
571
|
+
}
|
|
572
|
+
div[name="DOC"] > h1,
|
|
573
|
+
div[name="DEMO"] > h1,
|
|
574
|
+
div[name="API"] > h1,
|
|
575
|
+
div[name="DESIGN"] > h1 {
|
|
576
|
+
font-weight: bold;
|
|
577
|
+
font-size: 48px;
|
|
578
|
+
line-height: 56px;
|
|
579
|
+
margin-bottom: 24px;
|
|
580
|
+
}
|
|
581
|
+
div[name="DOC"] > h2,
|
|
582
|
+
div[name="DEMO"] > h2,
|
|
583
|
+
div[name="API"] > h2,
|
|
584
|
+
div[name="DESIGN"] > h2 {
|
|
585
|
+
font-weight: bold;
|
|
586
|
+
font-size: 28px;
|
|
587
|
+
line-height: 36px;
|
|
588
|
+
margin: 64px 0 24px;
|
|
589
|
+
display: flex;
|
|
590
|
+
align-items: center;
|
|
591
|
+
}
|
|
592
|
+
div[name="DOC"] > h2 .tdesign-header-anchor,
|
|
593
|
+
div[name="DEMO"] > h2 .tdesign-header-anchor,
|
|
594
|
+
div[name="API"] > h2 .tdesign-header-anchor,
|
|
595
|
+
div[name="DESIGN"] > h2 .tdesign-header-anchor,
|
|
596
|
+
div[name="DOC"] > h2 .header-anchor,
|
|
597
|
+
div[name="DEMO"] > h2 .header-anchor,
|
|
598
|
+
div[name="API"] > h2 .header-anchor,
|
|
599
|
+
div[name="DESIGN"] > h2 .header-anchor {
|
|
600
|
+
width: 32px;
|
|
601
|
+
height: 32px;
|
|
602
|
+
background-image: url(../images/link.svg);
|
|
603
|
+
background-repeat: no-repeat;
|
|
604
|
+
background-size: 100% auto;
|
|
605
|
+
margin-left: 8px;
|
|
606
|
+
font-size: 0;
|
|
607
|
+
}
|
|
608
|
+
div[name="DOC"] > h2:hover a,
|
|
609
|
+
div[name="DEMO"] > h2:hover a,
|
|
610
|
+
div[name="API"] > h2:hover a,
|
|
611
|
+
div[name="DESIGN"] > h2:hover a {
|
|
612
|
+
opacity: 1;
|
|
613
|
+
}
|
|
614
|
+
div[name="DOC"] > h3,
|
|
615
|
+
div[name="DEMO"] > h3,
|
|
616
|
+
div[name="API"] > h3,
|
|
617
|
+
div[name="DESIGN"] > h3 {
|
|
618
|
+
font-weight: bold;
|
|
619
|
+
font-size: 20px;
|
|
620
|
+
line-height: 28px;
|
|
621
|
+
margin: 48px 0 8px;
|
|
622
|
+
display: flex;
|
|
623
|
+
align-items: center;
|
|
624
|
+
white-space: pre-wrap;
|
|
625
|
+
}
|
|
626
|
+
div[name="DOC"] > h3 .tdesign-header-anchor,
|
|
627
|
+
div[name="DEMO"] > h3 .tdesign-header-anchor,
|
|
628
|
+
div[name="API"] > h3 .tdesign-header-anchor,
|
|
629
|
+
div[name="DESIGN"] > h3 .tdesign-header-anchor,
|
|
630
|
+
div[name="DOC"] > h3 .header-anchor,
|
|
631
|
+
div[name="DEMO"] > h3 .header-anchor,
|
|
632
|
+
div[name="API"] > h3 .header-anchor,
|
|
633
|
+
div[name="DESIGN"] > h3 .header-anchor {
|
|
634
|
+
width: 24px;
|
|
635
|
+
height: 24px;
|
|
636
|
+
background-image: url(../images/link.svg);
|
|
637
|
+
background-repeat: no-repeat;
|
|
638
|
+
background-size: 100% auto;
|
|
639
|
+
margin-left: 8px;
|
|
640
|
+
font-size: 0;
|
|
641
|
+
}
|
|
642
|
+
div[name="DOC"] > h3:hover a,
|
|
643
|
+
div[name="DEMO"] > h3:hover a,
|
|
644
|
+
div[name="API"] > h3:hover a,
|
|
645
|
+
div[name="DESIGN"] > h3:hover a {
|
|
646
|
+
opacity: 1;
|
|
647
|
+
}
|
|
648
|
+
div[name="DOC"] > h4,
|
|
649
|
+
div[name="DEMO"] > h4,
|
|
650
|
+
div[name="API"] > h4,
|
|
651
|
+
div[name="DESIGN"] > h4 {
|
|
652
|
+
font-size: 16px;
|
|
653
|
+
line-height: 24px;
|
|
654
|
+
margin: 32px 0 8px;
|
|
655
|
+
font-weight: bold;
|
|
656
|
+
display: flex;
|
|
657
|
+
align-items: center;
|
|
658
|
+
}
|
|
659
|
+
div[name="DOC"] > h4 .tdesign-header-anchor,
|
|
660
|
+
div[name="DEMO"] > h4 .tdesign-header-anchor,
|
|
661
|
+
div[name="API"] > h4 .tdesign-header-anchor,
|
|
662
|
+
div[name="DESIGN"] > h4 .tdesign-header-anchor,
|
|
663
|
+
div[name="DOC"] > h4 .header-anchor,
|
|
664
|
+
div[name="DEMO"] > h4 .header-anchor,
|
|
665
|
+
div[name="API"] > h4 .header-anchor,
|
|
666
|
+
div[name="DESIGN"] > h4 .header-anchor {
|
|
667
|
+
width: 20px;
|
|
668
|
+
height: 20px;
|
|
669
|
+
background-image: url(../images/link.svg);
|
|
670
|
+
background-repeat: no-repeat;
|
|
671
|
+
background-size: 100% auto;
|
|
672
|
+
margin-left: 8px;
|
|
673
|
+
font-size: 0;
|
|
674
|
+
}
|
|
675
|
+
div[name="DOC"] > h4:hover a,
|
|
676
|
+
div[name="DEMO"] > h4:hover a,
|
|
677
|
+
div[name="API"] > h4:hover a,
|
|
678
|
+
div[name="DESIGN"] > h4:hover a {
|
|
679
|
+
opacity: 1;
|
|
680
|
+
}
|
|
681
|
+
div[name="DOC"] > h5,
|
|
682
|
+
div[name="DEMO"] > h5,
|
|
683
|
+
div[name="API"] > h5,
|
|
684
|
+
div[name="DESIGN"] > h5 {
|
|
685
|
+
font-size: 14px;
|
|
686
|
+
line-height: 22px;
|
|
687
|
+
margin: 8px 0 16px;
|
|
688
|
+
font-weight: normal;
|
|
689
|
+
}
|
|
690
|
+
div[name="DOC"] > h5 .tdesign-header-anchor,
|
|
691
|
+
div[name="DEMO"] > h5 .tdesign-header-anchor,
|
|
692
|
+
div[name="API"] > h5 .tdesign-header-anchor,
|
|
693
|
+
div[name="DESIGN"] > h5 .tdesign-header-anchor,
|
|
694
|
+
div[name="DOC"] > h5 .header-anchor,
|
|
695
|
+
div[name="DEMO"] > h5 .header-anchor,
|
|
696
|
+
div[name="API"] > h5 .header-anchor,
|
|
697
|
+
div[name="DESIGN"] > h5 .header-anchor {
|
|
698
|
+
display: none;
|
|
699
|
+
}
|
|
700
|
+
div[name="DOC"] > p,
|
|
701
|
+
div[name="DEMO"] > p,
|
|
702
|
+
div[name="API"] > p,
|
|
703
|
+
div[name="DESIGN"] > p {
|
|
704
|
+
font-size: 14px;
|
|
705
|
+
line-height: 22px;
|
|
706
|
+
color: var(--text-primary);
|
|
707
|
+
}
|
|
708
|
+
div[name="DOC"] hr,
|
|
709
|
+
div[name="DEMO"] hr,
|
|
710
|
+
div[name="API"] hr,
|
|
711
|
+
div[name="DESIGN"] hr {
|
|
712
|
+
opacity: 0;
|
|
713
|
+
margin: 16px 0;
|
|
714
|
+
}
|
|
715
|
+
div[name="DOC"] .tdesign-header-anchor,
|
|
716
|
+
div[name="DEMO"] .tdesign-header-anchor,
|
|
717
|
+
div[name="API"] .tdesign-header-anchor,
|
|
718
|
+
div[name="DESIGN"] .tdesign-header-anchor,
|
|
719
|
+
div[name="DOC"] .header-anchor,
|
|
720
|
+
div[name="DEMO"] .header-anchor,
|
|
721
|
+
div[name="API"] .header-anchor,
|
|
722
|
+
div[name="DESIGN"] .header-anchor {
|
|
723
|
+
text-decoration: none;
|
|
724
|
+
transition: opacity 0.3s;
|
|
725
|
+
opacity: 0;
|
|
726
|
+
}
|
|
727
|
+
.tdesign-toc_container {
|
|
728
|
+
width: 240px;
|
|
729
|
+
padding-right: 10px;
|
|
730
|
+
max-height: 480px;
|
|
731
|
+
max-height: min(calc(100vh - 550px), 480px);
|
|
732
|
+
overflow: hidden auto;
|
|
733
|
+
position: absolute;
|
|
734
|
+
right: 24px;
|
|
735
|
+
top: 316px;
|
|
736
|
+
box-sizing: border-box;
|
|
737
|
+
}
|
|
738
|
+
@media screen and (max-width: 960px) {
|
|
739
|
+
.tdesign-toc_container {
|
|
740
|
+
display: none;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
.tdesign-toc_container::-webkit-scrollbar-corner {
|
|
744
|
+
width: 0;
|
|
745
|
+
}
|
|
746
|
+
.tdesign-toc_container::-webkit-scrollbar {
|
|
747
|
+
width: 12px;
|
|
748
|
+
height: 12px;
|
|
749
|
+
background: transparent;
|
|
750
|
+
}
|
|
751
|
+
.tdesign-toc_container::-webkit-scrollbar-thumb {
|
|
752
|
+
border-radius: 6px;
|
|
753
|
+
border: 4px solid transparent;
|
|
754
|
+
background-clip: content-box;
|
|
755
|
+
background-color: var(--bg-color-scroll);
|
|
756
|
+
}
|
|
757
|
+
.tdesign-toc_container .tdesign-toc_list {
|
|
758
|
+
padding-left: 0;
|
|
759
|
+
font-size: 12px;
|
|
760
|
+
line-height: 20px;
|
|
761
|
+
list-style: none;
|
|
762
|
+
border-left: 1px solid var(--component-stroke);
|
|
763
|
+
}
|
|
764
|
+
.tdesign-toc_container .tdesign-toc_list .tdesign-toc_list_item {
|
|
765
|
+
list-style: none;
|
|
766
|
+
margin-left: 0;
|
|
767
|
+
padding-left: 0;
|
|
768
|
+
}
|
|
769
|
+
.tdesign-toc_container .tdesign-toc_list .tdesign-toc_list_item .tdesign-toc_list {
|
|
770
|
+
border-left: 0;
|
|
771
|
+
text-indent: 16px;
|
|
772
|
+
}
|
|
773
|
+
.tdesign-toc_container .tdesign-toc_list .tdesign-toc_list_item_a {
|
|
774
|
+
margin-left: -1px;
|
|
775
|
+
padding-left: 16px;
|
|
776
|
+
margin-bottom: 4px;
|
|
777
|
+
overflow: hidden;
|
|
778
|
+
color: var(--text-secondary);
|
|
779
|
+
display: block;
|
|
780
|
+
text-decoration: none;
|
|
781
|
+
white-space: nowrap;
|
|
782
|
+
text-overflow: ellipsis;
|
|
783
|
+
border-left: 1px solid transparent;
|
|
784
|
+
}
|
|
785
|
+
.tdesign-toc_container .tdesign-toc_list .tdesign-toc_list_item_a:hover {
|
|
786
|
+
color: var(--text-primary);
|
|
787
|
+
}
|
|
788
|
+
.tdesign-toc_container .tdesign-toc_list .tdesign-toc_list_item_a.active {
|
|
789
|
+
color: var(--brand-main);
|
|
790
|
+
border-left: 1px solid var(--brand-main);
|
|
791
|
+
}
|
|
792
|
+
div[name="DESIGN"] h5 + .legend {
|
|
793
|
+
margin-top: -16px;
|
|
794
|
+
}
|
|
795
|
+
div[name="DESIGN"] img {
|
|
796
|
+
display: block;
|
|
797
|
+
border-radius: 6px;
|
|
798
|
+
border: 1px solid var(--component-border);
|
|
799
|
+
}
|
|
800
|
+
div[name="DESIGN"] img.tag {
|
|
801
|
+
margin: 0;
|
|
802
|
+
width: 25%;
|
|
803
|
+
max-width: 60px;
|
|
804
|
+
border: 0;
|
|
805
|
+
}
|
|
806
|
+
div[name="DESIGN"] .legend {
|
|
807
|
+
display: flex;
|
|
808
|
+
justify-content: space-between;
|
|
809
|
+
align-items: flex-start;
|
|
810
|
+
flex-wrap: wrap;
|
|
811
|
+
}
|
|
812
|
+
div[name="DESIGN"] .legend .item {
|
|
813
|
+
width: calc(50% - 12px);
|
|
814
|
+
}
|
|
815
|
+
div[name="DOC"] image {
|
|
816
|
+
margin: 0;
|
|
817
|
+
border-radius: 6px;
|
|
818
|
+
border: 1px solid var(--component-stroke);
|
|
819
|
+
}
|
|
820
|
+
div[name="DOC"] h3 .tag {
|
|
821
|
+
color: var(--text-secondary);
|
|
822
|
+
padding: 0 12px;
|
|
823
|
+
border-radius: 3px;
|
|
824
|
+
background: var(--component-border);
|
|
825
|
+
margin-left: 8px;
|
|
826
|
+
font-style: normal;
|
|
827
|
+
line-height: 24px;
|
|
828
|
+
font-size: 16px;
|
|
829
|
+
font-weight: 600;
|
|
830
|
+
}
|
|
831
|
+
div[name="DOC"] .image-group {
|
|
832
|
+
margin-top: 16px;
|
|
833
|
+
display: flex;
|
|
834
|
+
flex-wrap: wrap;
|
|
835
|
+
column-gap: 16px;
|
|
836
|
+
row-gap: 16px;
|
|
837
|
+
}
|
|
838
|
+
div[name="DOC"] .image-wrapper {
|
|
839
|
+
background: var(--bg-color-code);
|
|
840
|
+
border-radius: 6px;
|
|
841
|
+
padding: 12px;
|
|
842
|
+
box-sizing: border-box;
|
|
843
|
+
}
|
|
844
|
+
@media screen and (min-width: 1440px) {
|
|
845
|
+
div[name="DOC"] .image-wrapper {
|
|
846
|
+
width: calc((100% - 48px) / 4);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
@media screen and (min-width: 750px) and (max-width: 1439px) {
|
|
850
|
+
div[name="DOC"] .image-wrapper {
|
|
851
|
+
width: calc((100% - 32px) / 3);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
@media screen and (max-width: 749px) {
|
|
855
|
+
div[name="DOC"] .image-wrapper {
|
|
856
|
+
width: calc((100% - 16px) / 2);
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
div[name="DOC"] .image-wrapper .item {
|
|
860
|
+
background: var(--bg-color-card);
|
|
861
|
+
border-radius: 3px;
|
|
862
|
+
padding: 12px 16px;
|
|
863
|
+
display: inline-block;
|
|
864
|
+
width: 100%;
|
|
865
|
+
box-sizing: border-box;
|
|
866
|
+
cursor: pointer;
|
|
867
|
+
text-decoration: none;
|
|
868
|
+
transition: transform 0.24s cubic-bezier(0.38, 0, 0.24, 1), box-shadow 0.24s linear, opacity 0.24s linear;
|
|
869
|
+
}
|
|
870
|
+
div[name="DOC"] .image-wrapper .item:hover {
|
|
871
|
+
color: var(--text-primary);
|
|
872
|
+
transform: translateY(-2px);
|
|
873
|
+
box-shadow: 0px 6px 30px 5px rgba(0, 0, 0, 0.05), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 8px 10px -5px rgba(0, 0, 0, 0.08);
|
|
874
|
+
}
|
|
875
|
+
div[name="DOC"] .image-wrapper .item:hover .name {
|
|
876
|
+
color: var(--text-primary);
|
|
877
|
+
}
|
|
878
|
+
div[name="DOC"] .image-wrapper .item img {
|
|
879
|
+
margin: 8px 0;
|
|
880
|
+
max-width: 100%;
|
|
881
|
+
width: 100%;
|
|
882
|
+
height: auto;
|
|
883
|
+
filter: none;
|
|
884
|
+
}
|
|
885
|
+
div[name="DOC"] .image-wrapper .item .name {
|
|
886
|
+
line-height: 22px;
|
|
887
|
+
color: var(--text-secondary);
|
|
888
|
+
text-overflow: ellipsis;
|
|
889
|
+
overflow: hidden;
|
|
890
|
+
white-space: pre;
|
|
891
|
+
transition: all 0.2s linear;
|
|
892
|
+
}
|
|
893
|
+
@media screen and (max-width: 960px) {
|
|
894
|
+
div[name='API'] {
|
|
895
|
+
overflow-x: auto;
|
|
896
|
+
}
|
|
897
|
+
div[name='API'] table {
|
|
898
|
+
width: 225%;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
div[name="DOC"].timeline {
|
|
902
|
+
padding-left: 32px;
|
|
903
|
+
position: relative;
|
|
904
|
+
overflow: hidden;
|
|
905
|
+
}
|
|
906
|
+
div[name="DOC"].timeline::after {
|
|
907
|
+
content: '';
|
|
908
|
+
position: absolute;
|
|
909
|
+
top: 24px;
|
|
910
|
+
left: 3px;
|
|
911
|
+
width: 2px;
|
|
912
|
+
height: 100%;
|
|
913
|
+
background: var(--brand-main);
|
|
914
|
+
}
|
|
915
|
+
div[name="DOC"].timeline h2 {
|
|
916
|
+
position: relative;
|
|
917
|
+
}
|
|
918
|
+
div[name="DOC"].timeline h2 td-code,
|
|
919
|
+
div[name="DOC"].timeline h2 code {
|
|
920
|
+
padding: 2px 12px;
|
|
921
|
+
border-radius: 3px;
|
|
922
|
+
background: var(--bg-color-tag);
|
|
923
|
+
margin-left: 24px;
|
|
924
|
+
color: var(--text-primary);
|
|
925
|
+
font-size: 20px;
|
|
926
|
+
}
|
|
927
|
+
div[name="DOC"].timeline h2::before {
|
|
928
|
+
content: '';
|
|
929
|
+
position: absolute;
|
|
930
|
+
left: -32px;
|
|
931
|
+
width: 8px;
|
|
932
|
+
height: 8px;
|
|
933
|
+
border: 2px solid var(--brand-main);
|
|
934
|
+
background: var(--bg-color-docpage);
|
|
935
|
+
outline: 8px solid var(--bg-color-docpage);
|
|
936
|
+
box-sizing: border-box;
|
|
937
|
+
border-radius: 50%;
|
|
938
|
+
z-index: 10;
|
|
939
|
+
}
|
|
940
|
+
div[name="DOC"].timeline h2:last-of-type::after {
|
|
941
|
+
content: '';
|
|
942
|
+
position: absolute;
|
|
943
|
+
top: 30px;
|
|
944
|
+
left: -32px;
|
|
945
|
+
z-index: 10;
|
|
946
|
+
width: 8px;
|
|
947
|
+
height: 9999px;
|
|
948
|
+
background: var(--bg-color-docpage);
|
|
949
|
+
}
|
|
950
|
+
div[name="DOC"].timeline h3 {
|
|
951
|
+
font-size: 20px;
|
|
952
|
+
line-height: 28px;
|
|
953
|
+
}
|
|
954
|
+
@keyframes light-to-dark {
|
|
955
|
+
from {
|
|
956
|
+
clip-path: polygon(0 0, 0 0, calc(0.14054083 * -100vh) 100%, calc(0.14054083 * -100vh) 100%);
|
|
957
|
+
}
|
|
958
|
+
to {
|
|
959
|
+
clip-path: polygon(0 0, calc((0.14054083 * 100vh) + 100%) 0, 100% 100%, calc(0.14054083 * -100vh) 100%);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
@keyframes dark-to-light {
|
|
963
|
+
from {
|
|
964
|
+
clip-path: polygon(calc((0.14054083 * 100vh) + 100%) 0, calc((0.14054083 * 100vh) + 100%) 0, 100% 100%, 100% 100%);
|
|
965
|
+
}
|
|
966
|
+
to {
|
|
967
|
+
clip-path: polygon(0 0, calc((0.14054083 * 100vh) + 100%) 0, 100% 100%, calc(0.14054083 * -100vh) 100%);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
:root::view-transition-group(root) {
|
|
971
|
+
animation-duration: 1s;
|
|
972
|
+
}
|
|
973
|
+
:root::view-transition-new(root),
|
|
974
|
+
:root::view-transition-old(root) {
|
|
975
|
+
mix-blend-mode: normal;
|
|
976
|
+
}
|
|
977
|
+
:root::view-transition-old(root),
|
|
978
|
+
:root[theme-mode='dark']::view-transition-old(root) {
|
|
979
|
+
animation: none;
|
|
980
|
+
}
|
|
981
|
+
:root::view-transition-new(root) {
|
|
982
|
+
animation-name: dark-to-light;
|
|
983
|
+
}
|
|
984
|
+
:root[theme-mode='dark']::view-transition-new(root) {
|
|
985
|
+
animation-name: light-to-dark;
|
|
986
|
+
}
|