iep-ui 1.2.23 → 1.2.25

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.
@@ -1,604 +1,604 @@
1
- @import '../../style/themes/index';
2
- @import '../../style/mixins/index';
3
- @import '../../input/style/mixin';
4
-
5
- @select-prefix-cls: ~'@{ant-prefix}-select';
6
-
7
- .selection__clear() {
8
- position: absolute;
9
- top: 50%;
10
- right: @control-padding-horizontal - 1px;
11
- z-index: 1;
12
- display: inline-block;
13
- width: 12px;
14
- height: 12px;
15
- margin-top: -6px;
16
- color: @disabled-color;
17
- font-size: @font-size-sm;
18
- font-style: normal;
19
- line-height: 12px;
20
- text-align: center;
21
- text-transform: none;
22
- background: @component-background;
23
- cursor: pointer;
24
- opacity: 0;
25
- transition: color 0.3s ease, opacity 0.15s ease;
26
- text-rendering: auto;
27
- &::before {
28
- display: block;
29
- }
30
- &:hover {
31
- color: @text-color-secondary;
32
- }
33
- }
34
-
35
- .@{select-prefix-cls} {
36
- .reset-component;
37
-
38
- position: relative;
39
- display: inline-block;
40
- outline: 0;
41
-
42
- ul,
43
- ol {
44
- margin: 0;
45
- padding: 0;
46
- list-style: none;
47
- }
48
-
49
- > ul > li > a {
50
- padding: 0;
51
- background-color: @component-background;
52
- }
53
-
54
- // arrow
55
- &-arrow {
56
- .iconfont-mixin();
57
-
58
- position: absolute;
59
- top: 50%;
60
- right: @control-padding-horizontal - 1px;
61
- margin-top: -@font-size-sm / 2;
62
- color: @disabled-color;
63
- font-size: @font-size-sm;
64
- line-height: 1;
65
- transform-origin: 50% 50%;
66
-
67
- & &-icon svg {
68
- transition: transform 0.3s;
69
- }
70
- }
71
-
72
- &-selection {
73
- display: block;
74
- box-sizing: border-box;
75
- background-color: @select-background;
76
- border: @border-width-base @border-style-base @select-border-color;
77
- // strange align fix for chrome but works
78
- // https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
79
- border-top-width: @border-width-base + 0.02px;
80
- border-radius: @border-radius-base;
81
- outline: none;
82
- transition: all 0.3s @ease-in-out;
83
- user-select: none;
84
-
85
- &:hover {
86
- .hover;
87
- }
88
-
89
- .@{select-prefix-cls}-focused &,
90
- &:focus,
91
- &:active {
92
- .active;
93
- }
94
-
95
- &__clear {
96
- .selection__clear();
97
- }
98
-
99
- &:hover &__clear {
100
- opacity: 1;
101
- }
102
-
103
- &-selected-value {
104
- float: left;
105
- max-width: 100%;
106
- overflow: hidden;
107
- white-space: nowrap;
108
- text-overflow: ellipsis;
109
- }
110
- }
111
-
112
- &-no-arrow &-selection-selected-value {
113
- padding-right: 0;
114
- }
115
-
116
- &-disabled {
117
- color: @disabled-color;
118
- }
119
-
120
- &-disabled &-selection {
121
- background: @input-disabled-bg;
122
- cursor: not-allowed;
123
- &:hover,
124
- &:focus,
125
- &:active {
126
- border-color: @select-border-color;
127
- box-shadow: none;
128
- }
129
-
130
- &__clear {
131
- display: none;
132
- visibility: hidden;
133
- pointer-events: none;
134
- }
135
- }
136
-
137
- &-disabled &-selection--multiple &-selection__choice {
138
- padding-right: 10px;
139
- color: fade(@black, 33%);
140
- background: @background-color-base;
141
- &__remove {
142
- display: none;
143
- }
144
- }
145
-
146
- &-selection--single {
147
- position: relative;
148
- height: @input-height-base;
149
- cursor: pointer;
150
-
151
- .@{select-prefix-cls}-selection__rendered {
152
- margin-right: 24px;
153
- }
154
- }
155
-
156
- &-no-arrow {
157
- .@{select-prefix-cls}-selection__rendered {
158
- margin-right: @control-padding-horizontal - 1px;
159
- }
160
- }
161
-
162
- &-selection__rendered {
163
- position: relative;
164
- display: block;
165
- margin-right: @control-padding-horizontal - 1px;
166
- margin-left: @control-padding-horizontal - 1px;
167
- line-height: @input-height-base - 2px;
168
- // https://github.com/ant-design/ant-design/issues/3481#issuecomment-254721026
169
- &::after {
170
- display: inline-block;
171
- width: 0;
172
- visibility: hidden;
173
- content: '.';
174
- pointer-events: none;
175
- }
176
- }
177
-
178
- &-lg {
179
- font-size: @font-size-lg;
180
- .@{select-prefix-cls}-selection--single {
181
- height: @input-height-lg;
182
- }
183
- .@{select-prefix-cls}-selection__rendered {
184
- line-height: @input-height-lg - 2px;
185
- }
186
- .@{select-prefix-cls}-selection--multiple {
187
- min-height: @input-height-lg;
188
- .@{select-prefix-cls}-selection__rendered {
189
- li {
190
- height: @input-height-lg - 8px;
191
- line-height: @input-height-lg - 8px;
192
- }
193
- }
194
- .@{select-prefix-cls}-selection__clear,
195
- .@{select-prefix-cls}-arrow {
196
- top: @input-height-lg / 2;
197
- }
198
- }
199
- }
200
-
201
- &-sm {
202
- .@{select-prefix-cls}-selection--single {
203
- height: @input-height-sm;
204
- }
205
- .@{select-prefix-cls}-selection__rendered {
206
- margin-left: @control-padding-horizontal-sm - 1px;
207
- line-height: @input-height-sm - 2px;
208
- }
209
- .@{select-prefix-cls}-selection--multiple {
210
- min-height: @input-height-sm;
211
- .@{select-prefix-cls}-selection__rendered {
212
- li {
213
- height: @input-height-sm - 8px;
214
- line-height: @input-height-sm - 10px;
215
- }
216
- }
217
- .@{select-prefix-cls}-selection__clear,
218
- .@{select-prefix-cls}-arrow {
219
- top: @input-height-sm / 2;
220
- }
221
- }
222
- .@{select-prefix-cls}-selection__clear,
223
- .@{select-prefix-cls}-arrow {
224
- right: @control-padding-horizontal-sm;
225
- }
226
- }
227
-
228
- &-disabled &-selection__choice__remove {
229
- color: @disabled-color;
230
- cursor: default;
231
- &:hover {
232
- color: @disabled-color;
233
- }
234
- }
235
-
236
- &-search__field__wrap {
237
- position: relative;
238
- display: inline-block;
239
- }
240
-
241
- &-selection__placeholder,
242
- &-search__field__placeholder {
243
- // for TreeSelect compatibility
244
- position: absolute;
245
- top: 50%;
246
- right: 9px;
247
- left: 0;
248
- max-width: 100%;
249
- height: 20px;
250
- margin-top: -10px;
251
- overflow: hidden;
252
- color: @input-placeholder-color;
253
- line-height: 20px;
254
- white-space: nowrap;
255
- text-align: left;
256
- text-overflow: ellipsis;
257
- }
258
-
259
- &-search__field__placeholder {
260
- left: @control-padding-horizontal;
261
- }
262
-
263
- &-search__field__mirror {
264
- position: absolute;
265
- top: 0;
266
- left: 0;
267
- white-space: pre;
268
- opacity: 0;
269
- pointer-events: none;
270
- }
271
-
272
- &-search--inline {
273
- position: absolute;
274
- width: 100%;
275
- height: 100%;
276
-
277
- .@{select-prefix-cls}-search__field__wrap {
278
- width: 100%;
279
- height: 100%;
280
- }
281
-
282
- .@{select-prefix-cls}-search__field {
283
- width: 100%;
284
- height: 100%;
285
- font-size: 100%;
286
- line-height: 1;
287
- background: transparent;
288
- border-width: 0;
289
- border-radius: @border-radius-base;
290
- outline: 0;
291
- }
292
-
293
- > i {
294
- float: right;
295
- }
296
- }
297
-
298
- &-selection--multiple {
299
- min-height: @input-height-base;
300
- padding-bottom: 3px;
301
- cursor: text;
302
- .clearfix;
303
-
304
- .@{select-prefix-cls}-search--inline {
305
- position: static;
306
- float: left;
307
- width: auto;
308
- max-width: 100%;
309
- padding: 0;
310
- .@{select-prefix-cls}-search__field {
311
- width: 0.75em;
312
- max-width: 100%;
313
- padding: 1px;
314
- }
315
- }
316
-
317
- .@{select-prefix-cls}-selection__rendered {
318
- height: auto;
319
- margin-bottom: -3px;
320
- margin-left: 5px;
321
- }
322
-
323
- .@{select-prefix-cls}-selection__placeholder {
324
- margin-left: 6px;
325
- }
326
-
327
- > ul > li,
328
- .@{select-prefix-cls}-selection__rendered > ul > li {
329
- height: @input-height-base - 8px;
330
- // for tree-select
331
- margin-top: 3px;
332
- line-height: @input-height-base - 8px - 2px;
333
- }
334
-
335
- .@{select-prefix-cls}-selection__choice {
336
- position: relative;
337
- float: left;
338
- max-width: 99%;
339
- margin-right: 4px;
340
- padding: 0 20px 0 10px;
341
- overflow: hidden;
342
- color: @tag-default-color;
343
- background-color: @tag-default-bg;
344
- border: 1px solid @border-color-split;
345
- border-radius: @border-radius-sm;
346
- cursor: default;
347
- transition: padding 0.3s @ease-in-out;
348
- &__disabled {
349
- padding: 0 10px;
350
- }
351
- }
352
-
353
- .@{select-prefix-cls}-selection__choice__content {
354
- display: inline-block;
355
- max-width: 100%;
356
- overflow: hidden;
357
- white-space: nowrap;
358
- text-overflow: ellipsis;
359
- transition: margin 0.3s @ease-in-out;
360
- }
361
-
362
- .@{select-prefix-cls}-selection__choice__remove {
363
- .iconfont-mixin();
364
-
365
- position: absolute;
366
- right: 4px;
367
- display: inline-block;
368
- color: @text-color-secondary;
369
- font-weight: bold;
370
- font-size: @font-size-sm;
371
- line-height: inherit;
372
- cursor: pointer;
373
- transition: all 0.3s;
374
- .iconfont-size-under-12px(10px);
375
- &:hover {
376
- color: @icon-color-hover;
377
- }
378
- }
379
-
380
- .@{select-prefix-cls}-selection__clear,
381
- .@{select-prefix-cls}-arrow {
382
- top: @input-height-base / 2;
383
- }
384
- }
385
-
386
- &-allow-clear &-selection--multiple &-selection__rendered,
387
- &-show-arrow &-selection--multiple &-selection__rendered {
388
- margin-right: 20px; // In case that clear button will overlap content
389
- }
390
-
391
- &-open {
392
- .@{select-prefix-cls}-arrow {
393
- &-icon svg {
394
- transform: rotate(180deg);
395
- }
396
- }
397
- .@{select-prefix-cls}-selection {
398
- .active();
399
- }
400
- }
401
-
402
- &-combobox {
403
- .@{select-prefix-cls}-arrow {
404
- display: none;
405
- }
406
- .@{select-prefix-cls}-search--inline {
407
- float: none;
408
- width: 100%;
409
- height: 100%;
410
- }
411
- .@{select-prefix-cls}-search__field__wrap {
412
- width: 100%;
413
- height: 100%;
414
- }
415
- .@{select-prefix-cls}-search__field {
416
- position: relative;
417
- z-index: 1;
418
- width: 100%;
419
- height: 100%;
420
- box-shadow: none;
421
- transition: all 0.3s @ease-in-out, height 0s;
422
- }
423
- }
424
- &-combobox&-allow-clear &-selection:hover &-selection__rendered,
425
- &-combobox&-show-arrow &-selection:hover &-selection__rendered {
426
- margin-right: 20px; // In case that clear button will overlap content
427
- }
428
- }
429
-
430
- .@{select-prefix-cls}-dropdown {
431
- .reset-component;
432
-
433
- position: absolute;
434
- top: -9999px;
435
- left: -9999px;
436
- z-index: @zindex-dropdown;
437
- box-sizing: border-box;
438
- font-size: @font-size-base;
439
- // Fix select render lag of long text in chrome
440
- // https://github.com/ant-design/ant-design/issues/11456
441
- // https://github.com/ant-design/ant-design/issues/11843
442
- font-variant: initial;
443
- background-color: @select-dropdown-bg;
444
- border-radius: @border-radius-base;
445
- outline: none;
446
- box-shadow: @box-shadow-base;
447
-
448
- &.slide-up-enter.slide-up-enter-active&-placement-bottomLeft,
449
- &.slide-up-appear.slide-up-appear-active&-placement-bottomLeft {
450
- animation-name: antSlideUpIn;
451
- }
452
-
453
- &.slide-up-enter.slide-up-enter-active&-placement-topLeft,
454
- &.slide-up-appear.slide-up-appear-active&-placement-topLeft {
455
- animation-name: antSlideDownIn;
456
- }
457
-
458
- &.slide-up-leave.slide-up-leave-active&-placement-bottomLeft {
459
- animation-name: antSlideUpOut;
460
- }
461
-
462
- &.slide-up-leave.slide-up-leave-active&-placement-topLeft {
463
- animation-name: antSlideDownOut;
464
- }
465
-
466
- &-hidden {
467
- display: none;
468
- }
469
-
470
- &-menu {
471
- max-height: 250px;
472
- margin-bottom: 0;
473
- padding: @select-dropdown-edge-child-vertical-padding 0; //Change
474
- padding-left: 0; // Override default ul/ol
475
- overflow: auto;
476
- list-style: none;
477
- outline: none;
478
-
479
- &-item-group-list {
480
- margin: 0;
481
- padding: 0;
482
-
483
- > .@{select-prefix-cls}-dropdown-menu-item {
484
- padding-left: 20px;
485
- }
486
- }
487
-
488
- &-item-group-title {
489
- height: 32px;
490
- padding: 0 @control-padding-horizontal;
491
- color: @text-color-secondary;
492
- font-size: @font-size-sm;
493
- line-height: 32px;
494
- }
495
-
496
- &-item-group-list &-item:first-child:not(:last-child),
497
- &-item-group:not(:last-child) &-item-group-list &-item:last-child {
498
- border-radius: 0;
499
- }
500
-
501
- &-item {
502
- position: relative;
503
- display: block;
504
- padding: @select-dropdown-vertical-padding @control-padding-horizontal;
505
- overflow: hidden;
506
- color: @text-color;
507
- font-weight: normal;
508
- font-size: @select-dropdown-font-size;
509
- line-height: @select-dropdown-line-height;
510
- white-space: nowrap;
511
- text-overflow: ellipsis;
512
- cursor: pointer;
513
- transition: background 0.3s ease;
514
-
515
- &:hover:not(&-disabled) {
516
- background-color: @item-hover-bg;
517
- }
518
-
519
- &:first-child {
520
- & when (@select-dropdown-edge-child-vertical-padding = 0) {
521
- border-radius: @border-radius-base @border-radius-base 0 0;
522
- }
523
- }
524
-
525
- &:last-child {
526
- & when (@select-dropdown-edge-child-vertical-padding = 0) {
527
- border-radius: 0 0 @border-radius-base @border-radius-base;
528
- }
529
- }
530
-
531
- &-selected {
532
- color: @text-color;
533
- font-weight: @select-item-selected-font-weight;
534
- background-color: @select-item-selected-bg;
535
- }
536
-
537
- &-disabled {
538
- color: @disabled-color;
539
- cursor: not-allowed;
540
-
541
- &:hover {
542
- color: @disabled-color;
543
- cursor: not-allowed;
544
- }
545
- }
546
-
547
- &-active:not(&-disabled) {
548
- background-color: @select-item-active-bg;
549
- }
550
-
551
- &-divider {
552
- height: 1px;
553
- margin: 1px 0;
554
- overflow: hidden;
555
- line-height: 0;
556
- background-color: @border-color-split;
557
- }
558
- }
559
- }
560
-
561
- &&--multiple {
562
- .@{select-prefix-cls}-dropdown-menu-item {
563
- padding-right: @control-padding-horizontal + 20;
564
- & .@{select-prefix-cls}-selected-icon {
565
- position: absolute;
566
- top: 50%;
567
- right: @control-padding-horizontal;
568
- color: transparent;
569
- font-weight: bold;
570
- font-size: 12px;
571
- text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0;
572
- transform: translateY(-50%);
573
- transition: all 0.2s;
574
- }
575
-
576
- &:hover .@{select-prefix-cls}-selected-icon {
577
- color: fade(@black, 87%);
578
- }
579
-
580
- &-disabled .@{select-prefix-cls}-selected-icon {
581
- display: none;
582
- }
583
-
584
- &-selected .@{select-prefix-cls}-selected-icon,
585
- &-selected:hover .@{select-prefix-cls}-selected-icon {
586
- display: inline-block;
587
- color: @primary-color;
588
- }
589
- }
590
- }
591
-
592
- // Patch for popup adjust
593
- // https://github.com/ant-design/ant-design/issues/14422
594
- &--empty&--multiple &-menu-item {
595
- padding-right: @control-padding-horizontal;
596
- }
597
-
598
- &-container-open,
599
- &-open {
600
- .@{select-prefix-cls}-dropdown {
601
- display: block;
602
- }
603
- }
604
- }
1
+ @import '../../style/themes/index';
2
+ @import '../../style/mixins/index';
3
+ @import '../../input/style/mixin';
4
+
5
+ @select-prefix-cls: ~'@{ant-prefix}-select';
6
+
7
+ .selection__clear() {
8
+ position: absolute;
9
+ top: 50%;
10
+ right: @control-padding-horizontal - 1px;
11
+ z-index: 1;
12
+ display: inline-block;
13
+ width: 12px;
14
+ height: 12px;
15
+ margin-top: -6px;
16
+ color: @disabled-color;
17
+ font-size: @font-size-sm;
18
+ font-style: normal;
19
+ line-height: 12px;
20
+ text-align: center;
21
+ text-transform: none;
22
+ background: @component-background;
23
+ cursor: pointer;
24
+ opacity: 0;
25
+ transition: color 0.3s ease, opacity 0.15s ease;
26
+ text-rendering: auto;
27
+ &::before {
28
+ display: block;
29
+ }
30
+ &:hover {
31
+ color: @text-color-secondary;
32
+ }
33
+ }
34
+
35
+ .@{select-prefix-cls} {
36
+ .reset-component;
37
+
38
+ position: relative;
39
+ display: inline-block;
40
+ outline: 0;
41
+
42
+ ul,
43
+ ol {
44
+ margin: 0;
45
+ padding: 0;
46
+ list-style: none;
47
+ }
48
+
49
+ > ul > li > a {
50
+ padding: 0;
51
+ background-color: @component-background;
52
+ }
53
+
54
+ // arrow
55
+ &-arrow {
56
+ .iconfont-mixin();
57
+
58
+ position: absolute;
59
+ top: 50%;
60
+ right: @control-padding-horizontal - 1px;
61
+ margin-top: -@font-size-sm / 2;
62
+ color: @disabled-color;
63
+ font-size: @font-size-sm;
64
+ line-height: 1;
65
+ transform-origin: 50% 50%;
66
+
67
+ & &-icon svg {
68
+ transition: transform 0.3s;
69
+ }
70
+ }
71
+
72
+ &-selection {
73
+ display: block;
74
+ box-sizing: border-box;
75
+ background-color: @select-background;
76
+ border: @border-width-base @border-style-base @select-border-color;
77
+ // strange align fix for chrome but works
78
+ // https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
79
+ border-top-width: @border-width-base + 0.02px;
80
+ border-radius: @border-radius-base;
81
+ outline: none;
82
+ transition: all 0.3s @ease-in-out;
83
+ user-select: none;
84
+
85
+ &:hover {
86
+ .hover;
87
+ }
88
+
89
+ .@{select-prefix-cls}-focused &,
90
+ &:focus,
91
+ &:active {
92
+ .active;
93
+ }
94
+
95
+ &__clear {
96
+ .selection__clear();
97
+ }
98
+
99
+ &:hover &__clear {
100
+ opacity: 1;
101
+ }
102
+
103
+ &-selected-value {
104
+ float: left;
105
+ max-width: 100%;
106
+ overflow: hidden;
107
+ white-space: nowrap;
108
+ text-overflow: ellipsis;
109
+ }
110
+ }
111
+
112
+ &-no-arrow &-selection-selected-value {
113
+ padding-right: 0;
114
+ }
115
+
116
+ &-disabled {
117
+ color: @disabled-color;
118
+ }
119
+
120
+ &-disabled &-selection {
121
+ background: @input-disabled-bg;
122
+ cursor: not-allowed;
123
+ &:hover,
124
+ &:focus,
125
+ &:active {
126
+ border-color: @select-border-color;
127
+ box-shadow: none;
128
+ }
129
+
130
+ &__clear {
131
+ display: none;
132
+ visibility: hidden;
133
+ pointer-events: none;
134
+ }
135
+ }
136
+
137
+ &-disabled &-selection--multiple &-selection__choice {
138
+ padding-right: 10px;
139
+ color: fade(@black, 33%);
140
+ background: @background-color-base;
141
+ &__remove {
142
+ display: none;
143
+ }
144
+ }
145
+
146
+ &-selection--single {
147
+ position: relative;
148
+ height: @input-height-base;
149
+ cursor: pointer;
150
+
151
+ .@{select-prefix-cls}-selection__rendered {
152
+ margin-right: 24px;
153
+ }
154
+ }
155
+
156
+ &-no-arrow {
157
+ .@{select-prefix-cls}-selection__rendered {
158
+ margin-right: @control-padding-horizontal - 1px;
159
+ }
160
+ }
161
+
162
+ &-selection__rendered {
163
+ position: relative;
164
+ display: block;
165
+ margin-right: @control-padding-horizontal - 1px;
166
+ margin-left: @control-padding-horizontal - 1px;
167
+ line-height: @input-height-base - 2px;
168
+ // https://github.com/ant-design/ant-design/issues/3481#issuecomment-254721026
169
+ &::after {
170
+ display: inline-block;
171
+ width: 0;
172
+ visibility: hidden;
173
+ content: '.';
174
+ pointer-events: none;
175
+ }
176
+ }
177
+
178
+ &-lg {
179
+ font-size: @font-size-lg;
180
+ .@{select-prefix-cls}-selection--single {
181
+ height: @input-height-lg;
182
+ }
183
+ .@{select-prefix-cls}-selection__rendered {
184
+ line-height: @input-height-lg - 2px;
185
+ }
186
+ .@{select-prefix-cls}-selection--multiple {
187
+ min-height: @input-height-lg;
188
+ .@{select-prefix-cls}-selection__rendered {
189
+ li {
190
+ height: @input-height-lg - 8px;
191
+ line-height: @input-height-lg - 8px;
192
+ }
193
+ }
194
+ .@{select-prefix-cls}-selection__clear,
195
+ .@{select-prefix-cls}-arrow {
196
+ top: @input-height-lg / 2;
197
+ }
198
+ }
199
+ }
200
+
201
+ &-sm {
202
+ .@{select-prefix-cls}-selection--single {
203
+ height: @input-height-sm;
204
+ }
205
+ .@{select-prefix-cls}-selection__rendered {
206
+ margin-left: @control-padding-horizontal-sm - 1px;
207
+ line-height: @input-height-sm - 2px;
208
+ }
209
+ .@{select-prefix-cls}-selection--multiple {
210
+ min-height: @input-height-sm;
211
+ .@{select-prefix-cls}-selection__rendered {
212
+ li {
213
+ height: @input-height-sm - 8px;
214
+ line-height: @input-height-sm - 10px;
215
+ }
216
+ }
217
+ .@{select-prefix-cls}-selection__clear,
218
+ .@{select-prefix-cls}-arrow {
219
+ top: @input-height-sm / 2;
220
+ }
221
+ }
222
+ .@{select-prefix-cls}-selection__clear,
223
+ .@{select-prefix-cls}-arrow {
224
+ right: @control-padding-horizontal-sm;
225
+ }
226
+ }
227
+
228
+ &-disabled &-selection__choice__remove {
229
+ color: @disabled-color;
230
+ cursor: default;
231
+ &:hover {
232
+ color: @disabled-color;
233
+ }
234
+ }
235
+
236
+ &-search__field__wrap {
237
+ position: relative;
238
+ display: inline-block;
239
+ }
240
+
241
+ &-selection__placeholder,
242
+ &-search__field__placeholder {
243
+ // for TreeSelect compatibility
244
+ position: absolute;
245
+ top: 50%;
246
+ right: 9px;
247
+ left: 0;
248
+ max-width: 100%;
249
+ height: 20px;
250
+ margin-top: -10px;
251
+ overflow: hidden;
252
+ color: @input-placeholder-color;
253
+ line-height: 20px;
254
+ white-space: nowrap;
255
+ text-align: left;
256
+ text-overflow: ellipsis;
257
+ }
258
+
259
+ &-search__field__placeholder {
260
+ left: @control-padding-horizontal;
261
+ }
262
+
263
+ &-search__field__mirror {
264
+ position: absolute;
265
+ top: 0;
266
+ left: 0;
267
+ white-space: pre;
268
+ opacity: 0;
269
+ pointer-events: none;
270
+ }
271
+
272
+ &-search--inline {
273
+ position: absolute;
274
+ width: 100%;
275
+ height: 100%;
276
+
277
+ .@{select-prefix-cls}-search__field__wrap {
278
+ width: 100%;
279
+ height: 100%;
280
+ }
281
+
282
+ .@{select-prefix-cls}-search__field {
283
+ width: 100%;
284
+ height: 100%;
285
+ font-size: 100%;
286
+ line-height: 1;
287
+ background: transparent;
288
+ border-width: 0;
289
+ border-radius: @border-radius-base;
290
+ outline: 0;
291
+ }
292
+
293
+ > i {
294
+ float: right;
295
+ }
296
+ }
297
+
298
+ &-selection--multiple {
299
+ min-height: @input-height-base;
300
+ padding-bottom: 3px;
301
+ cursor: text;
302
+ .clearfix;
303
+
304
+ .@{select-prefix-cls}-search--inline {
305
+ position: static;
306
+ float: left;
307
+ width: auto;
308
+ max-width: 100%;
309
+ padding: 0;
310
+ .@{select-prefix-cls}-search__field {
311
+ width: 0.75em;
312
+ max-width: 100%;
313
+ padding: 1px;
314
+ }
315
+ }
316
+
317
+ .@{select-prefix-cls}-selection__rendered {
318
+ height: auto;
319
+ margin-bottom: -3px;
320
+ margin-left: 5px;
321
+ }
322
+
323
+ .@{select-prefix-cls}-selection__placeholder {
324
+ margin-left: 6px;
325
+ }
326
+
327
+ > ul > li,
328
+ .@{select-prefix-cls}-selection__rendered > ul > li {
329
+ height: @input-height-base - 8px;
330
+ // for tree-select
331
+ margin-top: 3px;
332
+ line-height: @input-height-base - 8px - 2px;
333
+ }
334
+
335
+ .@{select-prefix-cls}-selection__choice {
336
+ position: relative;
337
+ float: left;
338
+ max-width: 99%;
339
+ margin-right: 4px;
340
+ padding: 0 20px 0 10px;
341
+ overflow: hidden;
342
+ color: @tag-default-color;
343
+ background-color: @tag-default-bg;
344
+ border: 1px solid @border-color-split;
345
+ border-radius: @border-radius-sm;
346
+ cursor: default;
347
+ transition: padding 0.3s @ease-in-out;
348
+ &__disabled {
349
+ padding: 0 10px;
350
+ }
351
+ }
352
+
353
+ .@{select-prefix-cls}-selection__choice__content {
354
+ display: inline-block;
355
+ max-width: 100%;
356
+ overflow: hidden;
357
+ white-space: nowrap;
358
+ text-overflow: ellipsis;
359
+ transition: margin 0.3s @ease-in-out;
360
+ }
361
+
362
+ .@{select-prefix-cls}-selection__choice__remove {
363
+ .iconfont-mixin();
364
+
365
+ position: absolute;
366
+ right: 4px;
367
+ display: inline-block;
368
+ color: @text-color-secondary;
369
+ font-weight: bold;
370
+ font-size: @font-size-sm;
371
+ line-height: inherit;
372
+ cursor: pointer;
373
+ transition: all 0.3s;
374
+ .iconfont-size-under-12px(10px);
375
+ &:hover {
376
+ color: @icon-color-hover;
377
+ }
378
+ }
379
+
380
+ .@{select-prefix-cls}-selection__clear,
381
+ .@{select-prefix-cls}-arrow {
382
+ top: @input-height-base / 2;
383
+ }
384
+ }
385
+
386
+ &-allow-clear &-selection--multiple &-selection__rendered,
387
+ &-show-arrow &-selection--multiple &-selection__rendered {
388
+ margin-right: 20px; // In case that clear button will overlap content
389
+ }
390
+
391
+ &-open {
392
+ .@{select-prefix-cls}-arrow {
393
+ &-icon svg {
394
+ transform: rotate(180deg);
395
+ }
396
+ }
397
+ .@{select-prefix-cls}-selection {
398
+ .active();
399
+ }
400
+ }
401
+
402
+ &-combobox {
403
+ .@{select-prefix-cls}-arrow {
404
+ display: none;
405
+ }
406
+ .@{select-prefix-cls}-search--inline {
407
+ float: none;
408
+ width: 100%;
409
+ height: 100%;
410
+ }
411
+ .@{select-prefix-cls}-search__field__wrap {
412
+ width: 100%;
413
+ height: 100%;
414
+ }
415
+ .@{select-prefix-cls}-search__field {
416
+ position: relative;
417
+ z-index: 1;
418
+ width: 100%;
419
+ height: 100%;
420
+ box-shadow: none;
421
+ transition: all 0.3s @ease-in-out, height 0s;
422
+ }
423
+ }
424
+ &-combobox&-allow-clear &-selection:hover &-selection__rendered,
425
+ &-combobox&-show-arrow &-selection:hover &-selection__rendered {
426
+ margin-right: 20px; // In case that clear button will overlap content
427
+ }
428
+ }
429
+
430
+ .@{select-prefix-cls}-dropdown {
431
+ .reset-component;
432
+
433
+ position: absolute;
434
+ top: -9999px;
435
+ left: -9999px;
436
+ z-index: @zindex-dropdown;
437
+ box-sizing: border-box;
438
+ font-size: @font-size-base;
439
+ // Fix select render lag of long text in chrome
440
+ // https://github.com/ant-design/ant-design/issues/11456
441
+ // https://github.com/ant-design/ant-design/issues/11843
442
+ font-variant: initial;
443
+ background-color: @select-dropdown-bg;
444
+ border-radius: @border-radius-base;
445
+ outline: none;
446
+ box-shadow: @box-shadow-base;
447
+
448
+ &.slide-up-enter.slide-up-enter-active&-placement-bottomLeft,
449
+ &.slide-up-appear.slide-up-appear-active&-placement-bottomLeft {
450
+ animation-name: antSlideUpIn;
451
+ }
452
+
453
+ &.slide-up-enter.slide-up-enter-active&-placement-topLeft,
454
+ &.slide-up-appear.slide-up-appear-active&-placement-topLeft {
455
+ animation-name: antSlideDownIn;
456
+ }
457
+
458
+ &.slide-up-leave.slide-up-leave-active&-placement-bottomLeft {
459
+ animation-name: antSlideUpOut;
460
+ }
461
+
462
+ &.slide-up-leave.slide-up-leave-active&-placement-topLeft {
463
+ animation-name: antSlideDownOut;
464
+ }
465
+
466
+ &-hidden {
467
+ display: none;
468
+ }
469
+
470
+ &-menu {
471
+ max-height: 250px;
472
+ margin-bottom: 0;
473
+ padding: @select-dropdown-edge-child-vertical-padding 0; //Change
474
+ padding-left: 0; // Override default ul/ol
475
+ overflow: auto;
476
+ list-style: none;
477
+ outline: none;
478
+
479
+ &-item-group-list {
480
+ margin: 0;
481
+ padding: 0;
482
+
483
+ > .@{select-prefix-cls}-dropdown-menu-item {
484
+ padding-left: 20px;
485
+ }
486
+ }
487
+
488
+ &-item-group-title {
489
+ height: 32px;
490
+ padding: 0 @control-padding-horizontal;
491
+ color: @text-color-secondary;
492
+ font-size: @font-size-sm;
493
+ line-height: 32px;
494
+ }
495
+
496
+ &-item-group-list &-item:first-child:not(:last-child),
497
+ &-item-group:not(:last-child) &-item-group-list &-item:last-child {
498
+ border-radius: 0;
499
+ }
500
+
501
+ &-item {
502
+ position: relative;
503
+ display: block;
504
+ padding: @select-dropdown-vertical-padding @control-padding-horizontal;
505
+ overflow: hidden;
506
+ color: @text-color;
507
+ font-weight: normal;
508
+ font-size: @select-dropdown-font-size;
509
+ line-height: @select-dropdown-line-height;
510
+ white-space: nowrap;
511
+ text-overflow: ellipsis;
512
+ cursor: pointer;
513
+ transition: background 0.3s ease;
514
+
515
+ &:hover:not(&-disabled) {
516
+ background-color: @item-hover-bg;
517
+ }
518
+
519
+ &:first-child {
520
+ & when (@select-dropdown-edge-child-vertical-padding = 0) {
521
+ border-radius: @border-radius-base @border-radius-base 0 0;
522
+ }
523
+ }
524
+
525
+ &:last-child {
526
+ & when (@select-dropdown-edge-child-vertical-padding = 0) {
527
+ border-radius: 0 0 @border-radius-base @border-radius-base;
528
+ }
529
+ }
530
+
531
+ &-selected {
532
+ color: @primary-color;
533
+ font-weight: @select-item-selected-font-weight;
534
+ background-color: @select-item-selected-bg;
535
+ }
536
+
537
+ &-disabled {
538
+ color: @disabled-color;
539
+ cursor: not-allowed;
540
+
541
+ &:hover {
542
+ color: @disabled-color;
543
+ cursor: not-allowed;
544
+ }
545
+ }
546
+
547
+ &-active:not(&-disabled) {
548
+ background-color: @select-item-active-bg;
549
+ }
550
+
551
+ &-divider {
552
+ height: 1px;
553
+ margin: 1px 0;
554
+ overflow: hidden;
555
+ line-height: 0;
556
+ background-color: @border-color-split;
557
+ }
558
+ }
559
+ }
560
+
561
+ &&--multiple {
562
+ .@{select-prefix-cls}-dropdown-menu-item {
563
+ padding-right: @control-padding-horizontal + 20;
564
+ & .@{select-prefix-cls}-selected-icon {
565
+ position: absolute;
566
+ top: 50%;
567
+ right: @control-padding-horizontal;
568
+ color: transparent;
569
+ font-weight: bold;
570
+ font-size: 12px;
571
+ text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0;
572
+ transform: translateY(-50%);
573
+ transition: all 0.2s;
574
+ }
575
+
576
+ &:hover .@{select-prefix-cls}-selected-icon {
577
+ color: fade(@black, 87%);
578
+ }
579
+
580
+ &-disabled .@{select-prefix-cls}-selected-icon {
581
+ display: none;
582
+ }
583
+
584
+ &-selected .@{select-prefix-cls}-selected-icon,
585
+ &-selected:hover .@{select-prefix-cls}-selected-icon {
586
+ display: inline-block;
587
+ color: @primary-color;
588
+ }
589
+ }
590
+ }
591
+
592
+ // Patch for popup adjust
593
+ // https://github.com/ant-design/ant-design/issues/14422
594
+ &--empty&--multiple &-menu-item {
595
+ padding-right: @control-padding-horizontal;
596
+ }
597
+
598
+ &-container-open,
599
+ &-open {
600
+ .@{select-prefix-cls}-dropdown {
601
+ display: block;
602
+ }
603
+ }
604
+ }