2020-02-10 15:26:32 +08:00
|
|
|
@import './index';
|
|
|
|
|
2020-10-14 16:35:29 +08:00
|
|
|
// ========================= Input =========================
|
|
|
|
.@{ant-prefix}-input-clear-icon {
|
|
|
|
margin: 0 @input-affix-margin;
|
2020-02-10 15:26:32 +08:00
|
|
|
color: @disabled-color;
|
|
|
|
font-size: @font-size-sm;
|
2020-10-14 16:35:29 +08:00
|
|
|
vertical-align: -1px;
|
2020-02-10 15:26:32 +08:00
|
|
|
// https://github.com/ant-design/ant-design/pull/18151
|
|
|
|
// https://codesandbox.io/s/wizardly-sun-u10br
|
|
|
|
cursor: pointer;
|
|
|
|
transition: color 0.3s;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @text-color-secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
|
2020-04-14 23:04:23 +08:00
|
|
|
&-hidden {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2020-02-10 15:26:32 +08:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ======================= TextArea ========================
|
|
|
|
.@{ant-prefix}-input-affix-wrapper-textarea-with-clear-btn {
|
2020-03-29 10:39:46 +08:00
|
|
|
padding: 0 !important;
|
|
|
|
border: 0 !important;
|
2020-02-10 15:26:32 +08:00
|
|
|
|
2020-10-14 16:35:29 +08:00
|
|
|
.@{ant-prefix}-input-clear-icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
|
|
|
right: 8px;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2020-02-10 15:26:32 +08:00
|
|
|
}
|