2022-02-16 21:39:48 +08:00
|
|
|
@import '../../input/style/mixin';
|
|
|
|
|
|
|
|
@select-prefix-cls: ~'@{ant-prefix}-select';
|
|
|
|
|
2022-02-18 10:31:19 +08:00
|
|
|
.select-status-color(
|
2022-02-16 21:39:48 +08:00
|
|
|
@text-color;
|
|
|
|
@border-color;
|
|
|
|
@background-color;
|
|
|
|
@hoverBorderColor;
|
|
|
|
@outlineColor;
|
|
|
|
) {
|
|
|
|
&.@{select-prefix-cls}:not(.@{select-prefix-cls}-disabled):not(.@{select-prefix-cls}-customize-input) {
|
|
|
|
.@{select-prefix-cls}-selector {
|
|
|
|
background-color: @background-color;
|
|
|
|
border-color: @border-color !important;
|
|
|
|
}
|
|
|
|
&.@{select-prefix-cls}-open .@{select-prefix-cls}-selector,
|
|
|
|
&.@{select-prefix-cls}-focused .@{select-prefix-cls}-selector {
|
|
|
|
.active(@border-color, @hoverBorderColor, @outlineColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{select-prefix-cls}-feedback-icon {
|
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-08 12:10:29 +08:00
|
|
|
.@{select-prefix-cls} {
|
|
|
|
&-status-error {
|
|
|
|
.select-status-color(@error-color, @error-color, @select-background, @error-color-hover, @error-color-outline);
|
|
|
|
}
|
2022-02-16 21:39:48 +08:00
|
|
|
|
2022-03-08 12:10:29 +08:00
|
|
|
&-status-warning {
|
|
|
|
.select-status-color(@warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline);
|
|
|
|
}
|
2022-02-16 21:39:48 +08:00
|
|
|
|
2022-03-08 12:10:29 +08:00
|
|
|
&-status-success {
|
|
|
|
.@{select-prefix-cls}-feedback-icon {
|
|
|
|
color: @success-color;
|
2022-02-16 21:39:48 +08:00
|
|
|
}
|
2022-03-08 12:10:29 +08:00
|
|
|
}
|
2022-02-16 21:39:48 +08:00
|
|
|
|
2022-03-08 12:10:29 +08:00
|
|
|
&-status-validating {
|
|
|
|
.@{select-prefix-cls}-feedback-icon {
|
|
|
|
color: @primary-color;
|
2022-02-16 21:39:48 +08:00
|
|
|
}
|
2022-03-08 12:10:29 +08:00
|
|
|
}
|
2022-02-16 21:39:48 +08:00
|
|
|
|
2022-03-08 12:10:29 +08:00
|
|
|
&-status-error,
|
|
|
|
&-status-warning,
|
|
|
|
&-status-success,
|
|
|
|
&-status-validating {
|
|
|
|
&.@{select-prefix-cls}-has-feedback {
|
|
|
|
//.@{prefix-cls}-arrow,
|
|
|
|
.@{select-prefix-cls}-clear {
|
|
|
|
right: 32px;
|
|
|
|
}
|
2022-02-16 21:39:48 +08:00
|
|
|
|
2022-03-08 12:10:29 +08:00
|
|
|
.@{select-prefix-cls}-selection-selected-value {
|
|
|
|
padding-right: 42px;
|
2022-02-16 21:39:48 +08:00
|
|
|
}
|
|
|
|
}
|
2022-03-08 12:10:29 +08:00
|
|
|
}
|
2022-02-16 21:39:48 +08:00
|
|
|
|
2022-03-08 12:10:29 +08:00
|
|
|
&-feedback-icon {
|
|
|
|
font-size: @font-size-base;
|
|
|
|
text-align: center;
|
|
|
|
visibility: visible;
|
|
|
|
animation: zoomIn 0.3s @ease-out-back;
|
|
|
|
pointer-events: none;
|
2022-02-16 21:39:48 +08:00
|
|
|
|
2022-03-08 12:10:29 +08:00
|
|
|
&:not(:first-child) {
|
|
|
|
margin-left: 8px;
|
2022-02-16 21:39:48 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|