@ts-element-ui/theme-chalk 0.0.0-stage → 1.3.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/dist/components/avatar.css +156 -0
- package/dist/components/backtop.css +151 -0
- package/dist/components/badge.css +166 -0
- package/dist/components/breadcrumb.css +147 -0
- package/dist/components/button.css +282 -0
- package/dist/components/calendar.css +193 -0
- package/dist/components/carousel.css +234 -0
- package/dist/components/cascader.css +369 -0
- package/dist/components/checkbox.css +205 -0
- package/dist/components/collapse.css +173 -0
- package/dist/components/color-picker.css +420 -0
- package/dist/components/container.css +502 -0
- package/dist/components/date-picker.css +433 -0
- package/dist/components/descriptions.css +165 -0
- package/dist/components/dialog.css +201 -0
- package/dist/components/divider.css +171 -0
- package/dist/components/drawer.css +253 -0
- package/dist/components/dropdown.css +181 -0
- package/dist/components/empty.css +141 -0
- package/dist/components/form.css +173 -0
- package/dist/components/icon.css +150 -0
- package/dist/components/image.css +256 -0
- package/dist/components/input-number.css +183 -0
- package/dist/components/input.css +207 -0
- package/dist/components/link.css +162 -0
- package/dist/components/mention.css +196 -0
- package/dist/components/message.css +195 -0
- package/dist/components/messagebox.css +220 -0
- package/dist/components/pagination.css +199 -0
- package/dist/components/progress.css +201 -0
- package/dist/components/radio.css +198 -0
- package/dist/components/rate.css +169 -0
- package/dist/components/result.css +162 -0
- package/dist/components/scrollbar.css +185 -0
- package/dist/components/select.css +229 -0
- package/dist/components/skeleton.css +169 -0
- package/dist/components/slider.css +286 -0
- package/dist/components/space.css +152 -0
- package/dist/components/steps.css +224 -0
- package/dist/components/switch.css +171 -0
- package/dist/components/table.css +275 -0
- package/dist/components/tabs.css +204 -0
- package/dist/components/tag.css +204 -0
- package/dist/components/time-picker.css +266 -0
- package/dist/components/timeline.css +183 -0
- package/dist/components/tooltip.css +208 -0
- package/dist/components/transfer.css +208 -0
- package/dist/components/tree.css +259 -0
- package/dist/index.css +1 -0
- package/dist/index.js +84 -0
- package/package.json +63 -4
- package/src/_generate.ps1 +0 -0
- package/src/avatar.scss +29 -0
- package/src/backtop.scss +40 -0
- package/src/badge.scss +55 -0
- package/src/breadcrumb.scss +36 -0
- package/src/button.scss +207 -0
- package/src/calendar.scss +75 -0
- package/src/carousel.scss +134 -0
- package/src/cascader.scss +246 -0
- package/src/checkbox.scss +105 -0
- package/src/collapse.scss +62 -0
- package/src/color-picker.scss +340 -0
- package/src/common/var.css +110 -0
- package/src/common/var.scss +84 -0
- package/src/container.scss +78 -0
- package/src/date-picker.scss +327 -0
- package/src/descriptions.scss +59 -0
- package/src/dialog.scss +78 -0
- package/src/divider.scss +64 -0
- package/src/drawer.scss +131 -0
- package/src/dropdown.scss +52 -0
- package/src/empty.scss +30 -0
- package/src/form.scss +62 -0
- package/src/icon.scss +28 -0
- package/src/image.scss +160 -0
- package/src/index.scss +95 -0
- package/src/index.ts +6 -0
- package/src/input-number.scss +76 -0
- package/src/input.scss +91 -0
- package/src/link.scss +39 -0
- package/src/mention.scss +90 -0
- package/src/message.scss +80 -0
- package/src/messagebox.scss +106 -0
- package/src/pagination.scss +84 -0
- package/src/progress.scss +89 -0
- package/src/radio.scss +92 -0
- package/src/rate.scss +58 -0
- package/src/result.scss +47 -0
- package/src/scrollbar.scss +82 -0
- package/src/select.scss +106 -0
- package/src/skeleton.scss +41 -0
- package/src/slider.scss +198 -0
- package/src/space.scss +24 -0
- package/src/steps.scss +119 -0
- package/src/switch.scss +63 -0
- package/src/table.scss +191 -0
- package/src/tabs.scss +90 -0
- package/src/tag.scss +93 -0
- package/src/themes.ts +91 -0
- package/src/time-picker.scss +177 -0
- package/src/timeline.scss +59 -0
- package/src/tooltip.scss +66 -0
- package/src/transfer.scss +94 -0
- package/src/tree.scss +148 -0
- package/README.md +0 -3
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TSElement - DatePicker 日期选择器 组件样式
|
|
3
|
+
*/
|
|
4
|
+
@use 'common/var.scss' as *;
|
|
5
|
+
|
|
6
|
+
.ts-date-picker {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
|
|
10
|
+
&__wrapper {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
width: 240px;
|
|
14
|
+
height: $component-size-base;
|
|
15
|
+
padding: 0 10px;
|
|
16
|
+
border: 1px solid var(--ts-border-color);
|
|
17
|
+
border-radius: $border-radius-base;
|
|
18
|
+
background-color: var(--ts-bg-color);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
transition: $transition-base;
|
|
21
|
+
|
|
22
|
+
&:hover { border-color: var(--ts-color-primary-light-5); }
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__input {
|
|
26
|
+
flex: 1;
|
|
27
|
+
border: none;
|
|
28
|
+
outline: none;
|
|
29
|
+
background: none;
|
|
30
|
+
height: 100%;
|
|
31
|
+
font-size: $font-size-base;
|
|
32
|
+
color: var(--ts-text-color-regular);
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
|
|
35
|
+
&::placeholder { color: var(--ts-text-color-placeholder); }
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__icon {
|
|
39
|
+
color: var(--ts-text-color-placeholder);
|
|
40
|
+
margin-left: 8px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__panel {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 100%;
|
|
46
|
+
left: 0;
|
|
47
|
+
margin-top: 4px;
|
|
48
|
+
background-color: var(--ts-bg-color);
|
|
49
|
+
border: 1px solid var(--ts-border-color-lighter);
|
|
50
|
+
border-radius: $border-radius-base;
|
|
51
|
+
box-shadow: var(--ts-box-shadow-light);
|
|
52
|
+
z-index: 1000;
|
|
53
|
+
padding: 12px;
|
|
54
|
+
min-width: 260px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__calendar-header {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
margin-bottom: 12px;
|
|
62
|
+
|
|
63
|
+
button {
|
|
64
|
+
background: none;
|
|
65
|
+
border: none;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
color: var(--ts-text-color-regular);
|
|
68
|
+
padding: 4px;
|
|
69
|
+
|
|
70
|
+
&:hover { color: var(--ts-color-primary); }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__calendar-title {
|
|
75
|
+
font-size: $font-size-base;
|
|
76
|
+
font-weight: $font-weight-primary;
|
|
77
|
+
color: var(--ts-text-color-primary);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__weekdays {
|
|
81
|
+
display: grid;
|
|
82
|
+
grid-template-columns: repeat(7, 1fr);
|
|
83
|
+
text-align: center;
|
|
84
|
+
font-size: $font-size-small;
|
|
85
|
+
color: var(--ts-text-color-placeholder);
|
|
86
|
+
margin-bottom: 4px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__days {
|
|
90
|
+
display: grid;
|
|
91
|
+
grid-template-columns: repeat(7, 1fr);
|
|
92
|
+
gap: 2px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__day {
|
|
96
|
+
height: 32px;
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
font-size: $font-size-base;
|
|
101
|
+
color: var(--ts-text-color-regular);
|
|
102
|
+
border-radius: $border-radius-base;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
transition: background-color 0.2s;
|
|
105
|
+
background: none;
|
|
106
|
+
border: none;
|
|
107
|
+
|
|
108
|
+
&:hover { background-color: var(--ts-color-primary-light-9); }
|
|
109
|
+
&--other-month { color: var(--ts-text-color-placeholder); }
|
|
110
|
+
&--today { color: var(--ts-color-primary); font-weight: $font-weight-primary; }
|
|
111
|
+
&--selected {
|
|
112
|
+
background-color: var(--ts-color-primary);
|
|
113
|
+
color: #fff;
|
|
114
|
+
|
|
115
|
+
&:hover { background-color: var(--ts-color-primary); color: #fff; }
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&--open .ts-date-picker__wrapper { border-color: var(--ts-color-primary); }
|
|
120
|
+
|
|
121
|
+
&__input {
|
|
122
|
+
flex: 1;
|
|
123
|
+
min-width: 0;
|
|
124
|
+
border: none;
|
|
125
|
+
outline: none;
|
|
126
|
+
background: transparent;
|
|
127
|
+
font-size: $font-size-base;
|
|
128
|
+
color: var(--ts-text-color-regular);
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
|
|
131
|
+
&::placeholder { color: var(--ts-text-color-placeholder); }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&__clear {
|
|
135
|
+
flex: 0 0 auto;
|
|
136
|
+
margin-left: 6px;
|
|
137
|
+
color: var(--ts-text-color-placeholder);
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
|
|
140
|
+
&:hover { color: var(--ts-text-color-regular); }
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__icon {
|
|
144
|
+
flex: 0 0 auto;
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
margin-left: 8px;
|
|
148
|
+
color: var(--ts-text-color-placeholder);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&__popper {
|
|
152
|
+
position: fixed;
|
|
153
|
+
z-index: 2000;
|
|
154
|
+
padding: 10px;
|
|
155
|
+
background-color: var(--ts-bg-color);
|
|
156
|
+
border: 1px solid var(--ts-border-color-lighter);
|
|
157
|
+
border-radius: $border-radius-base;
|
|
158
|
+
box-shadow: var(--ts-box-shadow-light);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&__shortcuts {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
gap: 8px;
|
|
165
|
+
padding-bottom: 8px;
|
|
166
|
+
margin-bottom: 8px;
|
|
167
|
+
border-bottom: 1px solid var(--ts-border-color-lighter);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&__shortcut {
|
|
171
|
+
font-size: $font-size-small;
|
|
172
|
+
color: var(--ts-color-primary);
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&__panels {
|
|
177
|
+
display: flex;
|
|
178
|
+
gap: 10px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__footer {
|
|
182
|
+
display: flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
justify-content: space-between;
|
|
185
|
+
padding-top: 8px;
|
|
186
|
+
margin-top: 8px;
|
|
187
|
+
border-top: 1px solid var(--ts-border-color-lighter);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&__today,
|
|
191
|
+
&__footer-clear {
|
|
192
|
+
padding: 0;
|
|
193
|
+
font-size: $font-size-small;
|
|
194
|
+
color: var(--ts-color-primary);
|
|
195
|
+
background: none;
|
|
196
|
+
border: none;
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&__range {
|
|
201
|
+
display: flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: 8px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&__range-label {
|
|
207
|
+
display: block;
|
|
208
|
+
margin-bottom: 4px;
|
|
209
|
+
font-size: $font-size-small;
|
|
210
|
+
color: var(--ts-text-color-placeholder);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&__separator {
|
|
214
|
+
color: var(--ts-text-color-placeholder);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.ts-dp-panel {
|
|
219
|
+
width: 260px;
|
|
220
|
+
user-select: none;
|
|
221
|
+
|
|
222
|
+
&__header {
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
justify-content: space-between;
|
|
226
|
+
padding: 4px 6px 8px;
|
|
227
|
+
border-bottom: 1px solid var(--ts-border-color-lighter);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&__nav {
|
|
231
|
+
padding: 0 4px;
|
|
232
|
+
font-size: 14px;
|
|
233
|
+
line-height: 1;
|
|
234
|
+
color: var(--ts-text-color-regular);
|
|
235
|
+
background: none;
|
|
236
|
+
border: none;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
|
|
239
|
+
&:hover { color: var(--ts-color-primary); }
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&__title {
|
|
243
|
+
flex: 1;
|
|
244
|
+
font-size: $font-size-base;
|
|
245
|
+
font-weight: $font-weight-primary;
|
|
246
|
+
color: var(--ts-text-color-primary);
|
|
247
|
+
text-align: center;
|
|
248
|
+
|
|
249
|
+
&.is-clickable {
|
|
250
|
+
cursor: pointer;
|
|
251
|
+
|
|
252
|
+
&:hover { color: var(--ts-color-primary); }
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&__weekdays {
|
|
257
|
+
display: grid;
|
|
258
|
+
grid-template-columns: repeat(7, 1fr);
|
|
259
|
+
padding: 6px 0;
|
|
260
|
+
font-size: $font-size-small;
|
|
261
|
+
color: var(--ts-text-color-placeholder);
|
|
262
|
+
text-align: center;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&__grid {
|
|
266
|
+
display: grid;
|
|
267
|
+
grid-template-columns: repeat(7, 1fr);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&__grid--month,
|
|
271
|
+
&__grid--year {
|
|
272
|
+
grid-template-columns: repeat(3, 1fr);
|
|
273
|
+
gap: 8px;
|
|
274
|
+
padding: 10px 4px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&__cell {
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
justify-content: center;
|
|
281
|
+
height: 32px;
|
|
282
|
+
font-size: $font-size-base;
|
|
283
|
+
color: var(--ts-text-color-regular);
|
|
284
|
+
border-radius: $border-radius-base;
|
|
285
|
+
cursor: pointer;
|
|
286
|
+
|
|
287
|
+
&:hover { background-color: var(--ts-color-primary-light-9); }
|
|
288
|
+
|
|
289
|
+
&.is-other-month { color: var(--ts-text-color-placeholder); }
|
|
290
|
+
&.is-today { color: var(--ts-color-primary); font-weight: $font-weight-primary; }
|
|
291
|
+
&.is-selected,
|
|
292
|
+
&.is-range-start,
|
|
293
|
+
&.is-range-end {
|
|
294
|
+
color: #fff;
|
|
295
|
+
background-color: var(--ts-color-primary);
|
|
296
|
+
}
|
|
297
|
+
&.is-in-range { background-color: var(--ts-color-primary-light-9); }
|
|
298
|
+
&.is-hover-range { background-color: var(--ts-color-primary-light-7); }
|
|
299
|
+
&.ts-dp-panel__cell--hover { background-color: var(--ts-color-primary-light-7); }
|
|
300
|
+
&.is-current { color: var(--ts-color-primary); font-weight: $font-weight-primary; }
|
|
301
|
+
&.is-disabled {
|
|
302
|
+
color: var(--ts-text-color-disabled);
|
|
303
|
+
background: transparent;
|
|
304
|
+
cursor: not-allowed;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
&__cell--month,
|
|
309
|
+
&__cell--year {
|
|
310
|
+
height: 40px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&__footer {
|
|
314
|
+
padding-top: 8px;
|
|
315
|
+
text-align: right;
|
|
316
|
+
border-top: 1px solid var(--ts-border-color-lighter);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&__today-btn {
|
|
320
|
+
padding: 0;
|
|
321
|
+
font-size: $font-size-small;
|
|
322
|
+
color: var(--ts-color-primary);
|
|
323
|
+
background: none;
|
|
324
|
+
border: none;
|
|
325
|
+
cursor: pointer;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TSElement - Descriptions 描述列表 组件样式
|
|
3
|
+
*/
|
|
4
|
+
@use 'common/var.scss' as *;
|
|
5
|
+
|
|
6
|
+
.ts-descriptions {
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
&__title {
|
|
10
|
+
font-size: $font-size-medium;
|
|
11
|
+
font-weight: $font-weight-primary;
|
|
12
|
+
color: var(--ts-text-color-primary);
|
|
13
|
+
margin-bottom: 12px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__table {
|
|
17
|
+
width: 100%;
|
|
18
|
+
border-collapse: collapse;
|
|
19
|
+
font-size: $font-size-base;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__label {
|
|
23
|
+
font-weight: $font-weight-primary;
|
|
24
|
+
color: var(--ts-text-color-regular);
|
|
25
|
+
padding: 12px 16px;
|
|
26
|
+
background-color: var(--ts-fill-color-lighter);
|
|
27
|
+
border: 1px solid var(--ts-border-color-lighter);
|
|
28
|
+
min-width: 100px;
|
|
29
|
+
vertical-align: top;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__content {
|
|
34
|
+
color: var(--ts-text-color-regular);
|
|
35
|
+
padding: 12px 16px;
|
|
36
|
+
border: 1px solid var(--ts-border-color-lighter);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__cell {
|
|
40
|
+
border: 1px solid var(--ts-border-color-lighter);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&--bordered .ts-descriptions__label,
|
|
44
|
+
&--bordered .ts-descriptions__content {
|
|
45
|
+
border: 1px solid var(--ts-border-color-lighter);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&--horizontal {
|
|
49
|
+
.ts-descriptions__label,
|
|
50
|
+
.ts-descriptions__content {
|
|
51
|
+
display: table-cell;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&--vertical {
|
|
56
|
+
.ts-descriptions__label { display: block; }
|
|
57
|
+
.ts-descriptions__content { display: block; border-top: none; }
|
|
58
|
+
}
|
|
59
|
+
}
|
package/src/dialog.scss
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TSElement - Dialog 对话框 组件样式
|
|
3
|
+
*/
|
|
4
|
+
@use 'common/var.scss' as *;
|
|
5
|
+
|
|
6
|
+
.ts-dialog-overlay {
|
|
7
|
+
position: fixed;
|
|
8
|
+
top: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
background-color: var(--ts-mask-color);
|
|
13
|
+
z-index: 2000;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
animation: ts-dialog-fade-in 0.2s;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ts-dialog {
|
|
21
|
+
position: relative;
|
|
22
|
+
width: 420px;
|
|
23
|
+
background-color: var(--ts-bg-color);
|
|
24
|
+
border-radius: $border-radius-base;
|
|
25
|
+
box-shadow: var(--ts-box-shadow-dark);
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
animation: ts-dialog-bounce-in 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
28
|
+
|
|
29
|
+
&__header {
|
|
30
|
+
padding: 16px 20px;
|
|
31
|
+
border-bottom: 1px solid var(--ts-border-color-lighter);
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__title {
|
|
38
|
+
font-size: $font-size-medium;
|
|
39
|
+
font-weight: $font-weight-primary;
|
|
40
|
+
color: var(--ts-text-color-primary);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__headerbtn {
|
|
44
|
+
background: none;
|
|
45
|
+
border: none;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
color: var(--ts-text-color-placeholder);
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
padding: 4px;
|
|
50
|
+
|
|
51
|
+
&:hover { color: var(--ts-text-color-regular); }
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__body {
|
|
55
|
+
padding: 20px;
|
|
56
|
+
color: var(--ts-text-color-regular);
|
|
57
|
+
font-size: $font-size-base;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__footer {
|
|
61
|
+
padding: 12px 20px;
|
|
62
|
+
border-top: 1px solid var(--ts-border-color-lighter);
|
|
63
|
+
text-align: right;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--center .ts-dialog__header { justify-content: center; }
|
|
67
|
+
&--center .ts-dialog__footer { justify-content: center; display: flex; }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@keyframes ts-dialog-fade-in {
|
|
71
|
+
from { opacity: 0; }
|
|
72
|
+
to { opacity: 1; }
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes ts-dialog-bounce-in {
|
|
76
|
+
from { transform: scale(0.9); opacity: 0; }
|
|
77
|
+
to { transform: scale(1); opacity: 1; }
|
|
78
|
+
}
|
package/src/divider.scss
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TSElement - Divider 分割线 组件样式
|
|
3
|
+
*/
|
|
4
|
+
@use 'common/var.scss' as *;
|
|
5
|
+
|
|
6
|
+
.ts-divider {
|
|
7
|
+
border: none;
|
|
8
|
+
|
|
9
|
+
&--horizontal {
|
|
10
|
+
display: block;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 1px;
|
|
13
|
+
background-color: var(--ts-border-color-lighter);
|
|
14
|
+
margin: 16px 0;
|
|
15
|
+
|
|
16
|
+
&--dashed {
|
|
17
|
+
background: none;
|
|
18
|
+
border-top: 1px dashed var(--ts-border-color-lighter);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--text {
|
|
22
|
+
position: relative;
|
|
23
|
+
background: none;
|
|
24
|
+
height: 1px;
|
|
25
|
+
margin: 16px 0;
|
|
26
|
+
border-top: 1px solid var(--ts-border-color-lighter);
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
content: '';
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 0;
|
|
32
|
+
left: 0;
|
|
33
|
+
right: 0;
|
|
34
|
+
height: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&--vertical {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
width: 1px;
|
|
42
|
+
height: 16px;
|
|
43
|
+
background-color: var(--ts-border-color-lighter);
|
|
44
|
+
margin: 0 10px;
|
|
45
|
+
vertical-align: middle;
|
|
46
|
+
|
|
47
|
+
&--dashed {
|
|
48
|
+
background: none;
|
|
49
|
+
border-left: 1px dashed var(--ts-border-color-lighter);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__text {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 50%;
|
|
56
|
+
left: 50%;
|
|
57
|
+
transform: translate(-50%, -50%);
|
|
58
|
+
padding: 0 12px;
|
|
59
|
+
background-color: var(--ts-bg-color);
|
|
60
|
+
font-size: $font-size-base;
|
|
61
|
+
color: var(--ts-text-color-regular);
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
}
|
|
64
|
+
}
|
package/src/drawer.scss
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TSElement - Drawer 抽屉 组件样式
|
|
3
|
+
*/
|
|
4
|
+
@use 'common/var.scss' as *;
|
|
5
|
+
|
|
6
|
+
.ts-drawer-mask {
|
|
7
|
+
position: fixed;
|
|
8
|
+
top: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
background-color: var(--ts-mask-color);
|
|
13
|
+
z-index: 2000;
|
|
14
|
+
animation: ts-drawer-fade-in 0.2s;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ts-drawer {
|
|
18
|
+
position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
background-color: var(--ts-bg-color);
|
|
22
|
+
box-shadow: var(--ts-box-shadow-dark);
|
|
23
|
+
z-index: 2001;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
animation: ts-drawer-slide-in 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
27
|
+
|
|
28
|
+
&--left {
|
|
29
|
+
left: 0;
|
|
30
|
+
width: 300px;
|
|
31
|
+
border-right: 1px solid var(--ts-border-color-lighter);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--right {
|
|
35
|
+
right: 0;
|
|
36
|
+
width: 300px;
|
|
37
|
+
border-left: 1px solid var(--ts-border-color-lighter);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--top {
|
|
41
|
+
left: 0;
|
|
42
|
+
right: 0;
|
|
43
|
+
top: 0;
|
|
44
|
+
height: 300px;
|
|
45
|
+
border-bottom: 1px solid var(--ts-border-color-lighter);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&--bottom {
|
|
49
|
+
left: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
height: 300px;
|
|
53
|
+
border-top: 1px solid var(--ts-border-color-lighter);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__header {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
padding: 16px 20px;
|
|
61
|
+
border-bottom: 1px solid var(--ts-border-color-lighter);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__title {
|
|
65
|
+
font-size: $font-size-medium;
|
|
66
|
+
font-weight: $font-weight-primary;
|
|
67
|
+
color: var(--ts-text-color-primary);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__close-btn {
|
|
71
|
+
background: none;
|
|
72
|
+
border: none;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
color: var(--ts-text-color-placeholder);
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
padding: 4px;
|
|
77
|
+
|
|
78
|
+
&:hover { color: var(--ts-text-color-regular); }
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__body {
|
|
82
|
+
flex: 1;
|
|
83
|
+
padding: 20px;
|
|
84
|
+
overflow-y: auto;
|
|
85
|
+
font-size: $font-size-base;
|
|
86
|
+
color: var(--ts-text-color-regular);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__footer {
|
|
90
|
+
padding: 16px 20px;
|
|
91
|
+
border-top: 1px solid var(--ts-border-color-lighter);
|
|
92
|
+
text-align: right;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@keyframes ts-drawer-fade-in {
|
|
97
|
+
from { opacity: 0; }
|
|
98
|
+
to { opacity: 1; }
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@keyframes ts-drawer-slide-in {
|
|
102
|
+
from { transform: translateX(100%); }
|
|
103
|
+
to { transform: translateX(0); }
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ts-drawer--left .ts-drawer {
|
|
107
|
+
animation-name: ts-drawer-slide-in-left;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ts-drawer--top .ts-drawer {
|
|
111
|
+
animation-name: ts-drawer-slide-in-top;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ts-drawer--bottom .ts-drawer {
|
|
115
|
+
animation-name: ts-drawer-slide-in-bottom;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@keyframes ts-drawer-slide-in-left {
|
|
119
|
+
from { transform: translateX(-100%); }
|
|
120
|
+
to { transform: translateX(0); }
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@keyframes ts-drawer-slide-in-top {
|
|
124
|
+
from { transform: translateY(-100%); }
|
|
125
|
+
to { transform: translateY(0); }
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@keyframes ts-drawer-slide-in-bottom {
|
|
129
|
+
from { transform: translateY(100%); }
|
|
130
|
+
to { transform: translateY(0); }
|
|
131
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TSElement - Dropdown 下拉菜单 组件样式
|
|
3
|
+
*/
|
|
4
|
+
@use 'common/var.scss' as *;
|
|
5
|
+
|
|
6
|
+
.ts-dropdown {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
|
|
10
|
+
&__wrap {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__menu {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 100%;
|
|
18
|
+
left: 0;
|
|
19
|
+
margin-top: 4px;
|
|
20
|
+
min-width: 120px;
|
|
21
|
+
padding: 6px 0;
|
|
22
|
+
background-color: var(--ts-bg-color);
|
|
23
|
+
border: 1px solid var(--ts-border-color-lighter);
|
|
24
|
+
border-radius: $border-radius-base;
|
|
25
|
+
box-shadow: var(--ts-box-shadow-light);
|
|
26
|
+
z-index: 1000;
|
|
27
|
+
animation: ts-dropdown-fade-in 0.2s;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__item {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
padding: 8px 16px;
|
|
34
|
+
font-size: $font-size-base;
|
|
35
|
+
color: var(--ts-text-color-regular);
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
transition: background-color 0.2s, color 0.2s;
|
|
38
|
+
|
|
39
|
+
&:hover { background-color: var(--ts-fill-color-light); color: var(--ts-color-primary); }
|
|
40
|
+
&--divided { border-top: 1px solid var(--ts-border-color-lighter); }
|
|
41
|
+
&--disabled { color: var(--ts-text-color-placeholder); cursor: not-allowed; }
|
|
42
|
+
&--active { color: var(--ts-color-primary); }
|
|
43
|
+
&--command { font-weight: $font-weight-primary; }
|
|
44
|
+
|
|
45
|
+
.ts-icon { margin-right: 8px; }
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes ts-dropdown-fade-in {
|
|
50
|
+
from { opacity: 0; transform: translateY(-4px); }
|
|
51
|
+
to { opacity: 1; transform: translateY(0); }
|
|
52
|
+
}
|