@tiny-design/react 1.4.0 → 1.5.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/es/alert/style/_index.scss +2 -2
- package/es/alert/style/index.css +2 -2
- package/es/auto-complete/style/_index.scss +4 -5
- package/es/auto-complete/style/index.css +4 -5
- package/es/breadcrumb/style/index.css +1 -1
- package/es/breadcrumb/types.d.ts +1 -1
- package/es/button/style/index.css +14 -14
- package/es/calendar/style/_index.scss +9 -9
- package/es/calendar/style/index.css +9 -9
- package/es/card/style/index.css +3 -3
- package/es/cascader/style/_index.scss +9 -9
- package/es/cascader/style/index.css +9 -9
- package/es/checkbox/style/_index.scss +9 -12
- package/es/checkbox/style/index.css +9 -12
- package/es/collapse/style/index.css +3 -3
- package/es/color-picker/style/_index.scss +7 -7
- package/es/color-picker/style/index.css +4 -4
- package/es/date-picker/style/_index.scss +1 -1
- package/es/date-picker/style/index.css +1 -1
- package/es/descriptions/style/_index.scss +5 -6
- package/es/descriptions/style/index.css +6 -6
- package/es/empty/style/_index.scss +1 -1
- package/es/empty/style/index.css +1 -1
- package/es/form/style/_index.scss +5 -6
- package/es/form/style/index.css +4 -4
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/input/style/_index.scss +5 -4
- package/es/input/style/_mixin.scss +1 -1
- package/es/input/style/index.css +21 -20
- package/es/input-number/input-number.js +11 -5
- package/es/input-number/input-number.js.map +1 -1
- package/es/input-number/style/_index.scss +5 -3
- package/es/input-number/style/index.css +13 -11
- package/es/input-otp/style/_index.scss +1 -1
- package/es/input-otp/style/index.css +8 -8
- package/es/list/style/_index.scss +3 -3
- package/es/list/style/index.css +3 -3
- package/es/marquee/index.d.ts +1 -0
- package/es/marquee/index.js +9 -0
- package/es/marquee/index.js.map +1 -0
- package/es/marquee/marquee.d.ts +8 -0
- package/es/marquee/marquee.js +42 -0
- package/es/marquee/marquee.js.map +1 -0
- package/es/marquee/style/_index.scss +77 -0
- package/es/marquee/style/index.css +64 -0
- package/es/marquee/style/index.d.ts +1 -0
- package/es/marquee/style/index.js +1 -0
- package/es/marquee/types.d.ts +21 -0
- package/es/native-select/style/index.css +4 -4
- package/es/notification/style/_index.scss +1 -1
- package/es/notification/style/index.css +1 -1
- package/es/pop-confirm/style/_index.scss +1 -1
- package/es/pop-confirm/style/index.css +1 -1
- package/es/popup/style/_index.scss +9 -9
- package/es/popup/style/index.css +10 -10
- package/es/radio/style/_index.scss +5 -8
- package/es/radio/style/index.css +5 -8
- package/es/segmented/style/_index.scss +10 -10
- package/es/segmented/style/index.css +9 -9
- package/es/select/style/_index.scss +16 -17
- package/es/select/style/index.css +15 -16
- package/es/speed-dial/style/_index.scss +2 -2
- package/es/speed-dial/style/index.css +2 -2
- package/es/statistic/style/_index.scss +2 -2
- package/es/statistic/style/index.css +2 -2
- package/es/style/_component.scss +1 -0
- package/es/style/base.css +57 -0
- package/es/table/style/_index.scss +6 -6
- package/es/table/style/index.css +5 -5
- package/es/tag/style/index.css +1 -1
- package/es/textarea/style/index.css +2 -2
- package/es/time-picker/style/_index.scss +1 -1
- package/es/time-picker/style/index.css +1 -1
- package/es/timeline/style/_index.scss +3 -3
- package/es/timeline/style/index.css +3 -3
- package/es/tooltip/style/index.css +1 -1
- package/es/transfer/style/_index.scss +4 -4
- package/es/transfer/style/index.css +4 -4
- package/es/tree/style/index.css +1 -1
- package/es/typography/style/_index.scss +2 -2
- package/es/typography/style/index.css +2 -2
- package/es/upload/style/_index.scss +4 -4
- package/es/upload/style/index.css +4 -4
- package/lib/alert/style/_index.scss +2 -2
- package/lib/alert/style/index.css +2 -2
- package/lib/auto-complete/style/_index.scss +4 -5
- package/lib/auto-complete/style/index.css +4 -5
- package/lib/breadcrumb/style/index.css +1 -1
- package/lib/breadcrumb/types.d.ts +1 -1
- package/lib/button/style/index.css +14 -14
- package/lib/calendar/style/_index.scss +9 -9
- package/lib/calendar/style/index.css +9 -9
- package/lib/card/style/index.css +3 -3
- package/lib/cascader/style/_index.scss +9 -9
- package/lib/cascader/style/index.css +9 -9
- package/lib/checkbox/style/_index.scss +9 -12
- package/lib/checkbox/style/index.css +9 -12
- package/lib/collapse/style/index.css +3 -3
- package/lib/color-picker/style/_index.scss +7 -7
- package/lib/color-picker/style/index.css +4 -4
- package/lib/date-picker/style/_index.scss +1 -1
- package/lib/date-picker/style/index.css +1 -1
- package/lib/descriptions/style/_index.scss +5 -6
- package/lib/descriptions/style/index.css +6 -6
- package/lib/empty/style/_index.scss +1 -1
- package/lib/empty/style/index.css +1 -1
- package/lib/form/style/_index.scss +5 -6
- package/lib/form/style/index.css +4 -4
- package/lib/index.d.ts +2 -1
- package/lib/index.js +76 -74
- package/lib/input/style/_index.scss +5 -4
- package/lib/input/style/_mixin.scss +1 -1
- package/lib/input/style/index.css +21 -20
- package/lib/input-number/input-number.js +11 -5
- package/lib/input-number/input-number.js.map +1 -1
- package/lib/input-number/style/_index.scss +5 -3
- package/lib/input-number/style/index.css +13 -11
- package/lib/input-otp/style/_index.scss +1 -1
- package/lib/input-otp/style/index.css +8 -8
- package/lib/list/style/_index.scss +3 -3
- package/lib/list/style/index.css +3 -3
- package/lib/marquee/index.js +8 -0
- package/lib/marquee/index.js.map +1 -0
- package/lib/marquee/marquee.d.ts +8 -0
- package/lib/marquee/marquee.js +45 -0
- package/lib/marquee/marquee.js.map +1 -0
- package/lib/marquee/style/_index.scss +77 -0
- package/lib/marquee/style/index.css +64 -0
- package/lib/marquee/style/index.d.ts +1 -0
- package/lib/marquee/style/index.js +1 -0
- package/lib/marquee/types.d.ts +21 -0
- package/lib/native-select/style/index.css +4 -4
- package/lib/notification/style/_index.scss +1 -1
- package/lib/notification/style/index.css +1 -1
- package/lib/pop-confirm/style/_index.scss +1 -1
- package/lib/pop-confirm/style/index.css +1 -1
- package/lib/popup/style/_index.scss +9 -9
- package/lib/popup/style/index.css +10 -10
- package/lib/radio/style/_index.scss +5 -8
- package/lib/radio/style/index.css +5 -8
- package/lib/segmented/style/_index.scss +10 -10
- package/lib/segmented/style/index.css +9 -9
- package/lib/select/style/_index.scss +16 -17
- package/lib/select/style/index.css +15 -16
- package/lib/speed-dial/style/_index.scss +2 -2
- package/lib/speed-dial/style/index.css +2 -2
- package/lib/statistic/style/_index.scss +2 -2
- package/lib/statistic/style/index.css +2 -2
- package/lib/style/_component.scss +1 -0
- package/lib/style/base.css +57 -0
- package/lib/table/style/_index.scss +6 -6
- package/lib/table/style/index.css +5 -5
- package/lib/tag/style/index.css +1 -1
- package/lib/textarea/style/index.css +2 -2
- package/lib/time-picker/style/_index.scss +1 -1
- package/lib/time-picker/style/index.css +1 -1
- package/lib/timeline/style/_index.scss +3 -3
- package/lib/timeline/style/index.css +3 -3
- package/lib/tooltip/style/index.css +1 -1
- package/lib/transfer/style/_index.scss +4 -4
- package/lib/transfer/style/index.css +4 -4
- package/lib/tree/style/index.css +1 -1
- package/lib/typography/style/_index.scss +2 -2
- package/lib/typography/style/index.css +2 -2
- package/lib/upload/style/_index.scss +4 -4
- package/lib/upload/style/index.css +4 -4
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
align-items: center;
|
|
4
4
|
padding: 2px;
|
|
5
5
|
background: var(--ty-segmented-bg, #e9ecef);
|
|
6
|
-
border-radius:
|
|
6
|
+
border-radius: var(--ty-border-radius);
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
}
|
|
9
9
|
.ty-segmented_block {
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
}
|
|
25
25
|
.ty-segmented_sm .ty-segmented__item {
|
|
26
26
|
padding: 0 8px;
|
|
27
|
-
height: calc(
|
|
28
|
-
font-size:
|
|
27
|
+
height: calc(var(--ty-height-sm) - 4px);
|
|
28
|
+
font-size: var(--ty-font-size-sm);
|
|
29
29
|
}
|
|
30
30
|
.ty-segmented_md .ty-segmented__item {
|
|
31
31
|
padding: 0 12px;
|
|
32
|
-
height: calc(
|
|
33
|
-
font-size:
|
|
32
|
+
height: calc(var(--ty-height-md) - 4px);
|
|
33
|
+
font-size: var(--ty-font-size-base);
|
|
34
34
|
}
|
|
35
35
|
.ty-segmented_lg .ty-segmented__item {
|
|
36
36
|
padding: 0 16px;
|
|
37
|
-
height: calc(
|
|
38
|
-
font-size:
|
|
37
|
+
height: calc(var(--ty-height-lg) - 4px);
|
|
38
|
+
font-size: var(--ty-font-size-lg);
|
|
39
39
|
}
|
|
40
40
|
.ty-segmented__item {
|
|
41
41
|
position: relative;
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
align-items: center;
|
|
44
44
|
gap: 4px;
|
|
45
45
|
cursor: pointer;
|
|
46
|
-
border-radius:
|
|
46
|
+
border-radius: var(--ty-border-radius);
|
|
47
47
|
transition: all 0.2s;
|
|
48
48
|
-webkit-user-select: none;
|
|
49
49
|
-moz-user-select: none;
|
|
50
50
|
user-select: none;
|
|
51
51
|
white-space: nowrap;
|
|
52
52
|
}
|
|
53
|
-
.ty-segmented__item:hover:not(.ty-segmented__item_active
|
|
53
|
+
.ty-segmented__item:hover:not(.ty-segmented__item_active, .ty-segmented__item_disabled) {
|
|
54
54
|
color: var(--ty-color-text, #212529);
|
|
55
55
|
}
|
|
56
56
|
.ty-segmented__item_active {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-block;
|
|
6
6
|
width: 100%;
|
|
7
|
-
font-size:
|
|
7
|
+
font-size: var(--ty-font-size-base);
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
outline: none;
|
|
10
10
|
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
|
|
21
21
|
// Sizes
|
|
22
22
|
&_sm .#{$prefix}-select__selector {
|
|
23
|
-
min-height:
|
|
24
|
-
font-size:
|
|
23
|
+
min-height: var(--ty-height-sm);
|
|
24
|
+
font-size: var(--ty-font-size-sm);
|
|
25
25
|
padding: 0 24px 0 8px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&_md .#{$prefix}-select__selector {
|
|
29
|
-
min-height:
|
|
30
|
-
font-size:
|
|
29
|
+
min-height: var(--ty-height-md);
|
|
30
|
+
font-size: var(--ty-font-size-base);
|
|
31
31
|
padding: 0 28px 0 10px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&_lg .#{$prefix}-select__selector {
|
|
35
|
-
min-height:
|
|
36
|
-
font-size:
|
|
35
|
+
min-height: var(--ty-height-lg);
|
|
36
|
+
font-size: var(--ty-font-size-lg);
|
|
37
37
|
padding: 0 32px 0 12px;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
align-items: center;
|
|
63
63
|
width: 100%;
|
|
64
64
|
border: $border-width solid var(--ty-input-border);
|
|
65
|
-
border-radius:
|
|
65
|
+
border-radius: var(--ty-border-radius);
|
|
66
66
|
background-color: var(--ty-input-bg);
|
|
67
67
|
box-sizing: border-box;
|
|
68
68
|
transition: all 0.3s;
|
|
@@ -173,9 +173,9 @@
|
|
|
173
173
|
max-width: 100%;
|
|
174
174
|
height: 22px;
|
|
175
175
|
padding: 0 4px 0 8px;
|
|
176
|
-
border-radius:
|
|
176
|
+
border-radius: var(--ty-border-radius);
|
|
177
177
|
background-color: var(--ty-color-fill-secondary);
|
|
178
|
-
font-size:
|
|
178
|
+
font-size: var(--ty-font-size-sm);
|
|
179
179
|
line-height: 20px;
|
|
180
180
|
color: var(--ty-color-text);
|
|
181
181
|
box-sizing: border-box;
|
|
@@ -212,12 +212,11 @@
|
|
|
212
212
|
list-style-type: none;
|
|
213
213
|
background-color: var(--ty-select-dropdown-bg);
|
|
214
214
|
box-sizing: border-box;
|
|
215
|
-
overflow
|
|
216
|
-
overflow-y: auto;
|
|
215
|
+
overflow: hidden auto;
|
|
217
216
|
z-index: 10;
|
|
218
217
|
box-shadow: var(--ty-shadow-popup);
|
|
219
|
-
border-radius:
|
|
220
|
-
font-size:
|
|
218
|
+
border-radius: var(--ty-border-radius);
|
|
219
|
+
font-size: var(--ty-font-size-base);
|
|
221
220
|
max-height: $select-dropdown-max-height;
|
|
222
221
|
}
|
|
223
222
|
|
|
@@ -238,7 +237,7 @@
|
|
|
238
237
|
padding: 16px;
|
|
239
238
|
text-align: center;
|
|
240
239
|
color: var(--ty-color-text-quaternary);
|
|
241
|
-
font-size:
|
|
240
|
+
font-size: var(--ty-font-size-sm);
|
|
242
241
|
}
|
|
243
242
|
}
|
|
244
243
|
|
|
@@ -284,9 +283,8 @@
|
|
|
284
283
|
}
|
|
285
284
|
|
|
286
285
|
.#{$prefix}-select-group {
|
|
287
|
-
|
|
288
286
|
&__title {
|
|
289
|
-
font-size:
|
|
287
|
+
font-size: var(--ty-font-size-sm);
|
|
290
288
|
cursor: default;
|
|
291
289
|
color: $gray-600;
|
|
292
290
|
padding: 7px 12px;
|
|
@@ -307,6 +305,7 @@
|
|
|
307
305
|
from {
|
|
308
306
|
transform: rotate(0deg);
|
|
309
307
|
}
|
|
308
|
+
|
|
310
309
|
to {
|
|
311
310
|
transform: rotate(360deg);
|
|
312
311
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: inline-block;
|
|
4
4
|
width: 100%;
|
|
5
|
-
font-size:
|
|
5
|
+
font-size: var(--ty-font-size-base);
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
outline: none;
|
|
8
8
|
}
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
cursor: not-allowed;
|
|
16
16
|
}
|
|
17
17
|
.ty-select_sm .ty-select__selector {
|
|
18
|
-
min-height:
|
|
19
|
-
font-size:
|
|
18
|
+
min-height: var(--ty-height-sm);
|
|
19
|
+
font-size: var(--ty-font-size-sm);
|
|
20
20
|
padding: 0 24px 0 8px;
|
|
21
21
|
}
|
|
22
22
|
.ty-select_md .ty-select__selector {
|
|
23
|
-
min-height:
|
|
24
|
-
font-size:
|
|
23
|
+
min-height: var(--ty-height-md);
|
|
24
|
+
font-size: var(--ty-font-size-base);
|
|
25
25
|
padding: 0 28px 0 10px;
|
|
26
26
|
}
|
|
27
27
|
.ty-select_lg .ty-select__selector {
|
|
28
|
-
min-height:
|
|
29
|
-
font-size:
|
|
28
|
+
min-height: var(--ty-height-lg);
|
|
29
|
+
font-size: var(--ty-font-size-lg);
|
|
30
30
|
padding: 0 32px 0 12px;
|
|
31
31
|
}
|
|
32
32
|
.ty-select_multiple .ty-select__selector {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
align-items: center;
|
|
47
47
|
width: 100%;
|
|
48
48
|
border: 1px solid var(--ty-input-border);
|
|
49
|
-
border-radius:
|
|
49
|
+
border-radius: var(--ty-border-radius);
|
|
50
50
|
background-color: var(--ty-input-bg);
|
|
51
51
|
box-sizing: border-box;
|
|
52
52
|
transition: all 0.3s;
|
|
@@ -143,9 +143,9 @@
|
|
|
143
143
|
max-width: 100%;
|
|
144
144
|
height: 22px;
|
|
145
145
|
padding: 0 4px 0 8px;
|
|
146
|
-
border-radius:
|
|
146
|
+
border-radius: var(--ty-border-radius);
|
|
147
147
|
background-color: var(--ty-color-fill-secondary);
|
|
148
|
-
font-size:
|
|
148
|
+
font-size: var(--ty-font-size-sm);
|
|
149
149
|
line-height: 20px;
|
|
150
150
|
color: var(--ty-color-text);
|
|
151
151
|
box-sizing: border-box;
|
|
@@ -176,12 +176,11 @@
|
|
|
176
176
|
list-style-type: none;
|
|
177
177
|
background-color: var(--ty-select-dropdown-bg);
|
|
178
178
|
box-sizing: border-box;
|
|
179
|
-
overflow
|
|
180
|
-
overflow-y: auto;
|
|
179
|
+
overflow: hidden auto;
|
|
181
180
|
z-index: 10;
|
|
182
181
|
box-shadow: var(--ty-shadow-popup);
|
|
183
|
-
border-radius:
|
|
184
|
-
font-size:
|
|
182
|
+
border-radius: var(--ty-border-radius);
|
|
183
|
+
font-size: var(--ty-font-size-base);
|
|
185
184
|
max-height: 300px;
|
|
186
185
|
}
|
|
187
186
|
.ty-select__loading {
|
|
@@ -197,7 +196,7 @@
|
|
|
197
196
|
padding: 16px;
|
|
198
197
|
text-align: center;
|
|
199
198
|
color: var(--ty-color-text-quaternary);
|
|
200
|
-
font-size:
|
|
199
|
+
font-size: var(--ty-font-size-sm);
|
|
201
200
|
}
|
|
202
201
|
|
|
203
202
|
.ty-select-option {
|
|
@@ -236,7 +235,7 @@
|
|
|
236
235
|
}
|
|
237
236
|
|
|
238
237
|
.ty-select-group__title {
|
|
239
|
-
font-size:
|
|
238
|
+
font-size: var(--ty-font-size-sm);
|
|
240
239
|
cursor: default;
|
|
241
240
|
color: #8898aa;
|
|
242
241
|
padding: 7px 12px;
|
|
@@ -197,9 +197,9 @@ $speed-dial-actions-gap: 16px;
|
|
|
197
197
|
white-space: nowrap;
|
|
198
198
|
background-color: var(--ty-speed-dial-tooltip-bg, #{$gray-800});
|
|
199
199
|
color: var(--ty-speed-dial-tooltip-color, #{$white-color});
|
|
200
|
-
font-size:
|
|
200
|
+
font-size: var(--ty-font-size-sm);
|
|
201
201
|
padding: 4px 8px;
|
|
202
|
-
border-radius:
|
|
202
|
+
border-radius: var(--ty-border-radius);
|
|
203
203
|
pointer-events: none;
|
|
204
204
|
|
|
205
205
|
&_left {
|
|
@@ -156,9 +156,9 @@
|
|
|
156
156
|
white-space: nowrap;
|
|
157
157
|
background-color: var(--ty-speed-dial-tooltip-bg, #32325d);
|
|
158
158
|
color: var(--ty-speed-dial-tooltip-color, #fff);
|
|
159
|
-
font-size:
|
|
159
|
+
font-size: var(--ty-font-size-sm);
|
|
160
160
|
padding: 4px 8px;
|
|
161
|
-
border-radius:
|
|
161
|
+
border-radius: var(--ty-border-radius);
|
|
162
162
|
pointer-events: none;
|
|
163
163
|
}
|
|
164
164
|
.ty-speed-dial__action-tooltip_left {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
&__title {
|
|
5
5
|
margin-bottom: 4px;
|
|
6
6
|
color: var(--ty-color-text-secondary, #{$gray-600});
|
|
7
|
-
font-size:
|
|
7
|
+
font-size: var(--ty-font-size-sm);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&__content {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
&__suffix {
|
|
26
26
|
margin-left: 4px;
|
|
27
|
-
font-size:
|
|
27
|
+
font-size: var(--ty-font-size-base);
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.ty-statistic__title {
|
|
2
2
|
margin-bottom: 4px;
|
|
3
3
|
color: var(--ty-color-text-secondary, #8898aa);
|
|
4
|
-
font-size:
|
|
4
|
+
font-size: var(--ty-font-size-sm);
|
|
5
5
|
}
|
|
6
6
|
.ty-statistic__content {
|
|
7
7
|
display: flex;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
.ty-statistic__suffix {
|
|
20
20
|
margin-left: 4px;
|
|
21
|
-
font-size:
|
|
21
|
+
font-size: var(--ty-font-size-base);
|
|
22
22
|
display: inline-flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
}
|
package/es/style/_component.scss
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
@use "../loader/style/index" as *;
|
|
37
37
|
@use "../loading-bar/style/index" as *;
|
|
38
38
|
@use "../keyboard/style/index" as *;
|
|
39
|
+
@use "../marquee/style/index" as *;
|
|
39
40
|
@use "../menu/style/index" as *;
|
|
40
41
|
@use "../message/style/index" as *;
|
|
41
42
|
@use "../modal/style/index" as *;
|
package/es/style/base.css
CHANGED
|
@@ -270,6 +270,25 @@
|
|
|
270
270
|
--ty-calendar-bg: #fff;
|
|
271
271
|
--ty-calendar-border: #e9ecef;
|
|
272
272
|
--ty-calendar-hover: #f6f9fc;
|
|
273
|
+
--ty-font-family: -apple-system, blinkmacsystemfont, Segoe UI, roboto, Helvetica Neue, arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
|
274
|
+
--ty-font-family-monospace: lucida console, consolas, monaco, andale mono, ubuntu mono, monospace;
|
|
275
|
+
--ty-font-size-base: 1rem;
|
|
276
|
+
--ty-font-size-sm: 0.875rem;
|
|
277
|
+
--ty-font-size-lg: 1.25rem;
|
|
278
|
+
--ty-font-weight: 400;
|
|
279
|
+
--ty-line-height-base: 1.5;
|
|
280
|
+
--ty-headings-font-weight: 500;
|
|
281
|
+
--ty-h1-font-size: 2.5rem;
|
|
282
|
+
--ty-h2-font-size: 2rem;
|
|
283
|
+
--ty-h3-font-size: 1.75rem;
|
|
284
|
+
--ty-h4-font-size: 1.5rem;
|
|
285
|
+
--ty-h5-font-size: 1.25rem;
|
|
286
|
+
--ty-h6-font-size: 1rem;
|
|
287
|
+
--ty-border-radius: 2px;
|
|
288
|
+
--ty-height-sm: 24px;
|
|
289
|
+
--ty-height-md: 32px;
|
|
290
|
+
--ty-height-lg: 42px;
|
|
291
|
+
--ty-spacer: 1rem;
|
|
273
292
|
}
|
|
274
293
|
|
|
275
294
|
html[data-tiny-theme=dark] {
|
|
@@ -544,6 +563,25 @@ html[data-tiny-theme=dark] {
|
|
|
544
563
|
--ty-calendar-bg: #1f1f1f;
|
|
545
564
|
--ty-calendar-border: #363636;
|
|
546
565
|
--ty-calendar-hover: #2a2a2a;
|
|
566
|
+
--ty-font-family: -apple-system, blinkmacsystemfont, Segoe UI, roboto, Helvetica Neue, arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
|
567
|
+
--ty-font-family-monospace: lucida console, consolas, monaco, andale mono, ubuntu mono, monospace;
|
|
568
|
+
--ty-font-size-base: 1rem;
|
|
569
|
+
--ty-font-size-sm: 0.875rem;
|
|
570
|
+
--ty-font-size-lg: 1.25rem;
|
|
571
|
+
--ty-font-weight: 400;
|
|
572
|
+
--ty-line-height-base: 1.5;
|
|
573
|
+
--ty-headings-font-weight: 500;
|
|
574
|
+
--ty-h1-font-size: 2.5rem;
|
|
575
|
+
--ty-h2-font-size: 2rem;
|
|
576
|
+
--ty-h3-font-size: 1.75rem;
|
|
577
|
+
--ty-h4-font-size: 1.5rem;
|
|
578
|
+
--ty-h5-font-size: 1.25rem;
|
|
579
|
+
--ty-h6-font-size: 1rem;
|
|
580
|
+
--ty-border-radius: 2px;
|
|
581
|
+
--ty-height-sm: 24px;
|
|
582
|
+
--ty-height-md: 32px;
|
|
583
|
+
--ty-height-lg: 42px;
|
|
584
|
+
--ty-spacer: 1rem;
|
|
547
585
|
}
|
|
548
586
|
|
|
549
587
|
@media (prefers-color-scheme: dark) {
|
|
@@ -819,6 +857,25 @@ html[data-tiny-theme=dark] {
|
|
|
819
857
|
--ty-calendar-bg: #1f1f1f;
|
|
820
858
|
--ty-calendar-border: #363636;
|
|
821
859
|
--ty-calendar-hover: #2a2a2a;
|
|
860
|
+
--ty-font-family: -apple-system, blinkmacsystemfont, Segoe UI, roboto, Helvetica Neue, arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
|
861
|
+
--ty-font-family-monospace: lucida console, consolas, monaco, andale mono, ubuntu mono, monospace;
|
|
862
|
+
--ty-font-size-base: 1rem;
|
|
863
|
+
--ty-font-size-sm: 0.875rem;
|
|
864
|
+
--ty-font-size-lg: 1.25rem;
|
|
865
|
+
--ty-font-weight: 400;
|
|
866
|
+
--ty-line-height-base: 1.5;
|
|
867
|
+
--ty-headings-font-weight: 500;
|
|
868
|
+
--ty-h1-font-size: 2.5rem;
|
|
869
|
+
--ty-h2-font-size: 2rem;
|
|
870
|
+
--ty-h3-font-size: 1.75rem;
|
|
871
|
+
--ty-h4-font-size: 1.5rem;
|
|
872
|
+
--ty-h5-font-size: 1.25rem;
|
|
873
|
+
--ty-h6-font-size: 1rem;
|
|
874
|
+
--ty-border-radius: 2px;
|
|
875
|
+
--ty-height-sm: 24px;
|
|
876
|
+
--ty-height-md: 32px;
|
|
877
|
+
--ty-height-lg: 42px;
|
|
878
|
+
--ty-spacer: 1rem;
|
|
822
879
|
}
|
|
823
880
|
}
|
|
824
881
|
/* stylelint-disable scss/comment-no-empty */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.#{$prefix}-table {
|
|
4
4
|
color: var(--ty-color-text, #{$gray-800});
|
|
5
|
-
font-size:
|
|
5
|
+
font-size: var(--ty-font-size-base);
|
|
6
6
|
|
|
7
7
|
&__wrapper {
|
|
8
8
|
overflow-x: auto;
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
|
|
25
25
|
// Sizes
|
|
26
26
|
&_sm &__cell {
|
|
27
|
-
padding: 8px
|
|
28
|
-
font-size:
|
|
27
|
+
padding: 8px;
|
|
28
|
+
font-size: var(--ty-font-size-sm);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&_md &__cell {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&_lg &__cell {
|
|
36
|
-
padding: 16px
|
|
37
|
-
font-size:
|
|
36
|
+
padding: 16px;
|
|
37
|
+
font-size: var(--ty-font-size-lg);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
// Sticky header for virtual scroll
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&_selected {
|
|
102
|
-
background: var(--ty-table-selected-bg,
|
|
102
|
+
background: var(--ty-table-selected-bg, rgb(110 65 191 / 6%));
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
package/es/table/style/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ty-table {
|
|
2
2
|
color: var(--ty-color-text, #32325d);
|
|
3
|
-
font-size:
|
|
3
|
+
font-size: var(--ty-font-size-base);
|
|
4
4
|
}
|
|
5
5
|
.ty-table__wrapper {
|
|
6
6
|
overflow-x: auto;
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
border: 1px solid var(--ty-table-border, #dee2e6);
|
|
18
18
|
}
|
|
19
19
|
.ty-table_sm .ty-table__cell {
|
|
20
|
-
padding: 8px
|
|
21
|
-
font-size:
|
|
20
|
+
padding: 8px;
|
|
21
|
+
font-size: var(--ty-font-size-sm);
|
|
22
22
|
}
|
|
23
23
|
.ty-table_md .ty-table__cell {
|
|
24
24
|
padding: 12px 16px;
|
|
25
25
|
}
|
|
26
26
|
.ty-table_lg .ty-table__cell {
|
|
27
|
-
padding: 16px
|
|
28
|
-
font-size:
|
|
27
|
+
padding: 16px;
|
|
28
|
+
font-size: var(--ty-font-size-lg);
|
|
29
29
|
}
|
|
30
30
|
.ty-table__thead_sticky {
|
|
31
31
|
position: sticky;
|
package/es/tag/style/index.css
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
border: 1px solid var(--ty-input-border);
|
|
7
7
|
transition: all 0.3s;
|
|
8
8
|
outline: 0;
|
|
9
|
-
border-radius:
|
|
10
|
-
font-size:
|
|
9
|
+
border-radius: var(--ty-border-radius);
|
|
10
|
+
font-size: var(--ty-font-size-base);
|
|
11
11
|
background-color: var(--ty-input-bg);
|
|
12
12
|
}
|
|
13
13
|
.ty-textarea:hover {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.#{$prefix}-timeline {
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
color: var(--ty-color-text-secondary);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: var(--ty-font-size-base);
|
|
7
7
|
line-height: 1.5;
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 0;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
&:last-child {
|
|
22
22
|
.#{$prefix}-timeline-item__head {
|
|
23
|
-
|
|
23
|
+
&::before {
|
|
24
24
|
display: none;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
color: var(--ty-color-primary);
|
|
34
34
|
height: 100%;
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
&::before {
|
|
37
37
|
content: '';
|
|
38
38
|
position: absolute;
|
|
39
39
|
top: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.ty-timeline {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
color: var(--ty-color-text-secondary);
|
|
4
|
-
font-size:
|
|
4
|
+
font-size: var(--ty-font-size-base);
|
|
5
5
|
line-height: 1.5;
|
|
6
6
|
margin: 0;
|
|
7
7
|
padding: 0;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
font-size: 14px;
|
|
17
17
|
list-style: none;
|
|
18
18
|
}
|
|
19
|
-
.ty-timeline-item:last-child .ty-timeline-item__head
|
|
19
|
+
.ty-timeline-item:last-child .ty-timeline-item__head::before {
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
22
22
|
.ty-timeline-item__head {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
color: var(--ty-color-primary);
|
|
27
27
|
height: 100%;
|
|
28
28
|
}
|
|
29
|
-
.ty-timeline-item__head
|
|
29
|
+
.ty-timeline-item__head::before {
|
|
30
30
|
content: "";
|
|
31
31
|
position: absolute;
|
|
32
32
|
top: 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.#{$prefix}-transfer {
|
|
4
4
|
box-sizing: border-box;
|
|
5
|
-
font-size:
|
|
5
|
+
font-size: var(--ty-font-size-base);
|
|
6
6
|
color: var(--ty-color-text);
|
|
7
7
|
|
|
8
8
|
&__left-arrow {
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
vertical-align: middle;
|
|
35
35
|
width: 180px;
|
|
36
36
|
border: 1px solid var(--ty-transfer-border);
|
|
37
|
-
border-radius:
|
|
37
|
+
border-radius: var(--ty-border-radius);
|
|
38
38
|
|
|
39
39
|
&__header {
|
|
40
40
|
padding: 8px 12px 9px;
|
|
41
41
|
color: var(--ty-color-text);
|
|
42
42
|
background: var(--ty-transfer-header-bg);
|
|
43
43
|
border-bottom: 1px solid var(--ty-transfer-footer-border);
|
|
44
|
-
border-radius:
|
|
44
|
+
border-radius: var(--ty-border-radius) var(--ty-border-radius) 0 0;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&__body {
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
padding: 8px 12px 9px;
|
|
94
94
|
border-top: 1px solid var(--ty-transfer-footer-border);
|
|
95
95
|
background-color: var(--ty-transfer-footer-bg);
|
|
96
|
-
border-radius: 0 0
|
|
96
|
+
border-radius: 0 0 var(--ty-border-radius) var(--ty-border-radius);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ty-transfer {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
font-size:
|
|
3
|
+
font-size: var(--ty-font-size-base);
|
|
4
4
|
color: var(--ty-color-text);
|
|
5
5
|
}
|
|
6
6
|
.ty-transfer__left-arrow {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
vertical-align: middle;
|
|
29
29
|
width: 180px;
|
|
30
30
|
border: 1px solid var(--ty-transfer-border);
|
|
31
|
-
border-radius:
|
|
31
|
+
border-radius: var(--ty-border-radius);
|
|
32
32
|
}
|
|
33
33
|
.ty-transfer-panel__header {
|
|
34
34
|
padding: 8px 12px 9px;
|
|
35
35
|
color: var(--ty-color-text);
|
|
36
36
|
background: var(--ty-transfer-header-bg);
|
|
37
37
|
border-bottom: 1px solid var(--ty-transfer-footer-border);
|
|
38
|
-
border-radius:
|
|
38
|
+
border-radius: var(--ty-border-radius) var(--ty-border-radius) 0 0;
|
|
39
39
|
}
|
|
40
40
|
.ty-transfer-panel__body {
|
|
41
41
|
position: relative;
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
padding: 8px 12px 9px;
|
|
80
80
|
border-top: 1px solid var(--ty-transfer-footer-border);
|
|
81
81
|
background-color: var(--ty-transfer-footer-bg);
|
|
82
|
-
border-radius: 0 0
|
|
82
|
+
border-radius: 0 0 var(--ty-border-radius) var(--ty-border-radius);
|
|
83
83
|
}
|
package/es/tree/style/index.css
CHANGED
|
@@ -36,7 +36,7 @@ $tp-prefix: #{$prefix}-typography;
|
|
|
36
36
|
font-size: 85%;
|
|
37
37
|
background: var(--ty-typography-code-bg);
|
|
38
38
|
border: 1px solid var(--ty-typography-code-border);
|
|
39
|
-
border-radius:
|
|
39
|
+
border-radius: var(--ty-border-radius);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
mark {
|
|
@@ -99,7 +99,7 @@ p.#{$tp-prefix}, div.#{$tp-prefix} {
|
|
|
99
99
|
margin-top: 0;
|
|
100
100
|
margin-bottom: 1em;
|
|
101
101
|
color: var(--ty-typography-body-color);
|
|
102
|
-
font-size:
|
|
102
|
+
font-size: var(--ty-font-size-base);
|
|
103
103
|
line-height: 1.5;
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
font-size: 85%;
|
|
25
25
|
background: var(--ty-typography-code-bg);
|
|
26
26
|
border: 1px solid var(--ty-typography-code-border);
|
|
27
|
-
border-radius:
|
|
27
|
+
border-radius: var(--ty-border-radius);
|
|
28
28
|
}
|
|
29
29
|
.ty-typography mark {
|
|
30
30
|
padding: 0;
|
|
@@ -83,7 +83,7 @@ p.ty-typography, div.ty-typography {
|
|
|
83
83
|
margin-top: 0;
|
|
84
84
|
margin-bottom: 1em;
|
|
85
85
|
color: var(--ty-typography-body-color);
|
|
86
|
-
font-size:
|
|
86
|
+
font-size: var(--ty-font-size-base);
|
|
87
87
|
line-height: 1.5;
|
|
88
88
|
}
|
|
89
89
|
|