fix: input style error #3073
parent
41a0251a5b
commit
ddd50fe153
|
@ -464,7 +464,8 @@ form {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.has-error {
|
.has-error,
|
||||||
|
&-has-error {
|
||||||
.form-control-validation(@error-color; @error-color; @form-error-input-bg;);
|
.form-control-validation(@error-color; @error-color; @form-error-input-bg;);
|
||||||
|
|
||||||
&.has-feedback .@{form-prefix-cls}-item-children-icon {
|
&.has-feedback .@{form-prefix-cls}-item-children-icon {
|
||||||
|
@ -473,15 +474,12 @@ form {
|
||||||
}
|
}
|
||||||
|
|
||||||
//select
|
//select
|
||||||
.@{ant-prefix}-select {
|
.@{ant-prefix}-select:not(.@{ant-prefix}-select-borderless) {
|
||||||
&-selection {
|
.@{ant-prefix}-select-selector {
|
||||||
border-color: @error-color;
|
border-color: @error-color !important;
|
||||||
&:hover {
|
|
||||||
border-color: @error-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
&-open .@{ant-prefix}-select-selection,
|
&.@{ant-prefix}-select-open .@{ant-prefix}-select-selector,
|
||||||
&-focused .@{ant-prefix}-select-selection {
|
&.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector {
|
||||||
.active(@error-color);
|
.active(@error-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -499,15 +497,6 @@ form {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// arrow and icon
|
|
||||||
.@{ant-prefix}-calendar-picker-icon::after,
|
|
||||||
.@{ant-prefix}-time-picker-icon::after,
|
|
||||||
.@{ant-prefix}-picker-icon::after,
|
|
||||||
.@{ant-prefix}-select-arrow,
|
|
||||||
.@{ant-prefix}-cascader-picker-arrow {
|
|
||||||
color: @error-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
//input-number, timepicker
|
//input-number, timepicker
|
||||||
.@{ant-prefix}-input-number,
|
.@{ant-prefix}-input-number,
|
||||||
.@{ant-prefix}-time-picker-input {
|
.@{ant-prefix}-time-picker-input {
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
}
|
}
|
||||||
// 输入框的不同校验状态
|
// 输入框的不同校验状态
|
||||||
.@{ant-prefix}-input {
|
.@{ant-prefix}-input,
|
||||||
|
.@{ant-prefix}-input-affix-wrapper {
|
||||||
&,
|
&,
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: @background-color;
|
background-color: @background-color;
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
@import './index';
|
||||||
|
@import './mixin';
|
||||||
|
|
||||||
|
@input-affix-margin: 4px;
|
||||||
|
|
||||||
|
.@{ant-prefix}-input {
|
||||||
|
&-affix-wrapper {
|
||||||
|
.input();
|
||||||
|
display: inline-flex;
|
||||||
|
|
||||||
|
&-disabled {
|
||||||
|
.@{ant-prefix}-input[disabled] {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> input.@{ant-prefix}-input {
|
||||||
|
padding: 0;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
width: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
content: '\a0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-prefix,
|
||||||
|
&-suffix {
|
||||||
|
display: flex;
|
||||||
|
flex: none;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-prefix {
|
||||||
|
margin-right: @input-affix-margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-suffix {
|
||||||
|
margin-left: @input-affix-margin;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
@import '../../style/themes/index';
|
@import '../../style/themes/index';
|
||||||
@import '../../style/mixins/index';
|
@import '../../style/mixins/index';
|
||||||
|
@import './affix';
|
||||||
@import './mixin';
|
@import './mixin';
|
||||||
|
|
||||||
// Input styles
|
// Input styles
|
||||||
|
|
Loading…
Reference in New Issue