mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
481c0c2a4b
close #31446
62 lines
914 B
Plaintext
62 lines
914 B
Plaintext
@import './index';
|
|
@import './mixin';
|
|
|
|
@input-affix-margin: 4px;
|
|
|
|
.@{ant-prefix}-input {
|
|
&-affix-wrapper {
|
|
.input();
|
|
display: inline-flex;
|
|
|
|
&:not(&-disabled):hover {
|
|
.hover();
|
|
z-index: 1;
|
|
.@{ant-prefix}-input-search-with-button & {
|
|
z-index: 0;
|
|
}
|
|
}
|
|
|
|
&-focused,
|
|
&:focus {
|
|
z-index: 1;
|
|
}
|
|
|
|
&-disabled {
|
|
.@{ant-prefix}-input[disabled] {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
> input.@{ant-prefix}-input {
|
|
padding: 0;
|
|
border: none;
|
|
outline: none;
|
|
|
|
&:focus {
|
|
box-shadow: none !important;
|
|
}
|
|
}
|
|
|
|
&::before {
|
|
width: 0;
|
|
visibility: hidden;
|
|
content: '\a0';
|
|
}
|
|
}
|
|
|
|
&-prefix,
|
|
&-suffix {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
}
|
|
|
|
&-prefix {
|
|
margin-right: @input-affix-margin;
|
|
}
|
|
|
|
&-suffix {
|
|
margin-left: @input-affix-margin;
|
|
}
|
|
}
|