mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
2cadd5be9f
* 🐛 Fix Input clear icon align problem close #18150 close #17414 * Update index.less
67 lines
1.3 KiB
Plaintext
67 lines
1.3 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
@import './mixin';
|
|
|
|
// Input styles
|
|
.@{ant-prefix}-input {
|
|
.reset-component;
|
|
.input;
|
|
}
|
|
|
|
//== Style for input-group: input with label, with button or dropdown...
|
|
.@{ant-prefix}-input-group {
|
|
.reset-component;
|
|
.input-group(~'@{ant-prefix}-input');
|
|
&-wrapper {
|
|
display: inline-block;
|
|
width: 100%;
|
|
text-align: start;
|
|
vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403
|
|
}
|
|
}
|
|
|
|
// Input with affix: prefix or suffix
|
|
.@{ant-prefix}-input-affix-wrapper {
|
|
.reset-component;
|
|
.input-affix-wrapper(~'@{ant-prefix}-input');
|
|
|
|
// https://github.com/ant-design/ant-design/issues/6144
|
|
.@{ant-prefix}-input {
|
|
min-height: 100%; // use min-height, assume that no smaller height to override
|
|
}
|
|
}
|
|
|
|
.@{ant-prefix}-input-password-icon {
|
|
color: @text-color-secondary;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
|
|
&:hover {
|
|
color: #333;
|
|
}
|
|
}
|
|
|
|
.@{ant-prefix}-input-clear-icon {
|
|
color: @disabled-color;
|
|
font-size: @font-size-sm;
|
|
// https://github.com/ant-design/ant-design/pull/18151
|
|
// https://codesandbox.io/s/wizardly-sun-u10br
|
|
vertical-align: 0;
|
|
cursor: pointer;
|
|
transition: color 0.3s;
|
|
|
|
&:hover {
|
|
color: @text-color-secondary;
|
|
}
|
|
|
|
&:active {
|
|
color: @text-color;
|
|
}
|
|
|
|
+ i {
|
|
margin-left: 6px;
|
|
}
|
|
}
|
|
|
|
@import './search-input';
|