2020-03-07 11:45:13 +00:00
|
|
|
@import '../../style/themes/index';
|
2019-01-02 13:01:56 +00:00
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import './mixin';
|
2021-12-15 12:48:24 +00:00
|
|
|
@import './affix';
|
|
|
|
@import './allow-clear';
|
|
|
|
|
|
|
|
@input-prefix-cls: ~'@{ant-prefix}-input';
|
2017-12-06 10:54:20 +00:00
|
|
|
|
|
|
|
// Input styles
|
2021-12-15 12:48:24 +00:00
|
|
|
.@{input-prefix-cls} {
|
2020-12-27 06:50:32 +00:00
|
|
|
.reset-component();
|
|
|
|
.input();
|
2018-01-15 10:54:26 +00:00
|
|
|
|
2021-12-15 12:48:24 +00:00
|
|
|
//== Style for input-group: input with label, with button or dropdown...
|
|
|
|
&-group {
|
|
|
|
.reset-component();
|
|
|
|
.input-group(~'@{input-prefix-cls}');
|
2020-03-07 11:45:13 +00:00
|
|
|
|
2021-12-15 12:48:24 +00:00
|
|
|
&-wrapper {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
text-align: start;
|
|
|
|
vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403
|
|
|
|
}
|
2019-03-30 08:06:06 +00:00
|
|
|
}
|
|
|
|
|
2021-12-15 12:48:24 +00:00
|
|
|
&-password-icon {
|
|
|
|
color: @text-color-secondary;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s;
|
2019-10-17 10:52:10 +00:00
|
|
|
|
2021-12-15 12:48:24 +00:00
|
|
|
&:hover {
|
|
|
|
color: @input-icon-hover-color;
|
|
|
|
}
|
|
|
|
}
|
2020-09-29 14:11:06 +00:00
|
|
|
|
2021-12-15 12:48:24 +00:00
|
|
|
&[type='color'] {
|
|
|
|
height: @input-height-base;
|
2020-09-29 14:11:06 +00:00
|
|
|
|
2021-12-15 12:48:24 +00:00
|
|
|
&.@{input-prefix-cls}-lg {
|
|
|
|
height: @input-height-lg;
|
|
|
|
}
|
|
|
|
&.@{input-prefix-cls}-sm {
|
|
|
|
height: @input-height-sm;
|
|
|
|
padding-top: 3px;
|
|
|
|
padding-bottom: 3px;
|
|
|
|
}
|
2021-06-30 01:20:55 +00:00
|
|
|
}
|
|
|
|
|
2021-12-15 12:48:24 +00:00
|
|
|
&-textarea-show-count {
|
|
|
|
// https://github.com/ant-design/ant-design/issues/33049
|
|
|
|
> .@{input-prefix-cls} {
|
|
|
|
height: 100%;
|
|
|
|
}
|
2019-10-17 10:52:10 +00:00
|
|
|
|
2021-12-15 12:48:24 +00:00
|
|
|
&::after {
|
|
|
|
float: right;
|
|
|
|
color: @text-color-secondary;
|
|
|
|
white-space: nowrap;
|
|
|
|
content: attr(data-count);
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-10-26 03:28:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-02 13:01:56 +00:00
|
|
|
@import './search-input';
|
2021-12-15 12:48:24 +00:00
|
|
|
@import './rtl';
|
|
|
|
@import './IE11';
|