mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
@import '../common/style/var.less';
|
|
@import '../common/style/theme.less';
|
|
|
|
.van-search {
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
.theme(padding, '@search-padding');
|
|
|
|
&__content {
|
|
display: flex;
|
|
flex: 1;
|
|
.theme(padding-left, '@padding-sm');
|
|
.theme(border-radius, '@border-radius-sm');
|
|
.theme(background-color, '@search-background-color');
|
|
|
|
&--round {
|
|
.theme(border-radius, '@border-radius-max');
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
.theme(padding, '@search-label-padding');
|
|
.theme(font-size, '@search-label-font-size');
|
|
.theme(line-height, '@search-input-height');
|
|
.theme(color, '@search-label-color');
|
|
}
|
|
|
|
&__field {
|
|
flex: 1;
|
|
|
|
&__left-icon {
|
|
.theme(color, '@search-left-icon-color');
|
|
}
|
|
}
|
|
|
|
&--withaction {
|
|
padding-right: 0;
|
|
}
|
|
|
|
&__action {
|
|
.theme(padding, '@search-action-padding');
|
|
.theme(font-size, '@search-action-font-size');
|
|
.theme(line-height, '@search-input-height');
|
|
.theme(color, '@search-action-text-color');
|
|
|
|
&--hover {
|
|
.theme(background-color, '@active-color');
|
|
}
|
|
}
|
|
}
|