金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

166 lines
3.4 KiB

@import '../../common/css/global';
.g-main {
position: relative;
.m-lead {
font-size: 13px;
background: #ffffff;
padding:10px 15px;
.ul-box {
display: flex;
display: -webkit-flex;
flex-direction: row;
justify-content: center;
height: 100%;
.li-box {
position: relative;
flex: 1;
width: 1px;
height: 100%;
span {
display: inline-block;
font-size: 22px;
//padding-left: 6px;
//border-left: 4px solid #E7031C;
font-weight: 700;
}
.hover {
border-bottom: 2px solid #333;
box-sizing: border-box;
}
span.active {
font-size: 17px;
font-weight: bold;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-bottom: 2px solid #000000;
}
}
}
}
.grouping-tap-box {
height: 45px;
line-height: 45px;
display: flex;
align-items: center;
background: #FFFFFF;
margin-bottom: 10px;
color: #999999;
.tap-item {
flex: 1;
text-align: center;
&.active {
span {
position: relative;
color: @globalColor;
&:after {
content: '';
position: absolute;
bottom: -12px;
left: -10px;
right: -10px;
height: 2px;
background: @globalColor;
}
}
}
}
}
.m-content {
padding: 10px 15px;
padding-top: 0;
&.g-bg {
background: #F3F3F3;
}
.m-main {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-content: space-between;
image {
width: 100%;
box-sizing: border-box;
display: block;
}
.img-box {
position: relative;
width: 100%;
height: 100%;
margin-bottom: 10px;
.description {
position: absolute;
width: 100%;
left: 0;
bottom: 0;
height: 30px;
line-height: 30px;
text-indent: 5px;
color: #fff;
background: rgba(0, 0, 0, .5);
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
white-space: nowrap;
font-size: 14px;
}
&:last-child {
margin-bottom: 0;
}
}
.goods_box {
width: 49%;
background: #ffffff;
margin-bottom: 5px;
box-shadow:0px 1px 4px 0px rgba(210,210,210,0.5);
overflow: hidden;
.goods_image {
position: relative;
padding-top: 100%;
width: 100%;
image {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
object-fit: cover;
object-position: center center;
}
}
.title {
font-size: 13px;
color: #4a4a4a;
padding:0 10px;
height: 36px;
line-height: 18px;
margin-top: 5px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp:2;
overflow: hidden;
}
.price {
color: #ea4448;
font-size: 14px;
padding: 6px 10px;
}
}
}
}
}