captain-ui
Version:
有赞vue wap业务组件库
147 lines (120 loc) • 2.38 kB
CSS
@import '../../../common/var';
.cap-ump-seckill--list {
position:relative;
padding: 0 0 0 15px;
background: $white;
.cap-ump-seckill-goods {
display: block;
position: relative;
padding: 10px 0;
&::after {
@mixin border-retina (bottom);
}
&:last-child {
&::after {
border: 0;
}
}
&__header {
float: left;
margin-right: 10px;
width: 110px;
height: 110px;
}
&__content {
position: relative;
padding: 0;
padding-right: 15px;
height: 110px;
overflow: hidden;
}
&__detail {
position: absolute;
bottom: 0;
left: 0;
}
&__title {
max-height: 36px;
line-height: 18px;
}
&__price-symbol {
font-size: 12px;
}
&__price-yuan,
&__price-cent {
font-size: 18px;
}
&__price {
margin-right: 5px;
font-size: 14px;
}
&__origin-price {
margin-top: 9px;
font-size: 10px;
}
&__tag-countdown {
padding: 2px 0;
background: rgba(255, 68, 68, .8);
color: $white;
text-align: center;
font-size: 10px;
/* 防止小程序倒计时跳动 */
.cap-countdown__second {
text-align: center;
}
}
&__countdown--mirco {
position: absolute;
bottom: 27px;
right: 8px;
.cap-countdown__day,
.cap-countdown__hour,
.cap-countdown__minute,
.cap-countdown__second,
.cap-countdown__time-text {
width: auto;
padding: 0;
color: $gray-dark;
background: none;
}
.cap-countdown__day + .cap-countdown__time-text {
padding: 0;
}
}
&__action {
position: absolute;
bottom: 0;
right: 15px;
}
&--soldout,
&--end {
.cap-ump-seckill-goods__mask::after {
width: 60px;
height: 60px;
}
}
&--not-start {
.cap-ump-seckill-goods__countdown {
margin-left: 4px;
color: $green;
}
}
}
@media screen and (max-width: 320px) {
.cap-ump-seckill-goods {
&__price {
font-size: 12px;
}
&__price-symbol {
font-size: 10px;
}
&__price-yuan,
&__price-cent {
font-size: 14px;
}
&__action {
width: 65px;
}
}
}
}