captain-ui
Version:
有赞vue wap业务组件库
105 lines (88 loc) • 1.77 kB
CSS
@import '../../../common/var';
.cap-shop-banner {
position: relative;
background-color: #fff;
font-size: 12px;
&__cover {
position: relative;
height: 185px;
background-repeat: no-repeat;
background-position-x: center;
background-size: cover;
&-mask {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, .3);
}
}
&__inner {
position: absolute;
top: 110px;
width: 100%;
}
&__content {
position: relative;
padding-left: 15px;
overflow: hidden;
}
&__logo {
float: left;
width: 58px;
height: 58px;
border: 1px solid $white;
background-color: $white;
vertical-align: bottom;
overflow: hidden;
img {
position: relative;
max-width: 100%;
height: auto;
border: none;
vertical-align: middle;
}
}
&__right-content {
margin-left: 70px;
h3 {
margin-top: 10px;
max-width: 220px;
font-size: 18px;
line-height: 22px;
font-weight: 700;
color: $white;
text-shadow: 0 1px 15px rgba(0, 0, 0, .5);
@mixin multi-ellipsis 1;
}
}
&__sum-content {
margin-top: 15px;
line-height: 12px;
> a {
color: $gray-dark;
&:first-child {
> span {
padding-left: 0;
&::after {
content: '|';
position: absolute;
top: 0;
right: 0;
width: 2px;
height: 12px;
font-size: 10px;
color: $gray-light;
}
}
}
}
&-total {
position: relative;
display: inline-block;
padding: 0 10px;
vertical-align: middle;
}
}
}