mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
68 lines
1.3 KiB
Plaintext
68 lines
1.3 KiB
Plaintext
@import '../common/style/var.less';
|
|
@import '../common/style/theme.less';
|
|
|
|
.van-notice-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
.theme(height, '@notice-bar-height');
|
|
.theme(padding, '@notice-bar-padding');
|
|
.theme(font-size, '@notice-bar-font-size');
|
|
.theme(color, '@notice-bar-text-color');
|
|
.theme(line-height, '@notice-bar-line-height');
|
|
.theme(background-color, '@notice-bar-background-color');
|
|
|
|
&--withicon {
|
|
position: relative;
|
|
padding-right: 40px;
|
|
}
|
|
|
|
&--wrapable {
|
|
height: auto;
|
|
.theme(padding, '@notice-bar-wrapable-padding');
|
|
|
|
.van-notice-bar {
|
|
&__wrap {
|
|
height: auto;
|
|
}
|
|
|
|
&__content {
|
|
position: relative;
|
|
white-space: normal;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__left-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: 4px;
|
|
vertical-align: middle;
|
|
.theme(font-size, '@notice-bar-icon-size');
|
|
.theme(min-width, '@notice-bar-icon-min-width');
|
|
}
|
|
|
|
&__right-icon {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 15px;
|
|
.theme(font-size, '@notice-bar-icon-size');
|
|
.theme(min-width, '@notice-bar-icon-min-width');
|
|
}
|
|
|
|
&__wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
.theme(height, '@notice-bar-line-height');
|
|
}
|
|
|
|
&__content {
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
|
|
&.van-ellipsis {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
}
|