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

34 lines
751 B
Plaintext
Raw Normal View History

2017-12-06 18:54:20 +08:00
@import "../../style/themes/default";
@import "../../style/mixins/index";
@import "../../button/style/mixin";
@import "./mixin";
2018-01-15 18:54:26 +08:00
@search-prefix: ~"@{ant-prefix}-input-search";
2017-12-06 18:54:20 +08:00
2018-01-15 18:54:26 +08:00
.@{search-prefix} {
&-icon {
pointer-events: none;
color: @text-color-secondary;
2017-12-06 18:54:20 +08:00
}
2018-01-15 18:54:26 +08:00
&:not(&-small) > .@{ant-prefix}-input-suffix {
right: @control-padding-horizontal;
2017-12-06 18:54:20 +08:00
}
2018-01-15 18:54:26 +08:00
> .@{ant-prefix}-input-suffix > .@{search-prefix}-button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
> .@{iconfont-css-prefix}-search {
font-size: @font-size-lg;
2017-12-06 18:54:20 +08:00
}
}
2018-01-15 18:54:26 +08:00
&.@{search-prefix}-enter-button > .@{ant-prefix}-input {
padding-right: 46px;
2017-12-06 18:54:20 +08:00
}
2018-01-15 18:54:26 +08:00
&.@{search-prefix}-enter-button > .@{ant-prefix}-input-suffix {
right: 0;
2017-12-06 18:54:20 +08:00
}
}