ant-design-vue/components/input/style/affix.less

63 lines
986 B
Plaintext
Raw Normal View History

2020-11-01 03:23:58 +00:00
@import './mixin';
2021-12-15 12:48:24 +00:00
@import (reference) '../../style/themes/index';
@input-prefix-cls: ~'@{ant-prefix}-input';
2020-11-01 03:23:58 +00:00
@input-affix-margin: 4px;
.@{ant-prefix}-input {
&-affix-wrapper {
.input();
display: inline-flex;
2021-12-15 12:48:24 +00:00
&:not(&-disabled):hover {
.hover();
z-index: 1;
.@{ant-prefix}-input-search-with-button & {
z-index: 0;
}
}
&-focused,
&:focus {
z-index: 1;
}
2020-11-01 03:23:58 +00:00
&-disabled {
.@{ant-prefix}-input[disabled] {
background: transparent;
}
}
> input.@{ant-prefix}-input {
padding: 0;
border: none;
outline: none;
&:focus {
2021-12-15 12:48:24 +00:00
box-shadow: none !important;
2020-11-01 03:23:58 +00:00
}
}
&::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;
}
}