2020-03-05 12:17:50 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import '../../button/style/mixin';
|
|
|
|
@import './mixin';
|
|
|
|
|
|
|
|
@search-prefix: ~'@{ant-prefix}-input-search';
|
2020-03-08 15:12:21 +08:00
|
|
|
@search-rtl-cls: ~'@{search-prefix}-rtl';
|
2020-03-05 12:17:50 +08:00
|
|
|
|
|
|
|
.@{search-prefix} {
|
2020-03-08 15:12:21 +08:00
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
2020-03-05 12:17:50 +08:00
|
|
|
&-icon {
|
|
|
|
color: @text-color-secondary;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s;
|
|
|
|
&:hover {
|
2020-03-08 15:12:21 +08:00
|
|
|
color: @input-icon-hover-color;
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-enter-button {
|
|
|
|
input {
|
|
|
|
border-right: 0;
|
2020-03-08 15:12:21 +08:00
|
|
|
|
|
|
|
.@{search-rtl-cls}& {
|
|
|
|
border: @border-width-base @border-style-base @input-border-color;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{ant-prefix}-input-affix-wrapper {
|
|
|
|
border-right: 0;
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
& + .@{ant-prefix}-input-group-addon,
|
|
|
|
input + .@{ant-prefix}-input-group-addon {
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
.@{search-prefix}-button {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
2020-03-08 15:12:21 +08:00
|
|
|
|
|
|
|
.@{search-rtl-cls}& {
|
|
|
|
.@{search-prefix}-button {
|
|
|
|
width: 100%;
|
|
|
|
border-top-left-radius: @border-radius-base;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-bottom-left-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
}
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|