2022-02-16 21:14:51 +08:00
|
|
|
@import '../../input/style/mixin';
|
|
|
|
|
|
|
|
@picker-prefix-cls: ~'@{ant-prefix}-picker';
|
|
|
|
|
2022-02-18 10:31:19 +08:00
|
|
|
.picker-status-color(
|
2022-02-16 21:14:51 +08:00
|
|
|
@text-color: @input-color;
|
|
|
|
@border-color: @input-border-color;
|
|
|
|
@background-color: @input-bg;
|
|
|
|
@hoverBorderColor: @primary-color-hover;
|
|
|
|
@outlineColor: @primary-color-outline;
|
|
|
|
) {
|
|
|
|
&.@{picker-prefix-cls} {
|
|
|
|
&,
|
|
|
|
&:not([disabled]):hover {
|
|
|
|
background-color: @background-color;
|
|
|
|
border-color: @border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-focused,
|
|
|
|
&:focus {
|
|
|
|
.active(@text-color, @hoverBorderColor, @outlineColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{picker-prefix-cls} {
|
|
|
|
&-status-error {
|
2022-02-18 10:31:19 +08:00
|
|
|
.picker-status-color(@error-color, @error-color, @input-bg, @error-color-hover, @error-color-outline);
|
2022-02-16 21:14:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-status-warning {
|
2022-02-18 10:31:19 +08:00
|
|
|
.picker-status-color(@warning-color, @warning-color, @input-bg, @warning-color-hover, @warning-color-outline);
|
2022-02-16 21:14:51 +08:00
|
|
|
}
|
|
|
|
}
|