jh-admin/addon/supply/shop/view/public/css/supply.scss

212 lines
3.4 KiB
SCSS

@import './common.scss';
.ns-supply-index {
background-color: #FFFFFF;
}
// 店铺信息
.ns-goods-store {
padding: 20px;
.ns-store-info {
width: 100%;
height: 115px;
margin-top: 10px;
margin-bottom: 20px;
padding: 20px;
background-color: #f8f8f8;
display: flex;
box-sizing: border-box;
position: relative;
.store-img {
flex-shrink: 0;
width: 75px;
height: 75px;
margin-right: 10px;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.store-info {
flex: 1;
}
.store-name-wrap {
display: flex;
justify-content: space-between;
align-items: center;
}
.store-btn {
.layui-btn {
height: 24px;
line-height: 22px;
padding: 0 10px;
}
}
.store-intro {
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
margin: 7px 0 8px;
color: #646566;
}
.store-goods {
span {
color: #969799;
font-size: 12px;
margin-right: 20px;
}
}
}
.ns-store-score {
position: absolute;
width: 200px;
height: 115px;
top: 0;
right: 0;
padding: 20px 30px;
box-sizing: border-box;
line-height: 25px;
font-size: 12px;
font-weight: 600;
color: red;
text-align: right;
span {
font-weight: 500;
color: #646566;
}
}
}
// 商品列表
.ns-goods-list {
width: 100%;
padding: 0 10px;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
}
.ns-goods-li {
width: 170px;
overflow: hidden;
margin-right: 32.5px;
margin-bottom: 30px;
&:nth-child(5n) {
margin-right: 0;
}
.ns-goods-img {
width: 100%;
height: 170px;
box-sizing: border-box;
overflow: hidden;
position: relative;
img {
width: 100%;
height: 100%;
object-fit: cover;
transition: all 1s ease-out;
}
.ns-goods-sale {
font-size: 12px;
position: absolute;
bottom: 0;
padding-left: 10px;
width: 100%;
height: 30px;
line-height: 30px;
background-color: rgba(0,0,0,.6);
color: #c8c9cc;
box-sizing: border-box;
.sale-label {
opacity: .66;
}
.sale-num {
display: inline-block;
margin-left: 10px;
color: #fff;
}
}
.hover-content {
display: none;
font-size: 12px;
position: absolute;
bottom: 0;
width: 100%;
height: 30px;
line-height: 30px;
text-align: center;
background-color: $base-color;
color: #fff;
font-weight: bolder;
}
}
.ns-goods-img:hover {
border: 2px solid $base-color;
img {
transform: scale(1.2);
}
.hover-content {
display: block;
}
}
.ns-goods-name {
font-size: 12px;
color: #323233;
margin: 5px 0;
height: 42px;
&:hover {
color: $base-color;
}
}
.ns-goods-info {
position: relative;
p {
font-size: 12px;
span:first-child {
color: #969799;
display: inline-block;
}
}
.ns-goods-profit {
font-size: 15px;
}
p:nth-child(2) {
margin-top: 5px;
}
p:nth-child(3) {
position: absolute;
right: 0;
bottom: 0;
cursor: pointer;
}
}
}