2021-09-07 16:14:20 +08:00
|
|
|
@import (reference) '../../style/themes/index';
|
|
|
|
@input-prefix-cls: ~'@{ant-prefix}-input';
|
2020-02-10 15:26:32 +08:00
|
|
|
|
2020-10-14 16:35:29 +08:00
|
|
|
// ========================= Input =========================
|
2022-10-19 12:05:24 +08:00
|
|
|
.@{iconfont-css-prefix}.@{input-prefix-cls}-clear-icon,
|
|
|
|
.@{input-prefix-cls}-clear-icon {
|
2021-08-10 19:21:02 +08:00
|
|
|
margin: 0;
|
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
|
|
|
|
2021-08-10 19:21:02 +08:00
|
|
|
&-has-suffix {
|
|
|
|
margin: 0 @input-affix-margin;
|
2020-02-10 15:26:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ======================= TextArea ========================
|
2022-10-19 12:05:24 +08:00
|
|
|
.@{input-prefix-cls}-affix-wrapper.@{input-prefix-cls}-affix-wrapper-textarea-with-clear-btn {
|
|
|
|
padding: 0;
|
2020-02-10 15:26:32 +08:00
|
|
|
|
2022-10-19 12:05:24 +08:00
|
|
|
.@{input-prefix-cls}-clear-icon {
|
2020-10-14 16:35:29 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
|
|
|
right: 8px;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2020-02-10 15:26:32 +08:00
|
|
|
}
|