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] {
|
2022-12-27 16:18:53 +08:00
|
|
|
background: rgba(255, 255, 255, 0);
|
2020-04-10 13:13:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-19 12:05:24 +08:00
|
|
|
> .@{ant-prefix}-input {
|
2022-10-09 11:04:55 +08:00
|
|
|
font-size: inherit;
|
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
|
|
|
}
|
2022-10-19 12:05:24 +08:00
|
|
|
|
|
|
|
&:not(textarea) {
|
|
|
|
padding: 0;
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}
|