mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
fix: RangePicker clear btn position (#25458)
This commit is contained in:
parent
6f2aa5afb7
commit
6769a9baa9
@ -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 =======================
|
||||
|
Loading…
Reference in New Issue
Block a user