mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
feat: form customizing variables (#15954)
* fix: added styling form input background-color * feat: added '@form-warning-input-bg' variable * feat: added '@form-error-input-bg' variable
This commit is contained in:
parent
b809e95f79
commit
9f9f81ed7a
@ -456,7 +456,7 @@ form {
|
||||
}
|
||||
|
||||
.has-warning {
|
||||
.form-control-validation(@warning-color; @warning-color;);
|
||||
.form-control-validation(@warning-color; @warning-color; @form-warning-input-bg;);
|
||||
|
||||
&.has-feedback .@{form-prefix-cls}-item-children-icon {
|
||||
color: @warning-color;
|
||||
@ -505,7 +505,7 @@ form {
|
||||
}
|
||||
|
||||
.has-error {
|
||||
.form-control-validation(@error-color; @error-color;);
|
||||
.form-control-validation(@error-color; @error-color; @form-error-input-bg;);
|
||||
|
||||
&.has-feedback .@{form-prefix-cls}-item-children-icon {
|
||||
color: @error-color;
|
||||
|
@ -30,6 +30,7 @@
|
||||
.@{ant-prefix}-input {
|
||||
&,
|
||||
&:hover {
|
||||
background-color: @background-color;
|
||||
border-color: @border-color;
|
||||
}
|
||||
|
||||
|
@ -280,10 +280,12 @@
|
||||
// ---
|
||||
@label-required-color: @highlight-color;
|
||||
@label-color: @heading-color;
|
||||
@form-warning-input-bg: @input-bg;
|
||||
@form-item-margin-bottom: 24px;
|
||||
@form-item-trailing-colon: true;
|
||||
@form-vertical-label-padding: 0 0 8px;
|
||||
@form-vertical-label-margin: 0;
|
||||
@form-error-input-bg: @input-bg;
|
||||
|
||||
// Input
|
||||
// ---
|
||||
|
Loading…
Reference in New Issue
Block a user