1 | * {
|
2 | box-sizing: border-box;
|
3 | }
|
4 | .rc-select {
|
5 | display: inline-block;
|
6 | font-size: 12px;
|
7 | width: 100px;
|
8 | position: relative;
|
9 | }
|
10 | .rc-select-disabled,
|
11 | .rc-select-disabled input {
|
12 | cursor: not-allowed;
|
13 | }
|
14 | .rc-select-disabled .rc-select-selector {
|
15 | opacity: 0.3;
|
16 | }
|
17 | .rc-select-show-arrow.rc-select-loading .rc-select-arrow-icon::after {
|
18 | box-sizing: border-box;
|
19 | width: 12px;
|
20 | height: 12px;
|
21 | border-radius: 100%;
|
22 | border: 2px solid #999;
|
23 | border-top-color: transparent;
|
24 | border-bottom-color: transparent;
|
25 | transform: none;
|
26 | margin-top: 4px;
|
27 | animation: rcSelectLoadingIcon 0.5s infinite;
|
28 | }
|
29 | .rc-select .rc-select-selection-placeholder {
|
30 | opacity: 0.4;
|
31 | pointer-events: none;
|
32 | }
|
33 | .rc-select .rc-select-selection-search-input {
|
34 | appearance: none;
|
35 | }
|
36 | .rc-select .rc-select-selection-search-input::-webkit-search-cancel-button {
|
37 | display: none;
|
38 | appearance: none;
|
39 | }
|
40 | .rc-select-single .rc-select-selector {
|
41 | display: flex;
|
42 | position: relative;
|
43 | }
|
44 | .rc-select-single .rc-select-selector .rc-select-selection-wrap {
|
45 | width: 100%;
|
46 | position: relative;
|
47 | }
|
48 | .rc-select-single .rc-select-selector .rc-select-selection-search {
|
49 | width: 100%;
|
50 | position: relative;
|
51 | }
|
52 | .rc-select-single .rc-select-selector .rc-select-selection-search-input {
|
53 | width: 100%;
|
54 | }
|
55 | .rc-select-single .rc-select-selector .rc-select-selection-item,
|
56 | .rc-select-single .rc-select-selector .rc-select-selection-placeholder {
|
57 | position: absolute;
|
58 | top: 1px;
|
59 | left: 3px;
|
60 | pointer-events: none;
|
61 | font-weight: normal;
|
62 | }
|
63 | .rc-select-single:not(.rc-select-customize-input) .rc-select-selector {
|
64 | padding: 1px;
|
65 | border: 1px solid #000;
|
66 | }
|
67 | .rc-select-single:not(.rc-select-customize-input) .rc-select-selector .rc-select-selection-search-input {
|
68 | border: none;
|
69 | outline: none;
|
70 | background: rgba(255, 0, 0, 0.2);
|
71 | width: 100%;
|
72 | }
|
73 | .rc-select-multiple .rc-select-selector {
|
74 | display: flex;
|
75 | padding: 1px;
|
76 | border: 1px solid #000;
|
77 | }
|
78 | .rc-select-multiple .rc-select-selector .rc-select-selection-item {
|
79 | flex: none;
|
80 | background: #bbb;
|
81 | border-radius: 4px;
|
82 | margin-right: 2px;
|
83 | padding: 0 8px;
|
84 | }
|
85 | .rc-select-multiple .rc-select-selector .rc-select-selection-item-disabled {
|
86 | cursor: not-allowed;
|
87 | opacity: 0.5;
|
88 | }
|
89 | .rc-select-multiple .rc-select-selector .rc-select-selection-overflow {
|
90 | display: flex;
|
91 | flex-wrap: wrap;
|
92 | }
|
93 | .rc-select-multiple .rc-select-selector .rc-select-selection-overflow-item {
|
94 | flex: none;
|
95 | max-width: 100%;
|
96 | }
|
97 | .rc-select-multiple .rc-select-selector .rc-select-selection-search {
|
98 | position: relative;
|
99 | max-width: 100%;
|
100 | }
|
101 | .rc-select-multiple .rc-select-selector .rc-select-selection-search-input,
|
102 | .rc-select-multiple .rc-select-selector .rc-select-selection-search-mirror {
|
103 | padding: 1px;
|
104 | font-family: system-ui;
|
105 | }
|
106 | .rc-select-multiple .rc-select-selector .rc-select-selection-search-mirror {
|
107 | position: absolute;
|
108 | z-index: 999;
|
109 | white-space: nowrap;
|
110 | position: none;
|
111 | left: 0;
|
112 | top: 0;
|
113 | visibility: hidden;
|
114 | }
|
115 | .rc-select-multiple .rc-select-selector .rc-select-selection-search-input {
|
116 | border: none;
|
117 | outline: none;
|
118 | background: rgba(255, 0, 0, 0.2);
|
119 | width: 100%;
|
120 | }
|
121 | .rc-select-allow-clear.rc-select-multiple .rc-select-selector {
|
122 | padding-right: 20px;
|
123 | }
|
124 | .rc-select-allow-clear .rc-select-clear {
|
125 | position: absolute;
|
126 | right: 20px;
|
127 | top: 0;
|
128 | }
|
129 | .rc-select-show-arrow.rc-select-multiple .rc-select-selector {
|
130 | padding-right: 20px;
|
131 | }
|
132 | .rc-select-show-arrow .rc-select-arrow {
|
133 | pointer-events: none;
|
134 | position: absolute;
|
135 | right: 5px;
|
136 | top: 0;
|
137 | }
|
138 | .rc-select-show-arrow .rc-select-arrow-icon::after {
|
139 | content: '';
|
140 | border: 5px solid transparent;
|
141 | width: 0;
|
142 | height: 0;
|
143 | display: inline-block;
|
144 | border-top-color: #999;
|
145 | transform: translateY(5px);
|
146 | }
|
147 | .rc-select-focused .rc-select-selector {
|
148 | border-color: blue !important;
|
149 | }
|
150 | .rc-select-dropdown {
|
151 | border: 1px solid green;
|
152 | min-height: 100px;
|
153 | position: absolute;
|
154 | background: #fff;
|
155 | }
|
156 | .rc-select-dropdown-hidden {
|
157 | display: none;
|
158 | }
|
159 | .rc-select-item {
|
160 | font-size: 16px;
|
161 | line-height: 1.5;
|
162 | padding: 4px 16px;
|
163 | }
|
164 | .rc-select-item-group {
|
165 | color: #999;
|
166 | font-weight: bold;
|
167 | font-size: 80%;
|
168 | }
|
169 | .rc-select-item-option {
|
170 | position: relative;
|
171 | }
|
172 | .rc-select-item-option-grouped {
|
173 | padding-left: 24px;
|
174 | }
|
175 | .rc-select-item-option .rc-select-item-option-state {
|
176 | position: absolute;
|
177 | right: 0;
|
178 | top: 4px;
|
179 | pointer-events: none;
|
180 | }
|
181 | .rc-select-item-option-active {
|
182 | background: #ddd;
|
183 | }
|
184 | .rc-select-item-option-disabled {
|
185 | color: #999;
|
186 | }
|
187 | .rc-select-item-empty {
|
188 | text-align: center;
|
189 | color: #999;
|
190 | }
|
191 | .rc-select-selection__choice-zoom {
|
192 | transition: all 0.3s;
|
193 | }
|
194 | .rc-select-selection__choice-zoom-appear {
|
195 | opacity: 0;
|
196 | transform: scale(0.5);
|
197 | }
|
198 | .rc-select-selection__choice-zoom-appear.rc-select-selection__choice-zoom-appear-active {
|
199 | opacity: 1;
|
200 | transform: scale(1);
|
201 | }
|
202 | .rc-select-selection__choice-zoom-leave {
|
203 | opacity: 1;
|
204 | transform: scale(1);
|
205 | }
|
206 | .rc-select-selection__choice-zoom-leave.rc-select-selection__choice-zoom-leave-active {
|
207 | opacity: 0;
|
208 | transform: scale(0.5);
|
209 | }
|
210 | .rc-select-dropdown-slide-up-enter,
|
211 | .rc-select-dropdown-slide-up-appear {
|
212 | animation-duration: 0.3s;
|
213 | animation-fill-mode: both;
|
214 | transform-origin: 0 0;
|
215 | opacity: 0;
|
216 | animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
|
217 | animation-play-state: paused;
|
218 | }
|
219 | .rc-select-dropdown-slide-up-leave {
|
220 | animation-duration: 0.3s;
|
221 | animation-fill-mode: both;
|
222 | transform-origin: 0 0;
|
223 | opacity: 1;
|
224 | animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
|
225 | animation-play-state: paused;
|
226 | }
|
227 | .rc-select-dropdown-slide-up-enter.rc-select-dropdown-slide-up-enter-active.rc-select-dropdown-placement-bottomLeft,
|
228 | .rc-select-dropdown-slide-up-appear.rc-select-dropdown-slide-up-appear-active.rc-select-dropdown-placement-bottomLeft,
|
229 | .rc-select-dropdown-slide-up-enter.rc-select-dropdown-slide-up-enter-active.rc-select-dropdown-placement-bottomRight,
|
230 | .rc-select-dropdown-slide-up-appear.rc-select-dropdown-slide-up-appear-active.rc-select-dropdown-placement-bottomRight {
|
231 | animation-name: rcSelectDropdownSlideUpIn;
|
232 | animation-play-state: running;
|
233 | }
|
234 | .rc-select-dropdown-slide-up-leave.rc-select-dropdown-slide-up-leave-active.rc-select-dropdown-placement-bottomLeft,
|
235 | .rc-select-dropdown-slide-up-leave.rc-select-dropdown-slide-up-leave-active.rc-select-dropdown-placement-bottomRight {
|
236 | animation-name: rcSelectDropdownSlideUpOut;
|
237 | animation-play-state: running;
|
238 | }
|
239 | .rc-select-dropdown-slide-up-enter.rc-select-dropdown-slide-up-enter-active.rc-select-dropdown-placement-topLeft,
|
240 | .rc-select-dropdown-slide-up-appear.rc-select-dropdown-slide-up-appear-active.rc-select-dropdown-placement-topLeft,
|
241 | .rc-select-dropdown-slide-up-enter.rc-select-dropdown-slide-up-enter-active.rc-select-dropdown-placement-topRight,
|
242 | .rc-select-dropdown-slide-up-appear.rc-select-dropdown-slide-up-appear-active.rc-select-dropdown-placement-topRight {
|
243 | animation-name: rcSelectDropdownSlideDownIn;
|
244 | animation-play-state: running;
|
245 | }
|
246 | .rc-select-dropdown-slide-up-leave.rc-select-dropdown-slide-up-leave-active.rc-select-dropdown-placement-topLeft,
|
247 | .rc-select-dropdown-slide-up-leave.rc-select-dropdown-slide-up-leave-active.rc-select-dropdown-placement-topRight {
|
248 | animation-name: rcSelectDropdownSlideDownOut;
|
249 | animation-play-state: running;
|
250 | }
|
251 | @keyframes rcSelectDropdownSlideUpIn {
|
252 | 0% {
|
253 | opacity: 0;
|
254 | transform-origin: 0% 0%;
|
255 | transform: scaleY(0);
|
256 | }
|
257 | 100% {
|
258 | opacity: 1;
|
259 | transform-origin: 0% 0%;
|
260 | transform: scaleY(1);
|
261 | }
|
262 | }
|
263 | @keyframes rcSelectDropdownSlideUpOut {
|
264 | 0% {
|
265 | opacity: 1;
|
266 | transform-origin: 0% 0%;
|
267 | transform: scaleY(1);
|
268 | }
|
269 | 100% {
|
270 | opacity: 0;
|
271 | transform-origin: 0% 0%;
|
272 | transform: scaleY(0);
|
273 | }
|
274 | }
|
275 | @keyframes rcSelectDropdownSlideDownIn {
|
276 | 0% {
|
277 | transform: scaleY(0);
|
278 | transform-origin: 100% 100%;
|
279 | opacity: 0;
|
280 | }
|
281 | 100% {
|
282 | transform: scaleY(1);
|
283 | transform-origin: 100% 100%;
|
284 | opacity: 1;
|
285 | }
|
286 | }
|
287 | @keyframes rcSelectDropdownSlideDownOut {
|
288 | 0% {
|
289 | transform: scaleY(1);
|
290 | transform-origin: 100% 100%;
|
291 | opacity: 1;
|
292 | }
|
293 | 100% {
|
294 | transform: scaleY(0);
|
295 | transform-origin: 100% 100%;
|
296 | opacity: 0;
|
297 | }
|
298 | }
|
299 | @keyframes rcSelectLoadingIcon {
|
300 | 0% {
|
301 | transform: rotate(0);
|
302 | }
|
303 | 100% {
|
304 | transform: rotate(360deg);
|
305 | }
|
306 | }
|