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%;
}
}
}