2020-01-13 19:36:27 +08:00
|
|
|
@import './mixin';
|
2021-09-07 16:14:20 +08:00
|
|
|
@import (reference) '../../style/themes/index';
|
|
|
|
@input-prefix-cls: ~'@{ant-prefix}-input';
|
|
|
|
|
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;
|
|
|
|
|
2021-03-09 16:57:01 +08:00
|
|
|
&:not(&-disabled):hover {
|
2020-10-26 10:56:09 +08:00
|
|
|
.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 {
|
2021-07-20 17:17:24 +08:00
|
|
|
box-shadow: none !important;
|
2020-01-14 11:59:38 +08:00
|
|
|
}
|
|
|
|
}
|
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;
|
2022-02-14 17:09:35 +08:00
|
|
|
|
|
|
|
> *:not(:last-child) {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2020-01-13 19:36:27 +08:00
|
|
|
}
|
|
|
|
|
2021-10-15 16:23:47 +08:00
|
|
|
&-show-count-suffix {
|
|
|
|
color: @text-color-secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-show-count-has-suffix {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|