2019-04-16 21:59:25 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 20:02:01 +08:00
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import '../../button/style/mixin';
|
|
|
|
@import './mixin';
|
2016-05-13 11:45:09 +08:00
|
|
|
|
2018-12-07 20:02:01 +08:00
|
|
|
@search-prefix: ~'@{ant-prefix}-input-search';
|
2016-11-24 15:50:31 +08:00
|
|
|
|
2020-04-21 09:41:09 +08:00
|
|
|
.searchInputIcon(@input-height, @font-size) {
|
|
|
|
.@{search-prefix}-icon {
|
|
|
|
@horizontal-padding: (@input-height - @font-size) / 2;
|
|
|
|
padding: 0 @horizontal-padding;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
transform: translateX(-@horizontal-padding - @border-width-base);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
width: @input-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchInputIcon(@input-height-base, @font-size-base);
|
|
|
|
|
|
|
|
.@{ant-prefix}-input-affix-wrapper-lg {
|
|
|
|
.searchInputIcon(@input-height-lg, @font-size-lg);
|
|
|
|
}
|
|
|
|
.@{ant-prefix}-input-affix-wrapper-sm {
|
|
|
|
.searchInputIcon(@input-height-sm, @font-size-sm);
|
|
|
|
}
|
|
|
|
|
2017-09-15 17:03:43 +08:00
|
|
|
.@{search-prefix} {
|
|
|
|
&-icon {
|
2020-04-21 09:41:09 +08:00
|
|
|
margin-left: 0.5em;
|
2017-09-15 17:03:43 +08:00
|
|
|
color: @text-color-secondary;
|
2018-05-26 16:52:33 +08:00
|
|
|
cursor: pointer;
|
2018-12-07 20:02:01 +08:00
|
|
|
transition: all 0.3s;
|
2018-05-26 16:52:33 +08:00
|
|
|
&:hover {
|
2019-12-05 00:04:50 +08:00
|
|
|
color: @input-icon-hover-color;
|
2018-05-26 16:52:33 +08:00
|
|
|
}
|
2020-04-21 09:41:09 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
display: block;
|
|
|
|
border-left: @border-width-base @border-style-base @input-border-color;
|
|
|
|
transition: all 0.3s;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(&-enter-button) {
|
|
|
|
padding-right: 0;
|
2016-11-24 15:50:31 +08:00
|
|
|
}
|
|
|
|
|
2019-02-21 12:08:35 +08:00
|
|
|
&-enter-button {
|
2019-02-26 15:04:18 +08:00
|
|
|
input {
|
|
|
|
border-right: 0;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2020-03-06 18:09:37 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-color: @input-hover-border-color;
|
|
|
|
}
|
2019-02-26 15:04:18 +08:00
|
|
|
}
|
|
|
|
|
2020-03-02 12:18:23 +08:00
|
|
|
&.@{ant-prefix}-input-affix-wrapper {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
|
2019-03-07 10:06:18 +08:00
|
|
|
& + .@{ant-prefix}-input-group-addon,
|
2019-02-26 15:04:18 +08:00
|
|
|
input + .@{ant-prefix}-input-group-addon {
|
2019-02-21 12:08:35 +08:00
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2019-01-17 16:52:12 +08:00
|
|
|
|
2019-02-21 12:08:35 +08:00
|
|
|
.@{search-prefix}-button {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
2019-01-17 16:52:12 +08:00
|
|
|
}
|
2016-11-24 15:50:31 +08:00
|
|
|
}
|
|
|
|
}
|