UNPKG

859 Btext/lessView Raw
1@import './index';
2
3// ========================= Input =========================
4.@{iconfont-css-prefix}.@{ant-prefix}-input-clear-icon {
5 margin: 0;
6 color: @disabled-color;
7 font-size: @font-size-sm;
8 vertical-align: -1px;
9 // https://github.com/ant-design/ant-design/pull/18151
10 // https://codesandbox.io/s/wizardly-sun-u10br
11 cursor: pointer;
12 transition: color 0.3s;
13
14 &:hover {
15 color: @text-color-secondary;
16 }
17
18 &:active {
19 color: @text-color;
20 }
21
22 &-hidden {
23 visibility: hidden;
24 }
25
26 &-has-suffix {
27 margin: 0 @input-affix-margin;
28 }
29}
30
31// ======================= TextArea ========================
32.@{ant-prefix}-input-affix-wrapper-textarea-with-clear-btn {
33 padding: 0 !important;
34 border: 0 !important;
35
36 .@{ant-prefix}-input-clear-icon {
37 position: absolute;
38 top: 8px;
39 right: 8px;
40 z-index: 1;
41 }
42}