mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
fix: RangePicker clear btn position (#25458)
This commit is contained in:
parent
6f2aa5afb7
commit
6769a9baa9
@ -61,6 +61,7 @@
|
|||||||
&-input {
|
&-input {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
> input {
|
> input {
|
||||||
@ -109,7 +110,12 @@
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
margin-left: @padding-xs / 2;
|
margin-left: @padding-xs / 2;
|
||||||
color: @disabled-color;
|
color: @disabled-color;
|
||||||
|
line-height: 1;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-clear {
|
&-clear {
|
||||||
@ -117,12 +123,17 @@
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
right: 0;
|
right: 0;
|
||||||
color: @disabled-color;
|
color: @disabled-color;
|
||||||
|
line-height: 1;
|
||||||
background: @component-background;
|
background: @component-background;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity @animation-duration-slow, color @animation-duration-slow;
|
transition: opacity @animation-duration-slow, color @animation-duration-slow;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
}
|
}
|
||||||
@ -187,6 +198,12 @@
|
|||||||
padding: 0 @padding-xs;
|
padding: 0 @padding-xs;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.@{picker-prefix-cls}-small {
|
||||||
|
.@{picker-prefix-cls}-clear {
|
||||||
|
right: @input-padding-horizontal-sm;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======================= Dropdown =======================
|
// ======================= Dropdown =======================
|
||||||
|
Loading…
Reference in New Issue
Block a user