fix: RangePicker clear btn position (#25458)

This commit is contained in:
二货机器人 2020-07-06 23:01:43 +08:00 committed by GitHub
parent 6f2aa5afb7
commit 6769a9baa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,7 @@
&-input {
position: relative;
display: inline-flex;
align-items: center;
width: 100%;
> input {
@ -109,7 +110,12 @@
align-self: center;
margin-left: @padding-xs / 2;
color: @disabled-color;
line-height: 1;
pointer-events: none;
> * {
vertical-align: top;
}
}
&-clear {
@ -117,12 +123,17 @@
top: 50%;
right: 0;
color: @disabled-color;
line-height: 1;
background: @component-background;
transform: translateY(-50%);
cursor: pointer;
opacity: 0;
transition: opacity @animation-duration-slow, color @animation-duration-slow;
> * {
vertical-align: top;
}
&:hover {
color: @text-color-secondary;
}
@ -187,6 +198,12 @@
padding: 0 @padding-xs;
line-height: 1;
}
&.@{picker-prefix-cls}-small {
.@{picker-prefix-cls}-clear {
right: @input-padding-horizontal-sm;
}
}
}
// ======================= Dropdown =======================