mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-09-09 12:13:22 +08:00
* [bugfix] CouponList always show empty info * [bugfix] add click feedback of buttons in components * [Doc] add custom theme document * [new feature] Notice bar support more props * [bugfix] PullRefresh test cases * [bugfix] unused NoticeBar style * [bugfix] Swipe width calc error * [Doc] english document of all action components * [Doc] change document site path to /zanui/vant * [Doc] fix * [bugfix] uploader style error * [bugfix] tabs document demo * [new feature] Cell support vue-router target route * [bugfix] add cell test cases * update yarn.lock * [bugfix] Tabbar cann't display info when use icon slot * [Doc] update document title * [bugfix] Dialog should reset button text when showed * [new feature] CouponList add showCloseButton prop * [new feature] Swipe add 'initialSwipe' prop * [bugfix] NoticeBar text disappeared when page back
68 lines
1.1 KiB
CSS
68 lines
1.1 KiB
CSS
@import './common/var.css';
|
|
|
|
.van-notice-bar {
|
|
display: flex;
|
|
color: $orange;
|
|
padding: 9px 10px;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
position: relative;
|
|
background-color: #fff7cc;
|
|
|
|
&--withicon {
|
|
position: relative;
|
|
padding-right: 30px;
|
|
}
|
|
|
|
&__left-icon {
|
|
height: 18px;
|
|
min-width: 20px;
|
|
padding-top: 1px;
|
|
box-sizing: border-box;
|
|
|
|
img {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
}
|
|
|
|
&__right-icon {
|
|
top: 10px;
|
|
right: 10px;
|
|
position: absolute;
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
}
|
|
|
|
&__content-wrap {
|
|
flex: 1;
|
|
height: 18px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
&__content {
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__play {
|
|
animation: van-notice-bar-play linear both;
|
|
}
|
|
|
|
&__play--infinite {
|
|
animation: van-notice-bar-play-infinite linear infinite both;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Declare two same keyframes
|
|
* In case that some mobile browsers can continue animation when className changed
|
|
*/
|
|
@keyframes van-notice-bar-play {
|
|
to { transform: translate3d(-100%, 0, 0) }
|
|
}
|
|
@keyframes van-notice-bar-play-infinite {
|
|
to { transform: translate3d(-100%, 0, 0) }
|
|
}
|