mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
Merge pull request #6655 from megawac/date-picker-style
Make -clear and -icon styles consistent at different input sizes
This commit is contained in:
commit
bb9957ff45
@ -43,21 +43,27 @@
|
|||||||
border-color: @primary-color;
|
border-color: @primary-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-clear {
|
&-clear,
|
||||||
opacity: 0;
|
&-icon {
|
||||||
pointer-events: none;
|
|
||||||
z-index: 1;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 7px;
|
|
||||||
background: @input-bg;
|
|
||||||
top: 50%;
|
|
||||||
font-size: @font-size-base;
|
|
||||||
color: @disabled-color;
|
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
|
right: 8px;
|
||||||
|
top: 50%;
|
||||||
margin-top: -7px;
|
margin-top: -7px;
|
||||||
|
line-height: 1em;
|
||||||
|
font-size: @font-size-base;
|
||||||
|
transition: all .3s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: color 0.3s, opacity 0.3s;
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-clear {
|
||||||
|
opacity: 0;
|
||||||
|
z-index: 1;
|
||||||
|
color: @disabled-color;
|
||||||
|
background: @input-bg;
|
||||||
|
pointer-events: none;
|
||||||
&:hover {
|
&:hover {
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
}
|
}
|
||||||
@ -69,16 +75,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-icon {
|
&-icon {
|
||||||
position: absolute;
|
|
||||||
user-select: none;
|
|
||||||
transition: all .3s;
|
|
||||||
width: 1em;
|
|
||||||
height: 1em;
|
|
||||||
line-height: 1em;
|
|
||||||
right: 8px;
|
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
top: 50%;
|
|
||||||
margin-top: -0.5em;
|
|
||||||
&:after {
|
&:after {
|
||||||
content: "\e6bb";
|
content: "\e6bb";
|
||||||
font-family: "anticon";
|
font-family: "anticon";
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
|
|
||||||
.@{calendar-prefix-cls}-range-picker-separator {
|
.@{calendar-prefix-cls}-range-picker-separator {
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
margin-top: -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{calendar-prefix-cls}-range {
|
.@{calendar-prefix-cls}-range {
|
||||||
|
Loading…
Reference in New Issue
Block a user