advance-semi-theme 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +214 -0
- package/dist/antd/index.d.ts +159 -0
- package/dist/antd/index.js +1378 -0
- package/dist/antd/plugin.d.ts +34 -0
- package/dist/antd/plugin.js +12 -0
- package/dist/antd/styles/all.css +83 -0
- package/dist/antd/styles/base.css +202 -0
- package/dist/antd/styles/components/affix.css +7 -0
- package/dist/antd/styles/components/ai.css +242 -0
- package/dist/antd/styles/components/alert.css +149 -0
- package/dist/antd/styles/components/anchor.css +40 -0
- package/dist/antd/styles/components/app.css +9 -0
- package/dist/antd/styles/components/autocomplete.css +56 -0
- package/dist/antd/styles/components/avatar.css +37 -0
- package/dist/antd/styles/components/backtop.css +106 -0
- package/dist/antd/styles/components/badge.css +76 -0
- package/dist/antd/styles/components/breadcrumb.css +37 -0
- package/dist/antd/styles/components/button.css +528 -0
- package/dist/antd/styles/components/calendar.css +55 -0
- package/dist/antd/styles/components/card.css +113 -0
- package/dist/antd/styles/components/carousel.css +57 -0
- package/dist/antd/styles/components/cascader.css +99 -0
- package/dist/antd/styles/components/checkableTag.css +26 -0
- package/dist/antd/styles/components/checkbox.css +119 -0
- package/dist/antd/styles/components/collapse.css +74 -0
- package/dist/antd/styles/components/colorpicker.css +94 -0
- package/dist/antd/styles/components/configprovider.css +6 -0
- package/dist/antd/styles/components/datepicker.css +346 -0
- package/dist/antd/styles/components/descriptions.css +63 -0
- package/dist/antd/styles/components/divider.css +34 -0
- package/dist/antd/styles/components/drawer.css +71 -0
- package/dist/antd/styles/components/dropdown.css +94 -0
- package/dist/antd/styles/components/empty.css +40 -0
- package/dist/antd/styles/components/flex.css +19 -0
- package/dist/antd/styles/components/floatbutton.css +65 -0
- package/dist/antd/styles/components/form.css +90 -0
- package/dist/antd/styles/components/grid.css +11 -0
- package/dist/antd/styles/components/icon.css +18 -0
- package/dist/antd/styles/components/image.css +125 -0
- package/dist/antd/styles/components/input.css +459 -0
- package/dist/antd/styles/components/inputnumber.css +102 -0
- package/dist/antd/styles/components/layout.css +63 -0
- package/dist/antd/styles/components/list.css +109 -0
- package/dist/antd/styles/components/mentions.css +84 -0
- package/dist/antd/styles/components/menu.css +190 -0
- package/dist/antd/styles/components/message.css +68 -0
- package/dist/antd/styles/components/modal.css +124 -0
- package/dist/antd/styles/components/notification.css +89 -0
- package/dist/antd/styles/components/pageheader.css +62 -0
- package/dist/antd/styles/components/pagination.css +139 -0
- package/dist/antd/styles/components/popconfirm.css +64 -0
- package/dist/antd/styles/components/popover.css +40 -0
- package/dist/antd/styles/components/progress.css +105 -0
- package/dist/antd/styles/components/qrcode.css +43 -0
- package/dist/antd/styles/components/radio.css +166 -0
- package/dist/antd/styles/components/rate.css +47 -0
- package/dist/antd/styles/components/result.css +63 -0
- package/dist/antd/styles/components/scrollbar.css +22 -0
- package/dist/antd/styles/components/segmented.css +75 -0
- package/dist/antd/styles/components/select.css +282 -0
- package/dist/antd/styles/components/skeleton.css +96 -0
- package/dist/antd/styles/components/slider.css +119 -0
- package/dist/antd/styles/components/space.css +59 -0
- package/dist/antd/styles/components/spin.css +91 -0
- package/dist/antd/styles/components/statistic.css +48 -0
- package/dist/antd/styles/components/steps.css +176 -0
- package/dist/antd/styles/components/switch.css +128 -0
- package/dist/antd/styles/components/table.css +197 -0
- package/dist/antd/styles/components/tabs.css +212 -0
- package/dist/antd/styles/components/tag.css +286 -0
- package/dist/antd/styles/components/textArea.css +40 -0
- package/dist/antd/styles/components/timeline.css +106 -0
- package/dist/antd/styles/components/timepicker.css +105 -0
- package/dist/antd/styles/components/tooltip.css +37 -0
- package/dist/antd/styles/components/tour.css +114 -0
- package/dist/antd/styles/components/transfer.css +232 -0
- package/dist/antd/styles/components/tree.css +143 -0
- package/dist/antd/styles/components/treeselect.css +46 -0
- package/dist/antd/styles/components/typography.css +184 -0
- package/dist/antd/styles/components/upload.css +181 -0
- package/dist/antd/styles/components/watermark.css +16 -0
- package/dist/antd/styles/dark.css +533 -0
- package/dist/antd/styles/index.css +115 -0
- package/dist/antd/styles/overrides.css +147 -0
- package/dist/antd/styles/variables.css +259 -0
- package/dist/chunk-FMQWBDDZ.js +207 -0
- package/dist/chunk-NGAVTDQ2.js +200 -0
- package/dist/chunk-QQOB6AOA.js +213 -0
- package/dist/core/index.d.ts +179 -0
- package/dist/core/index.js +10 -0
- package/dist/core/variables.css +258 -0
- package/dist/element/index.d.ts +3 -0
- package/dist/element/index.js +17 -0
- package/dist/element/plugin.d.ts +34 -0
- package/dist/element/plugin.js +12 -0
- package/dist/element/styles/base.css +277 -0
- package/dist/element/styles/components/affix.css +7 -0
- package/dist/element/styles/components/alert.css +44 -0
- package/dist/element/styles/components/anchor.css +34 -0
- package/dist/element/styles/components/autocomplete.css +61 -0
- package/dist/element/styles/components/avatar.css +31 -0
- package/dist/element/styles/components/backtop.css +22 -0
- package/dist/element/styles/components/badge.css +48 -0
- package/dist/element/styles/components/breadcrumb.css +38 -0
- package/dist/element/styles/components/button.css +193 -0
- package/dist/element/styles/components/calendar.css +58 -0
- package/dist/element/styles/components/card.css +29 -0
- package/dist/element/styles/components/carousel.css +78 -0
- package/dist/element/styles/components/cascader.css +120 -0
- package/dist/element/styles/components/check-tag.css +35 -0
- package/dist/element/styles/components/checkbox.css +39 -0
- package/dist/element/styles/components/collapse.css +58 -0
- package/dist/element/styles/components/color-picker.css +82 -0
- package/dist/element/styles/components/config-provider.css +6 -0
- package/dist/element/styles/components/container.css +26 -0
- package/dist/element/styles/components/datepicker.css +165 -0
- package/dist/element/styles/components/descriptions-item.css +6 -0
- package/dist/element/styles/components/descriptions.css +51 -0
- package/dist/element/styles/components/dialog.css +91 -0
- package/dist/element/styles/components/divider.css +37 -0
- package/dist/element/styles/components/drawer.css +33 -0
- package/dist/element/styles/components/dropdown.css +30 -0
- package/dist/element/styles/components/empty.css +28 -0
- package/dist/element/styles/components/form.css +106 -0
- package/dist/element/styles/components/image.css +59 -0
- package/dist/element/styles/components/infinite-scroll.css +24 -0
- package/dist/element/styles/components/input-number.css +95 -0
- package/dist/element/styles/components/input.css +170 -0
- package/dist/element/styles/components/link.css +73 -0
- package/dist/element/styles/components/loading.css +50 -0
- package/dist/element/styles/components/mention.css +49 -0
- package/dist/element/styles/components/menu.css +140 -0
- package/dist/element/styles/components/message.css +88 -0
- package/dist/element/styles/components/notification.css +81 -0
- package/dist/element/styles/components/page-header.css +41 -0
- package/dist/element/styles/components/pagination.css +135 -0
- package/dist/element/styles/components/popconfirm.css +35 -0
- package/dist/element/styles/components/popover.css +22 -0
- package/dist/element/styles/components/progress.css +28 -0
- package/dist/element/styles/components/radio.css +64 -0
- package/dist/element/styles/components/rate.css +33 -0
- package/dist/element/styles/components/result.css +51 -0
- package/dist/element/styles/components/row.css +11 -0
- package/dist/element/styles/components/scrollbar.css +33 -0
- package/dist/element/styles/components/segmented.css +59 -0
- package/dist/element/styles/components/select.css +226 -0
- package/dist/element/styles/components/skeleton.css +65 -0
- package/dist/element/styles/components/slider.css +93 -0
- package/dist/element/styles/components/space.css +19 -0
- package/dist/element/styles/components/statistic.css +33 -0
- package/dist/element/styles/components/steps.css +122 -0
- package/dist/element/styles/components/switch.css +32 -0
- package/dist/element/styles/components/table.css +144 -0
- package/dist/element/styles/components/tabs.css +125 -0
- package/dist/element/styles/components/tag.css +150 -0
- package/dist/element/styles/components/text.css +50 -0
- package/dist/element/styles/components/time-picker.css +106 -0
- package/dist/element/styles/components/timeline.css +58 -0
- package/dist/element/styles/components/tooltip.css +22 -0
- package/dist/element/styles/components/tour.css +58 -0
- package/dist/element/styles/components/transfer.css +181 -0
- package/dist/element/styles/components/tree-select.css +28 -0
- package/dist/element/styles/components/tree.css +66 -0
- package/dist/element/styles/components/upload.css +96 -0
- package/dist/element/styles/components/virtualized.css +75 -0
- package/dist/element/styles/components/watermark.css +20 -0
- package/dist/element/styles/dark.css +82 -0
- package/dist/element/styles/index.css +107 -0
- package/package.json +78 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input 输入框 - Semi Design 风格
|
|
3
|
+
*
|
|
4
|
+
* 基于 Semi Design 源码: packages/semi-foundation/input/input.scss
|
|
5
|
+
*
|
|
6
|
+
* 状态说明:
|
|
7
|
+
* - 默认: fill-0 背景 + 透明边框
|
|
8
|
+
* - 悬浮: fill-1 背景 + 透明边框
|
|
9
|
+
* - 聚焦: fill-0 背景 + focus-border 边框
|
|
10
|
+
* - 按下: fill-2 背景
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/* ========== 基础样式 ========== */
|
|
14
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input {
|
|
15
|
+
background-color: var(--semi-color-fill-0);
|
|
16
|
+
border: 1px solid transparent;
|
|
17
|
+
border-radius: var(--semi-border-radius-small);
|
|
18
|
+
color: var(--semi-color-text-0);
|
|
19
|
+
font-size: var(--semi-font-size-regular);
|
|
20
|
+
padding: 0 12px;
|
|
21
|
+
height: 32px;
|
|
22
|
+
line-height: 30px;
|
|
23
|
+
transition: background-color 0.1s ease, border 0.1s ease;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input::placeholder {
|
|
27
|
+
color: var(--semi-color-text-2);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* 悬浮状态 */
|
|
31
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input:hover:not(:disabled):not(:focus):not(.ant-input-status-error):not(.ant-input-status-warning) {
|
|
32
|
+
background-color: var(--semi-color-fill-1);
|
|
33
|
+
border-color: transparent;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* 聚焦状态 - 背景保持 fill-0,边框变成 focus-border */
|
|
37
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input:focus {
|
|
38
|
+
background-color: var(--semi-color-fill-0);
|
|
39
|
+
border-color: var(--semi-color-focus-border);
|
|
40
|
+
box-shadow: none;
|
|
41
|
+
outline: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* 按下状态 */
|
|
45
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input:active:not(:disabled) {
|
|
46
|
+
background-color: var(--semi-color-fill-2);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* ========== Affix Wrapper (带前缀/后缀图标的输入框) ========== */
|
|
50
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper {
|
|
51
|
+
background-color: var(--semi-color-fill-0);
|
|
52
|
+
border: 1px solid transparent;
|
|
53
|
+
border-radius: var(--semi-border-radius-small);
|
|
54
|
+
padding: 0 12px;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
height: 32px;
|
|
58
|
+
transition: background-color 0.1s ease, border 0.1s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* 悬浮状态 */
|
|
62
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper:hover:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-focused):not(.ant-input-affix-wrapper-status-error):not(.ant-input-affix-wrapper-status-warning) {
|
|
63
|
+
background-color: var(--semi-color-fill-1);
|
|
64
|
+
border-color: transparent;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* 聚焦状态 */
|
|
68
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper:focus-within,
|
|
69
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-focused {
|
|
70
|
+
background-color: var(--semi-color-fill-0);
|
|
71
|
+
border-color: var(--semi-color-focus-border);
|
|
72
|
+
box-shadow: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* 内部的 input */
|
|
76
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper > .ant-input {
|
|
77
|
+
background: transparent;
|
|
78
|
+
border: none;
|
|
79
|
+
padding: 0;
|
|
80
|
+
height: auto;
|
|
81
|
+
line-height: 30px;
|
|
82
|
+
flex: 1;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper > .ant-input:focus {
|
|
87
|
+
outline: none;
|
|
88
|
+
box-shadow: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* 前缀/后缀图标 */
|
|
92
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-prefix {
|
|
93
|
+
color: var(--semi-color-text-2);
|
|
94
|
+
margin-inline-end: 8px;
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-suffix {
|
|
100
|
+
color: var(--semi-color-text-2);
|
|
101
|
+
margin-inline-start: 8px;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* ========== Input Group Wrapper (带 addon 的输入框) ========== */
|
|
107
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-group-wrapper {
|
|
108
|
+
display: inline-block;
|
|
109
|
+
width: 100%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-wrapper.ant-input-group {
|
|
113
|
+
display: inline-flex;
|
|
114
|
+
align-items: stretch;
|
|
115
|
+
width: 100%;
|
|
116
|
+
background-color: transparent;
|
|
117
|
+
border: 1px solid transparent;
|
|
118
|
+
border-radius: var(--semi-border-radius-small);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Addon 标签 - prepend/append */
|
|
122
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-group-addon {
|
|
123
|
+
background-color: var(--semi-color-fill-0);
|
|
124
|
+
border: none;
|
|
125
|
+
color: var(--semi-color-text-2);
|
|
126
|
+
font-size: var(--semi-font-size-regular);
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
padding: 0 12px;
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
white-space: nowrap;
|
|
132
|
+
flex-shrink: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* prepend (第一个 addon) */
|
|
136
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-group-addon:first-child {
|
|
137
|
+
border-radius: var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small);
|
|
138
|
+
border-right: 1px solid var(--semi-color-border);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* append (最后一个 addon) */
|
|
142
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-group-addon:last-child {
|
|
143
|
+
border-radius: 0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;
|
|
144
|
+
border-left: 1px solid var(--semi-color-border);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Group 内的 Input */
|
|
148
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-wrapper.ant-input-group > .ant-input {
|
|
149
|
+
flex: 1;
|
|
150
|
+
min-width: 0;
|
|
151
|
+
border-radius: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-wrapper.ant-input-group > .ant-input:last-child {
|
|
155
|
+
border-radius: 0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-wrapper.ant-input-group > .ant-input:first-child {
|
|
159
|
+
border-radius: var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* 当 input 在 addon 之间时 */
|
|
163
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-group-addon + .ant-input {
|
|
164
|
+
border-radius: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-group-addon:first-child + .ant-input:last-child {
|
|
168
|
+
border-radius: 0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Group 内 Input 聚焦时的边框 */
|
|
172
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-wrapper.ant-input-group > .ant-input:focus {
|
|
173
|
+
border-color: var(--semi-color-focus-border);
|
|
174
|
+
z-index: 1;
|
|
175
|
+
position: relative;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* ========== 尺寸 ========== */
|
|
179
|
+
/* Large */
|
|
180
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-lg {
|
|
181
|
+
height: 40px;
|
|
182
|
+
line-height: 38px;
|
|
183
|
+
font-size: var(--semi-font-size-regular);
|
|
184
|
+
border-radius: var(--semi-border-radius-small);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-lg {
|
|
188
|
+
height: 40px;
|
|
189
|
+
border-radius: var(--semi-border-radius-small);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Small */
|
|
193
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-sm {
|
|
194
|
+
height: 24px;
|
|
195
|
+
line-height: 22px;
|
|
196
|
+
padding: 0 8px;
|
|
197
|
+
font-size: var(--semi-font-size-regular);
|
|
198
|
+
border-radius: var(--semi-border-radius-small);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-sm {
|
|
202
|
+
height: 24px;
|
|
203
|
+
padding: 0 8px;
|
|
204
|
+
border-radius: var(--semi-border-radius-small);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* ========== 状态 - Error ========== */
|
|
208
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-status-error:not(:disabled) {
|
|
209
|
+
background-color: var(--semi-color-danger-light-default);
|
|
210
|
+
border-color: var(--semi-color-danger-light-default);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled) {
|
|
214
|
+
background-color: var(--semi-color-danger-light-default);
|
|
215
|
+
border-color: var(--semi-color-danger-light-default);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-status-error:not(:disabled):hover,
|
|
219
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):hover {
|
|
220
|
+
background-color: var(--semi-color-danger-light-hover);
|
|
221
|
+
border-color: var(--semi-color-danger-light-hover);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-status-error:not(:disabled):focus,
|
|
225
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):focus-within {
|
|
226
|
+
background-color: var(--semi-color-danger-light-default);
|
|
227
|
+
border-color: var(--semi-color-danger);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* ========== 状态 - Warning ========== */
|
|
231
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-status-warning:not(:disabled) {
|
|
232
|
+
background-color: var(--semi-color-warning-light-default);
|
|
233
|
+
border-color: var(--semi-color-warning-light-default);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled) {
|
|
237
|
+
background-color: var(--semi-color-warning-light-default);
|
|
238
|
+
border-color: var(--semi-color-warning-light-default);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-status-warning:not(:disabled):hover,
|
|
242
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):hover {
|
|
243
|
+
background-color: var(--semi-color-warning-light-hover);
|
|
244
|
+
border-color: var(--semi-color-warning-light-hover);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-status-warning:not(:disabled):focus,
|
|
248
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):focus-within {
|
|
249
|
+
background-color: var(--semi-color-warning-light-default);
|
|
250
|
+
border-color: var(--semi-color-warning);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* ========== 禁用状态 ========== */
|
|
254
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input:disabled,
|
|
255
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input[disabled] {
|
|
256
|
+
background-color: var(--semi-color-disabled-fill);
|
|
257
|
+
border-color: transparent;
|
|
258
|
+
color: var(--semi-color-disabled-text);
|
|
259
|
+
cursor: not-allowed;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-affix-wrapper-disabled {
|
|
263
|
+
background-color: var(--semi-color-disabled-fill);
|
|
264
|
+
border-color: transparent;
|
|
265
|
+
color: var(--semi-color-disabled-text);
|
|
266
|
+
cursor: not-allowed;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* ========== TextArea 文本域 ========== */
|
|
270
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-textarea .ant-input {
|
|
271
|
+
height: auto;
|
|
272
|
+
min-height: 60px;
|
|
273
|
+
padding: 5px 12px;
|
|
274
|
+
line-height: 1.5;
|
|
275
|
+
resize: vertical;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-textarea-show-count::after {
|
|
279
|
+
color: var(--semi-color-text-2);
|
|
280
|
+
font-size: var(--semi-font-size-small);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* ========== Input Search ========== */
|
|
284
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-search .ant-input-group-addon {
|
|
285
|
+
background: transparent;
|
|
286
|
+
border: none;
|
|
287
|
+
padding: 0;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-search .ant-input-affix-wrapper {
|
|
291
|
+
border-radius: var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-search .ant-input {
|
|
295
|
+
border-radius: var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-search .ant-btn {
|
|
299
|
+
height: 32px;
|
|
300
|
+
border-radius: 0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-search-lg .ant-btn {
|
|
304
|
+
height: 40px;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-search-sm .ant-btn {
|
|
308
|
+
height: 24px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/* ========== Input Password ========== */
|
|
312
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-password .ant-input-suffix {
|
|
313
|
+
cursor: pointer;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-password .ant-input-suffix:hover {
|
|
317
|
+
color: var(--semi-color-primary-hover);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* ========== Input Number ========== */
|
|
321
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-number,
|
|
322
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number {
|
|
323
|
+
background-color: var(--semi-color-fill-0);
|
|
324
|
+
border: 1px solid transparent;
|
|
325
|
+
border-radius: var(--semi-border-radius-small);
|
|
326
|
+
transition: background-color 0.1s ease, border 0.1s ease;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-number:hover:not(.ant-input-number-disabled):not(.ant-input-number-focused),
|
|
330
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number:hover:not(.ant-input-number-disabled):not(.ant-input-number-focused) {
|
|
331
|
+
background-color: var(--semi-color-fill-1);
|
|
332
|
+
border-color: transparent;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-number:focus-within,
|
|
336
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-number-focused,
|
|
337
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number:focus-within,
|
|
338
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-focused {
|
|
339
|
+
background-color: var(--semi-color-fill-0);
|
|
340
|
+
border-color: var(--semi-color-focus-border);
|
|
341
|
+
box-shadow: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-number-input,
|
|
345
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-input {
|
|
346
|
+
padding: 0 12px;
|
|
347
|
+
color: var(--semi-color-text-0);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-number-handler-wrap,
|
|
351
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler-wrap {
|
|
352
|
+
background: transparent;
|
|
353
|
+
border-left: 1px solid var(--semi-color-border);
|
|
354
|
+
opacity: 1;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-number-handler,
|
|
358
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler {
|
|
359
|
+
border-color: var(--semi-color-border);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-number-handler:hover,
|
|
363
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler:hover {
|
|
364
|
+
background: var(--semi-color-fill-0);
|
|
365
|
+
color: var(--semi-color-primary);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* ========== 清除按钮 ========== */
|
|
369
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-clear-icon {
|
|
370
|
+
color: var(--semi-color-text-2);
|
|
371
|
+
transition: color 0.1s ease;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-input-clear-icon:hover {
|
|
375
|
+
color: var(--semi-color-primary-hover);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* ========== Compact Space 紧凑组合 ========== */
|
|
379
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-space-compact .ant-input {
|
|
380
|
+
border-radius: 0;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-space-compact .ant-input:first-child,
|
|
384
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-space-compact > *:first-child .ant-input {
|
|
385
|
+
border-radius: var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-space-compact .ant-input:last-child,
|
|
389
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-space-compact > *:last-child .ant-input {
|
|
390
|
+
border-radius: 0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-space-compact .ant-input-affix-wrapper {
|
|
394
|
+
border-radius: 0;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-space-compact .ant-input-affix-wrapper:first-child {
|
|
398
|
+
border-radius: var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.semi:where([data-semi="all"], [data-semi-input]) .ant-space-compact .ant-input-affix-wrapper:last-child {
|
|
402
|
+
border-radius: 0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* ==========================================================================
|
|
406
|
+
全局 Input Focus 覆盖规则
|
|
407
|
+
确保在所有组件内的输入框都能正确应用 Semi Design focus 样式
|
|
408
|
+
========================================================================== */
|
|
409
|
+
|
|
410
|
+
/* 通用 input focus */
|
|
411
|
+
.semi .ant-input:focus,
|
|
412
|
+
.semi .ant-input:focus-visible {
|
|
413
|
+
background-color: var(--semi-color-fill-0);
|
|
414
|
+
border-color: var(--semi-color-focus-border);
|
|
415
|
+
box-shadow: none;
|
|
416
|
+
outline: none;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* 通用 affix-wrapper focus */
|
|
420
|
+
.semi .ant-input-affix-wrapper:focus-within,
|
|
421
|
+
.semi .ant-input-affix-wrapper-focused,
|
|
422
|
+
.semi .ant-input-affix-wrapper:focus {
|
|
423
|
+
background-color: var(--semi-color-fill-0);
|
|
424
|
+
border-color: var(--semi-color-focus-border);
|
|
425
|
+
box-shadow: none;
|
|
426
|
+
outline: none;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.semi .ant-input-affix-wrapper .ant-input:focus,
|
|
430
|
+
.semi .ant-input-affix-wrapper .ant-input:focus-visible {
|
|
431
|
+
background: transparent;
|
|
432
|
+
box-shadow: none;
|
|
433
|
+
outline: none;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* Portal 组件中的 Input (渲染在 body 下) */
|
|
437
|
+
body.semi .ant-input:focus,
|
|
438
|
+
body.semi .ant-input:focus-visible {
|
|
439
|
+
background-color: var(--semi-color-fill-0);
|
|
440
|
+
border-color: var(--semi-color-focus-border);
|
|
441
|
+
box-shadow: none;
|
|
442
|
+
outline: none;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
body.semi .ant-input-affix-wrapper:focus-within,
|
|
446
|
+
body.semi .ant-input-affix-wrapper-focused,
|
|
447
|
+
body.semi .ant-input-affix-wrapper:focus {
|
|
448
|
+
background-color: var(--semi-color-fill-0);
|
|
449
|
+
border-color: var(--semi-color-focus-border);
|
|
450
|
+
box-shadow: none;
|
|
451
|
+
outline: none;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
body.semi .ant-input-affix-wrapper .ant-input:focus,
|
|
455
|
+
body.semi .ant-input-affix-wrapper .ant-input:focus-visible {
|
|
456
|
+
background: transparent;
|
|
457
|
+
box-shadow: none;
|
|
458
|
+
outline: none;
|
|
459
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InputNumber 数字输入框 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number {
|
|
6
|
+
background-color: var(--semi-color-fill-0);
|
|
7
|
+
border: 1px solid transparent;
|
|
8
|
+
border-radius: var(--semi-border-radius-small);
|
|
9
|
+
box-shadow: none;
|
|
10
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number:hover {
|
|
14
|
+
background-color: var(--semi-color-fill-1);
|
|
15
|
+
border-color: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number:focus,
|
|
19
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-focused {
|
|
20
|
+
background-color: var(--semi-color-fill-0);
|
|
21
|
+
border-color: var(--semi-color-focus-border);
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-input {
|
|
26
|
+
color: var(--semi-color-text-0);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-input::placeholder {
|
|
30
|
+
color: var(--semi-color-text-2);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* 控制按钮 */
|
|
34
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler-wrap {
|
|
35
|
+
background: transparent;
|
|
36
|
+
border-left: 1px solid var(--semi-color-border);
|
|
37
|
+
border-radius: 0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;
|
|
38
|
+
opacity: 0;
|
|
39
|
+
transition: opacity var(--semi-transition-duration) var(--semi-transition-timing);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number:hover .ant-input-number-handler-wrap {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler {
|
|
47
|
+
border: none;
|
|
48
|
+
color: var(--semi-color-text-2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler:hover {
|
|
52
|
+
color: var(--semi-color-primary);
|
|
53
|
+
background: var(--semi-color-fill-0);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler-up {
|
|
57
|
+
border-radius: 0 var(--semi-border-radius-small) 0 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler-down {
|
|
61
|
+
border-top: 1px solid var(--semi-color-border);
|
|
62
|
+
border-radius: 0 0 var(--semi-border-radius-small) 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler-up-disabled,
|
|
66
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-handler-down-disabled {
|
|
67
|
+
color: var(--semi-color-disabled-text);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* 禁用状态 */
|
|
71
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-disabled {
|
|
72
|
+
background-color: var(--semi-color-disabled-fill);
|
|
73
|
+
border-color: transparent;
|
|
74
|
+
color: var(--semi-color-disabled-text);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-disabled .ant-input-number-input {
|
|
78
|
+
color: var(--semi-color-disabled-text);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* 状态 */
|
|
82
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-status-error {
|
|
83
|
+
border-color: var(--semi-color-danger);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-status-warning {
|
|
87
|
+
border-color: var(--semi-color-warning);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* 边框模式 */
|
|
91
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-borderless {
|
|
92
|
+
background-color: transparent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* 尺寸 */
|
|
96
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-sm {
|
|
97
|
+
border-radius: var(--semi-border-radius-small);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.semi:where([data-semi="all"], [data-semi-inputnumber]) .ant-input-number-lg {
|
|
101
|
+
border-radius: var(--semi-border-radius-small);
|
|
102
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout 布局 - Semi Design 风格
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout {
|
|
6
|
+
background: var(--semi-color-bg-0);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-header {
|
|
10
|
+
background: var(--semi-color-bg-0);
|
|
11
|
+
padding: 0 24px;
|
|
12
|
+
line-height: 64px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-sider {
|
|
16
|
+
background: var(--semi-color-bg-1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-sider-light {
|
|
20
|
+
background: #fff;
|
|
21
|
+
border-right: 1px solid var(--semi-color-border);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-sider-dark {
|
|
25
|
+
background: #001529;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-content {
|
|
29
|
+
background: var(--semi-color-bg-2);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-footer {
|
|
33
|
+
background: var(--semi-color-bg-0);
|
|
34
|
+
color: var(--semi-color-text-1);
|
|
35
|
+
padding: 24px 50px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* 侧边栏触发器 */
|
|
39
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-sider-trigger {
|
|
40
|
+
background: var(--semi-color-fill-1);
|
|
41
|
+
color: var(--semi-color-text-1);
|
|
42
|
+
transition: all var(--semi-transition-duration) var(--semi-transition-timing);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-sider-trigger:hover {
|
|
46
|
+
background: var(--semi-color-fill-2);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-sider-light .ant-layout-sider-trigger {
|
|
50
|
+
background: var(--semi-color-fill-0);
|
|
51
|
+
border-top: 1px solid var(--semi-color-border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* 折叠按钮 */
|
|
55
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-sider-zero-width-trigger {
|
|
56
|
+
background: var(--semi-color-primary);
|
|
57
|
+
border-radius: 0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;
|
|
58
|
+
color: #fff;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.semi:where([data-semi="all"], [data-semi-layout]) .ant-layout-sider-zero-width-trigger:hover {
|
|
62
|
+
background: var(--semi-color-primary-hover);
|
|
63
|
+
}
|