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

45 lines
857 B
Plaintext
Raw Normal View History

2016-05-13 11:45:09 +08:00
@import "../../style/themes/default";
@import "../../style/mixins/index";
@import "../../button/style/mixin";
@import "./mixin";
.@{ant-prefix}-input-search-wrapper {
2016-05-13 11:45:09 +08:00
display: inline-block;
vertical-align: middle;
position: relative;
min-width: 24px;
height: @input-height-base;
2016-05-13 11:45:09 +08:00
.@{ant-prefix}-input-search {
opacity: 0;
width: 0;
transition: all .3s ease;
2016-05-13 11:45:09 +08:00
}
.@{ant-prefix}-input-search-icon {
position: absolute;
line-height: @input-height-base;
left: 0;
cursor: pointer;
font-size: 24px;
transition: all .3s ease;
2016-09-20 13:49:38 +08:00
2016-05-13 11:45:09 +08:00
&:hover {
color: @input-hover-border-color;
2016-05-13 11:45:09 +08:00
}
}
}
.@{ant-prefix}-input-search-wrapper-focus {
.@{ant-prefix}-input-search {
opacity: 1;
width: 100%;
2016-05-13 11:45:09 +08:00
}
.@{ant-prefix}-input-search-icon {
left: 100%;
margin-left: -22px;
font-size: 14px;
}
2016-05-13 11:45:09 +08:00
}