@tiny-design/react 1.4.0 → 1.5.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/es/alert/alert.js +2 -2
- package/es/alert/alert.js.map +1 -1
- package/es/alert/style/_index.scss +8 -4
- package/es/alert/style/index.css +7 -4
- 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/collapse-panel.js +20 -20
- package/es/collapse/collapse-panel.js.map +1 -1
- package/es/collapse/style/_index.scss +27 -10
- package/es/collapse/style/index.css +27 -12
- 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/input-otp.js +5 -7
- package/es/input-otp/input-otp.js.map +1 -1
- package/es/input-otp/style/_index.scss +1 -1
- package/es/input-otp/style/index.css +8 -8
- package/es/list/list.js +2 -2
- package/es/list/list.js.map +1 -1
- 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/strength-indicator/strength-indicator.js +4 -3
- package/es/strength-indicator/strength-indicator.js.map +1 -1
- 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/tag/tag.js +5 -5
- package/es/tag/tag.js.map +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/es/waterfall/waterfall.js +7 -2
- package/es/waterfall/waterfall.js.map +1 -1
- package/lib/alert/alert.js +2 -2
- package/lib/alert/alert.js.map +1 -1
- package/lib/alert/style/_index.scss +8 -4
- package/lib/alert/style/index.css +7 -4
- 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/collapse-panel.js +20 -20
- package/lib/collapse/collapse-panel.js.map +1 -1
- package/lib/collapse/style/_index.scss +27 -10
- package/lib/collapse/style/index.css +27 -12
- 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/input-otp.js +5 -7
- package/lib/input-otp/input-otp.js.map +1 -1
- package/lib/input-otp/style/_index.scss +1 -1
- package/lib/input-otp/style/index.css +8 -8
- package/lib/list/list.js +2 -2
- package/lib/list/list.js.map +1 -1
- 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/strength-indicator/strength-indicator.js +4 -3
- package/lib/strength-indicator/strength-indicator.js.map +1 -1
- 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/tag/tag.js +5 -5
- package/lib/tag/tag.js.map +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/lib/waterfall/waterfall.js +7 -2
- package/lib/waterfall/waterfall.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
}
|
|
@@ -9,10 +9,11 @@ const StrengthIndicator = React.forwardRef((props, ref) => {
|
|
|
9
9
|
"#f44336",
|
|
10
10
|
"#ff9800",
|
|
11
11
|
"#52c41a"
|
|
12
|
-
], className, prefixCls: customisedCls, ...otherProps } = props;
|
|
12
|
+
], labels, className, prefixCls: customisedCls, ...otherProps } = props;
|
|
13
13
|
const prefixCls = getPrefixCls("strength-indicator", useContext(ConfigContext).prefixCls, customisedCls);
|
|
14
14
|
const cls = classNames(prefixCls, className);
|
|
15
|
-
const
|
|
15
|
+
const showLabels = labels !== void 0;
|
|
16
|
+
const displayLabels = Array.isArray(labels) ? labels : [
|
|
16
17
|
"Weak",
|
|
17
18
|
"Medium",
|
|
18
19
|
"Strong"
|
|
@@ -33,7 +34,7 @@ const StrengthIndicator = React.forwardRef((props, ref) => {
|
|
|
33
34
|
children: [/* @__PURE__ */ jsx("div", {
|
|
34
35
|
className: `${prefixCls}__inner`,
|
|
35
36
|
style: { backgroundColor: bgColor }
|
|
36
|
-
}),
|
|
37
|
+
}), showLabels && /* @__PURE__ */ jsx("div", {
|
|
37
38
|
className: `${prefixCls}__label`,
|
|
38
39
|
children: displayLabels[idx]
|
|
39
40
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strength-indicator.js","names":[],"sources":["../../src/strength-indicator/strength-indicator.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport { StrengthIndicatorProps } from './types';\n\nconst StrengthIndicator = React.forwardRef<HTMLDivElement, StrengthIndicatorProps>(\n (props: StrengthIndicatorProps, ref): React.ReactElement => {\n const {\n current = 0,\n blocks = 3,\n colors = ['#f44336', '#ff9800', '#52c41a'],\n className,\n prefixCls: customisedCls,\n ...otherProps\n } = props;\n const configContext = useContext(ConfigContext);\n const prefixCls = getPrefixCls('strength-indicator', configContext.prefixCls, customisedCls);\n const cls = classNames(prefixCls, className);\n const displayLabels: React.ReactNode[] = Array.isArray(
|
|
1
|
+
{"version":3,"file":"strength-indicator.js","names":[],"sources":["../../src/strength-indicator/strength-indicator.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport { StrengthIndicatorProps } from './types';\n\nconst StrengthIndicator = React.forwardRef<HTMLDivElement, StrengthIndicatorProps>(\n (props: StrengthIndicatorProps, ref): React.ReactElement => {\n const {\n current = 0,\n blocks = 3,\n colors = ['#f44336', '#ff9800', '#52c41a'],\n labels,\n className,\n prefixCls: customisedCls,\n ...otherProps\n } = props;\n const configContext = useContext(ConfigContext);\n const prefixCls = getPrefixCls('strength-indicator', configContext.prefixCls, customisedCls);\n const cls = classNames(prefixCls, className);\n const showLabels = labels !== undefined;\n const displayLabels: React.ReactNode[] = Array.isArray(labels)\n ? labels\n : ['Weak', 'Medium', 'Strong'];\n\n return (\n <div {...otherProps} className={cls} ref={ref} role=\"progressbar\" aria-valuenow={current} aria-valuemin={0} aria-valuemax={blocks}>\n {Array.from(new Array(blocks)).map((item, idx) => {\n const itemCls = classNames(`${prefixCls}__item`, {\n [`${prefixCls}__item_active`]: idx < current,\n });\n const bgColor = idx < current ? colors[current - 1] : undefined;\n return (\n <div key={idx} className={itemCls}>\n <div className={`${prefixCls}__inner`} style={{ backgroundColor: bgColor }} />\n {showLabels && (\n <div className={`${prefixCls}__label`}>{displayLabels[idx]}</div>\n )}\n </div>\n );\n })}\n </div>\n );\n }\n);\n\nStrengthIndicator.displayName = 'StrengthIndicator';\n\nexport default StrengthIndicator;\n"],"mappings":";;;;;;AAMA,MAAM,oBAAoB,MAAM,YAC7B,OAA+B,QAA4B;CAC1D,MAAM,EACJ,UAAU,GACV,SAAS,GACT,SAAS;EAAC;EAAW;EAAW;EAAU,EAC1C,QACA,WACA,WAAW,eACX,GAAG,eACD;CAEJ,MAAM,YAAY,aAAa,sBADT,WAAW,cAAc,CACoB,WAAW,cAAc;CAC5F,MAAM,MAAM,WAAW,WAAW,UAAU;CAC5C,MAAM,aAAa,WAAW,KAAA;CAC9B,MAAM,gBAAmC,MAAM,QAAQ,OAAO,GAC1D,SACA;EAAC;EAAQ;EAAU;EAAS;AAEhC,QACE,oBAAC,OAAD;EAAK,GAAI;EAAY,WAAW;EAAU;EAAK,MAAK;EAAc,iBAAe;EAAS,iBAAe;EAAG,iBAAe;YACxH,MAAM,KAAK,IAAI,MAAM,OAAO,CAAC,CAAC,KAAK,MAAM,QAAQ;GAChD,MAAM,UAAU,WAAW,GAAG,UAAU,SAAS,GAC9C,GAAG,UAAU,iBAAiB,MAAM,SACtC,CAAC;GACF,MAAM,UAAU,MAAM,UAAU,OAAO,UAAU,KAAK,KAAA;AACtD,UACE,qBAAC,OAAD;IAAe,WAAW;cAA1B,CACE,oBAAC,OAAD;KAAK,WAAW,GAAG,UAAU;KAAU,OAAO,EAAE,iBAAiB,SAAS;KAAI,CAAA,EAC7E,cACC,oBAAC,OAAD;KAAK,WAAW,GAAG,UAAU;eAAW,cAAc;KAAW,CAAA,CAE/D;MALI,IAKJ;IAER;EACE,CAAA;EAGX;AAED,kBAAkB,cAAc"}
|
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
package/es/tag/tag.js
CHANGED
|
@@ -6,8 +6,8 @@ import classNames from "classnames";
|
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/tag/tag.tsx
|
|
8
8
|
const Tag = React.memo(forwardRef((props, ref) => {
|
|
9
|
-
const { closable = false, defaultVisible = true, prefixCls: customisedCls, color, onClose, onClick, className, style, children, ...otherProps } = props;
|
|
10
|
-
const [visible, setVisible] = useState(
|
|
9
|
+
const { closable = false, visible: visibleProp, defaultVisible = true, prefixCls: customisedCls, color, onClose, onClick, className, style, children, ...otherProps } = props;
|
|
10
|
+
const [visible, setVisible] = useState(visibleProp !== void 0 ? visibleProp : defaultVisible);
|
|
11
11
|
const prefixCls = getPrefixCls("tag", useContext(ConfigContext).prefixCls, customisedCls);
|
|
12
12
|
const cls = classNames(prefixCls, className, {
|
|
13
13
|
[`${prefixCls}_${color}`]: color && PresetColors.includes(color),
|
|
@@ -21,7 +21,7 @@ const Tag = React.memo(forwardRef((props, ref) => {
|
|
|
21
21
|
const closeBtnOnClick = (e) => {
|
|
22
22
|
onClose && onClose(e);
|
|
23
23
|
if (e.defaultPrevented) return;
|
|
24
|
-
|
|
24
|
+
visibleProp === void 0 && setVisible(false);
|
|
25
25
|
};
|
|
26
26
|
const tagStyle = {
|
|
27
27
|
backgroundColor: color ? PresetColors.includes(color) ? void 0 : color : void 0,
|
|
@@ -30,8 +30,8 @@ const Tag = React.memo(forwardRef((props, ref) => {
|
|
|
30
30
|
...style
|
|
31
31
|
};
|
|
32
32
|
useEffect(() => {
|
|
33
|
-
|
|
34
|
-
}, [
|
|
33
|
+
if (visibleProp !== void 0) setVisible(visibleProp);
|
|
34
|
+
}, [visibleProp]);
|
|
35
35
|
return /* @__PURE__ */ jsxs("div", {
|
|
36
36
|
...otherProps,
|
|
37
37
|
ref,
|
package/es/tag/tag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","names":[],"sources":["../../src/tag/tag.tsx"],"sourcesContent":["import React, { useState, useEffect, MouseEvent, useContext, forwardRef } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport { PresetColors, TagProps } from './types';\n\nconst Tag = React.memo(forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const {\n closable = false,\n defaultVisible = true,\n prefixCls: customisedCls,\n color,\n onClose,\n onClick,\n className,\n style,\n children,\n ...otherProps\n } = props;\n const [visible, setVisible] = useState<boolean>(\n
|
|
1
|
+
{"version":3,"file":"tag.js","names":[],"sources":["../../src/tag/tag.tsx"],"sourcesContent":["import React, { useState, useEffect, MouseEvent, useContext, forwardRef } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport { PresetColors, TagProps } from './types';\n\nconst Tag = React.memo(forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const {\n closable = false,\n visible: visibleProp,\n defaultVisible = true,\n prefixCls: customisedCls,\n color,\n onClose,\n onClick,\n className,\n style,\n children,\n ...otherProps\n } = props;\n const [visible, setVisible] = useState<boolean>(\n visibleProp !== undefined ? visibleProp : defaultVisible\n );\n const configContext = useContext(ConfigContext);\n const prefixCls = getPrefixCls('tag', configContext.prefixCls, customisedCls);\n const cls = classNames(prefixCls, className, {\n [`${prefixCls}_${color}`]: color && PresetColors.includes(color),\n [`${prefixCls}_visible`]: visible,\n [`${prefixCls}_closeable`]: closable,\n });\n\n /**\n * Callback when the close button is clicked.\n * @param e\n */\n const closeBtnOnClick = (e: MouseEvent<HTMLSpanElement>): void => {\n onClose && onClose(e);\n if (e.defaultPrevented) {\n return;\n }\n visibleProp === undefined && setVisible(false);\n };\n\n const tagStyle: React.CSSProperties = {\n backgroundColor: color ? (PresetColors.includes(color) ? undefined : color) : undefined,\n borderColor: color ? (PresetColors.includes(color) ? undefined : color) : undefined,\n color: color ? (PresetColors.includes(color) ? undefined : '#fff') : undefined,\n ...style,\n };\n\n useEffect(() => {\n if (visibleProp !== undefined) setVisible(visibleProp);\n }, [visibleProp]);\n\n return (\n <div {...otherProps} ref={ref} className={cls} style={tagStyle} onClick={onClick}>\n {children}\n {closable && (\n <button type=\"button\" className={`${prefixCls}__close-btn`} onClick={closeBtnOnClick} aria-label=\"Remove\">\n ✕\n </button>\n )}\n </div>\n );\n}));\n\nTag.displayName = 'Tag';\n\nexport default Tag;\n"],"mappings":";;;;;;;AAMA,MAAM,MAAM,MAAM,KAAK,YAAsC,OAAO,QAAQ;CAC1E,MAAM,EACJ,WAAW,OACX,SAAS,aACT,iBAAiB,MACjB,WAAW,eACX,OACA,SACA,SACA,WACA,OACA,UACA,GAAG,eACD;CACJ,MAAM,CAAC,SAAS,cAAc,SAC5B,gBAAgB,KAAA,IAAY,cAAc,eAC3C;CAED,MAAM,YAAY,aAAa,OADT,WAAW,cAAc,CACK,WAAW,cAAc;CAC7E,MAAM,MAAM,WAAW,WAAW,WAAW;GAC1C,GAAG,UAAU,GAAG,UAAU,SAAS,aAAa,SAAS,MAAM;GAC/D,GAAG,UAAU,YAAY;GACzB,GAAG,UAAU,cAAc;EAC7B,CAAC;;;;;CAMF,MAAM,mBAAmB,MAAyC;AAChE,aAAW,QAAQ,EAAE;AACrB,MAAI,EAAE,iBACJ;AAEF,kBAAgB,KAAA,KAAa,WAAW,MAAM;;CAGhD,MAAM,WAAgC;EACpC,iBAAiB,QAAS,aAAa,SAAS,MAAM,GAAG,KAAA,IAAY,QAAS,KAAA;EAC9E,aAAa,QAAS,aAAa,SAAS,MAAM,GAAG,KAAA,IAAY,QAAS,KAAA;EAC1E,OAAO,QAAS,aAAa,SAAS,MAAM,GAAG,KAAA,IAAY,SAAU,KAAA;EACrE,GAAG;EACJ;AAED,iBAAgB;AACd,MAAI,gBAAgB,KAAA,EAAW,YAAW,YAAY;IACrD,CAAC,YAAY,CAAC;AAEjB,QACE,qBAAC,OAAD;EAAK,GAAI;EAAiB;EAAK,WAAW;EAAK,OAAO;EAAmB;YAAzE,CACG,UACA,YACC,oBAAC,UAAD;GAAQ,MAAK;GAAS,WAAW,GAAG,UAAU;GAAc,SAAS;GAAiB,cAAW;aAAS;GAEjG,CAAA,CAEP;;EAER,CAAC;AAEH,IAAI,cAAc"}
|
|
@@ -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
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
margin: 0;
|
|
8
8
|
padding: 0;
|
|
9
9
|
color: var(--ty-color-text);
|
|
10
|
-
font-size:
|
|
10
|
+
font-size: var(--ty-font-size-base);
|
|
11
11
|
outline: 0;
|
|
12
12
|
|
|
13
13
|
&__upload-list {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
padding: 0;
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
color: var(--ty-color-text);
|
|
19
|
-
font-size:
|
|
19
|
+
font-size: var(--ty-font-size-base);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&__upload-list-item {
|
|
23
23
|
margin-top: 5px;
|
|
24
|
-
font-size:
|
|
24
|
+
font-size: var(--ty-font-size-base);
|
|
25
25
|
transition: background-color 300ms;
|
|
26
26
|
|
|
27
27
|
&:hover {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
text-align: center;
|
|
83
83
|
background: var(--ty-upload-dragger-bg);
|
|
84
84
|
border: 1px dashed var(--ty-upload-dragger-border);
|
|
85
|
-
border-radius:
|
|
85
|
+
border-radius: var(--ty-border-radius);
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
transition: border-color 300ms, background-color 300ms;
|
|
88
88
|
|