2021-09-07 16:14:20 +08:00
|
|
|
@import (reference) '../../style/themes/index';
|
|
|
|
|
|
|
|
@form-prefix-cls: ~'@{ant-prefix}-form';
|
|
|
|
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
|
2020-02-19 22:04:25 +08:00
|
|
|
|
|
|
|
.@{form-item-prefix-cls} {
|
|
|
|
// ================================================================
|
|
|
|
// = Status =
|
|
|
|
// ================================================================
|
2021-10-22 13:35:36 +08:00
|
|
|
|
2020-02-19 22:04:25 +08:00
|
|
|
/* Some non-status related component style is in `components.less` */
|
|
|
|
|
2020-09-11 21:27:51 +08:00
|
|
|
// ========================= Explain =========================
|
2021-10-22 13:35:36 +08:00
|
|
|
|
2020-09-11 21:27:51 +08:00
|
|
|
/* To support leave along ErrorList. We add additional className to handle explain style */
|
|
|
|
&-explain {
|
2021-06-04 14:44:41 +08:00
|
|
|
&-error {
|
2020-09-11 21:27:51 +08:00
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
|
2021-06-04 14:44:41 +08:00
|
|
|
&-warning {
|
2020-09-11 21:27:51 +08:00
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-19 22:04:25 +08:00
|
|
|
&-has-feedback {
|
|
|
|
// ======================== Switch =========================
|
|
|
|
.@{ant-prefix}-switch {
|
|
|
|
margin: 2px 0 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ======================== Warning ========================
|
|
|
|
&-has-warning {
|
2021-09-01 10:56:50 +08:00
|
|
|
.form-control-validation(@warning-color; @warning-color; @form-warning-input-bg; @warning-color-hover; @warning-color-outline);
|
2020-02-19 22:04:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// ========================= Error =========================
|
|
|
|
&-has-error {
|
2021-09-01 10:56:50 +08:00
|
|
|
.form-control-validation(@error-color; @error-color; @form-error-input-bg; @error-color-hover; @error-color-outline);
|
2020-02-19 22:04:25 +08:00
|
|
|
}
|
|
|
|
}
|