[bugfix] Field: 修复清除图标未居中

修复 #1261
This commit is contained in:
rex 2019-01-31 11:41:03 +08:00 committed by GitHub
parent 7cdea2f3ff
commit 1949fa03a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,24 +11,24 @@
} }
&__input { &__input {
border: 0; display: block;
margin: 0;
padding: 0;
width: 100%; width: 100%;
height: 24px; height: 24px;
resize: none;
display: block;
text-align: left;
min-height: 24px; min-height: 24px;
color: @text-color; padding: 0;
margin: 0;
line-height: inherit; line-height: inherit;
box-sizing: border-box; color: @text-color;
text-align: left;
background-color: transparent; background-color: transparent;
border: 0;
box-sizing: border-box;
resize: none;
&--disabled { &--disabled {
opacity: 1;
color: @gray-dark; color: @gray-dark;
background-color: transparent; background-color: transparent;
opacity: 1;
} }
&--center { &--center {
@ -49,7 +49,9 @@
} }
&__clear-root { &__clear-root {
display: flex;
height: 24px; height: 24px;
align-items: center;
} }
&__clear, &__clear,
@ -61,8 +63,8 @@
&__clear, &__clear,
&__icon-container { &__icon-container {
padding: 0 10px; padding: 0 10px;
line-height: inherit;
margin-right: -10px; margin-right: -10px;
line-height: inherit;
vertical-align: middle; vertical-align: middle;
} }
@ -83,8 +85,8 @@
} }
&__error-message { &__error-message {
color: @red;
font-size: 12px; font-size: 12px;
color: @red;
text-align: left; text-align: left;
} }
} }