2020-03-08 15:12:21 +08:00
|
|
|
@import './index';
|
|
|
|
@import './mixin';
|
|
|
|
|
|
|
|
@input-affix-margin: 4px;
|
|
|
|
|
|
|
|
.@{ant-prefix}-input {
|
|
|
|
&-affix-wrapper {
|
|
|
|
.input();
|
|
|
|
display: inline-flex;
|
2020-04-30 10:55:54 +08:00
|
|
|
max-height: @input-height-base;
|
2020-04-26 10:41:53 +08:00
|
|
|
|
|
|
|
&-lg {
|
2020-04-30 10:55:54 +08:00
|
|
|
max-height: @input-height-lg;
|
2020-04-26 10:41:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-sm {
|
2020-04-30 10:55:54 +08:00
|
|
|
max-height: @input-height-sm;
|
2020-04-26 10:41:53 +08:00
|
|
|
}
|
2020-03-08 15:12:21 +08:00
|
|
|
|
2020-04-10 17:44:53 +08:00
|
|
|
&-disabled {
|
|
|
|
.@{ant-prefix}-input[disabled] {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-08 15:12:21 +08:00
|
|
|
> input.@{ant-prefix}-input {
|
2020-04-26 10:41:53 +08:00
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 0;
|
2020-03-08 15:12:21 +08:00
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2020-03-30 09:53:10 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
width: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
content: '\a0';
|
|
|
|
}
|
2020-03-08 15:12:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-prefix,
|
|
|
|
&-suffix {
|
2020-04-26 10:41:53 +08:00
|
|
|
display: flex;
|
2020-03-08 15:12:21 +08:00
|
|
|
flex: none;
|
2020-04-26 10:41:53 +08:00
|
|
|
align-items: center;
|
2020-03-08 15:12:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-prefix {
|
|
|
|
margin-right: @input-affix-margin;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-suffix {
|
|
|
|
margin-left: @input-affix-margin;
|
|
|
|
}
|
|
|
|
}
|