2020-01-13 19:36:27 +08:00
|
|
|
@import './index';
|
|
|
|
@import './mixin';
|
|
|
|
|
2020-01-14 11:59:38 +08:00
|
|
|
@input-affix-margin: 4px;
|
|
|
|
|
2020-01-13 19:36:27 +08:00
|
|
|
.@{ant-prefix}-input {
|
|
|
|
&-affix-wrapper {
|
|
|
|
.input();
|
|
|
|
display: inline-flex;
|
|
|
|
|
2020-10-26 10:56:09 +08:00
|
|
|
&:hover {
|
|
|
|
.hover();
|
|
|
|
z-index: 1;
|
|
|
|
.@{ant-prefix}-input-search-with-button & {
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-focused,
|
|
|
|
&:focus {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2020-04-10 13:13:30 +08:00
|
|
|
&-disabled {
|
|
|
|
.@{ant-prefix}-input[disabled] {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-10 15:26:32 +08:00
|
|
|
> input.@{ant-prefix}-input {
|
2020-05-03 20:32:34 +08:00
|
|
|
padding: 0;
|
2020-01-13 19:36:27 +08:00
|
|
|
border: none;
|
2020-01-14 11:59:38 +08:00
|
|
|
outline: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2020-03-25 22:44:56 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
width: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
content: '\a0';
|
|
|
|
}
|
2020-01-13 19:36:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-prefix,
|
|
|
|
&-suffix {
|
2020-04-23 18:11:11 +08:00
|
|
|
display: flex;
|
2020-01-13 19:36:27 +08:00
|
|
|
flex: none;
|
2020-04-23 18:11:11 +08:00
|
|
|
align-items: center;
|
2020-01-13 19:36:27 +08:00
|
|
|
}
|
|
|
|
|
2020-01-14 11:59:38 +08:00
|
|
|
&-prefix {
|
|
|
|
margin-right: @input-affix-margin;
|
|
|
|
}
|
2020-01-13 19:36:27 +08:00
|
|
|
|
2020-01-14 11:59:38 +08:00
|
|
|
&-suffix {
|
|
|
|
margin-left: @input-affix-margin;
|
|
|
|
}
|
|
|
|
}
|