mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 16:39:41 +08:00
37e042358d
* feat: remove form status style && input support status * test: update snapshot * feat: update status prop in config provider * fix: form item validateStatus support * chore: code clean * feat: status classname change * test: update snapshot * refactor: move formItemStatusContext to form folder * refactor: merge utils * refactor: rename statusUtils * chore: code clean * test: fix coverage * chore: remove status prop of Form.Item * chore: code clean * docs: update demo * test: fix lint * feat: status only success and warning * test: fix lint * docs: update deamo
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
@import (reference) '../../style/themes/index';
|
|
|
|
@form-prefix-cls: ~'@{ant-prefix}-form';
|
|
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
|
|
|
|
.@{form-item-prefix-cls} {
|
|
// ================================================================
|
|
// = Status =
|
|
// ================================================================
|
|
|
|
/* Some non-status related component style is in `components.less` */
|
|
|
|
// ========================= Explain =========================
|
|
|
|
/* To support leave along ErrorList. We add additional className to handle explain style */
|
|
&-explain {
|
|
&-error {
|
|
color: @error-color;
|
|
}
|
|
|
|
&-warning {
|
|
color: @warning-color;
|
|
}
|
|
}
|
|
|
|
&-has-feedback {
|
|
// ======================== Switch =========================
|
|
.@{ant-prefix}-switch {
|
|
margin: 2px 0 4px;
|
|
}
|
|
}
|
|
|
|
// ======================== Warning ========================
|
|
&-has-warning {
|
|
.form-control-validation(@warning-color; @warning-color; @form-warning-input-bg; @warning-color-hover; @warning-color-outline);
|
|
}
|
|
|
|
// ========================= Error =========================
|
|
&-has-error {
|
|
.form-control-validation(@error-color; @error-color; @form-error-input-bg; @error-color-hover; @error-color-outline);
|
|
}
|
|
}
|