captain-ui
Version:
有赞vue wap业务组件库
217 lines (191 loc) • 4.25 kB
CSS
@import '../../common/var.css';
.cap-ump-groupon {
margin-top: 10px;
font-size: 14px;
&__view-more {
margin-top: 10px;
background: $white;
line-height: 44px;
font-size: 14px;
text-align: center;
}
&__view-more-text {
position: relative;
color: $text-color;
&::after {
content: '';
position: absolute;
top: 4px;
right: -13px;
width: 6px;
height: 6px;
border-top: 1px solid $gray-dark;
border-right: 1px solid $gray-dark;
transform: rotate(45deg);
}
}
}
.cap-ump-groupon-goods {
position: relative;
padding: 10px;
background: #fff;
> a {
display: block;
background-color: $white;
}
&__image-wrap {
position: relative;
padding-top: 100%;
width: 100%;
height: 0;
}
&__image {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
max-height: 100%;
max-width: 100%;
}
&__header {
position: relative;
}
&__groupon-nums {
box-sizing: border-box;
position: absolute;
left: 20px;
bottom: 10px;
padding: 0 5px 0 3px;
height: 18px;
line-height: 18px;
border-radius: 0 3px 3px 0;
background: rgba(0, 0, 0, .3);
font-size: 12px;
text-align: center;
color: $white;
&::before {
content: '';
position: absolute;
top: 0;
left: -9px;
width: 9px;
height: 18px;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAAXNSR0IArs4c6QAAAR5JREFUOBGdk1dLRDEUBmNDRbBgxYboi6AsigX9/z/F9iCIqIhinYEbiSG37YEhZb+5d3M2G8JwtT8yhHeAs9tHNHsIOxC6iuYGsK1kdRHNHMGmQqw2cZTgMaxHIY5NotIJrMVwOtaJY4ROYSUNp/OSqHQGy2kwn+fiOIFzWMyD+ToVlS5gIQ+V1lGcqKT5Uqi051vkEuZKgbo9W77XV/JhiltO+pai5+tdio+9LQR/7HfYgNhhpu2l+FqxythZVrSe4B68m53OHEXy4Q2uYRZmoLFS0eAX3MI3LEFt5WIMPjARz13MFDcr26bdgJd+utr7G5pEQ5+g7H3+969pE8mHH7Djz2DXvTTl7+8HhXph7w5s2mSXN6bP+GBxBVO/f0sb7TSHquAAAAAASUVORK5CYII=') 0 0/contain no-repeat;
}
}
&__image-icon {
position: absolute;
right: 0;
top: 0;
width: 20px;
height: 20px;
line-height: 14px;
font-size: 10px;
background-size: 100% 100%;
}
&__title {
color: $text-color;
}
&__body {
overflow: hidden;
background-color: $white;
}
&__discount {
display: inline-block;
padding: 0 5px;
margin-right: 5px;
color: #f44;
background: #ffecec;
line-height: 16px;
font-size: 11px;
border-radius: 16px;
}
&__goods-info {
position: relative;
}
&__groupon-price {
display: inline-block;
margin-right: 5px;
color: #f44;
font-weight: bold;
}
&__groupon-price-symbol,
&__origin-price-symbol {
margin-right: 2px;
}
&__origin-price {
display: inline-block;
color: $gray-dark;
font-size: 12px;
font-weight: normal;
}
&__action {
text-align: center;
}
&__body--btn-0,
&__body--btn-1 {
.cap-ump-groupon-goods__action {
position: absolute;
right: 0px;
bottom: 0px;
padding: 5px 18px;
border: 1px solid $red;
border-radius: 19px;
background: $white;
color: $red;
font-size: 14px;
}
}
&__body--btn-1 {
.cap-ump-groupon-goods__action {
background: $red;
color: $white;
}
}
/* 售罄或结束时用的遮罩 */
&__modal {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, .4);
}
&--soldout,
&--end {
.cap-goods-img {
&::before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
background-color: rgba(0, 0, 0, .4);
z-index: 1;
}
&::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
background-image: url('https://img.yzcdn.cn/v2/image/wsc-wap/showcase/soldout.png');
background-size: contain;
z-index: 2;
}
}
}
&--end {
.cap-goods-img {
&::after {
background-image: url('https://img.yzcdn.cn/v2/image/wsc-wap/showcase/end.png');
}
}
}
}