266 lines
4.0 KiB
CSS
266 lines
4.0 KiB
CSS
/**
|
|
* 导航搜索、内容区域
|
|
*/
|
|
.nav-search {
|
|
padding-right: 250rpx;
|
|
/* #ifdef MP-ALIPAY */
|
|
padding-right: 255rpx;
|
|
/* #endif */
|
|
/* #ifdef H5 || MP-TOUTIAO || APP */
|
|
padding-right: 20rpx;
|
|
/* #endif */
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.category-content {
|
|
height: calc(100vh - 68px);
|
|
/* #ifdef H5 || APP */
|
|
height: calc(100vh - 98px) !important;
|
|
/* #endif */
|
|
}
|
|
|
|
/**
|
|
* 左侧导航
|
|
*/
|
|
.left-content-actual {
|
|
padding-bottom: 120rpx;
|
|
}
|
|
|
|
.left-nav {
|
|
width: 200rpx;
|
|
}
|
|
|
|
.left-nav .item {
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
padding: 0 10rpx;
|
|
border-left: 3px solid #fff;
|
|
border-right: 3px solid #fff;
|
|
}
|
|
|
|
.left-nav .item:not(:last-child) {
|
|
border-bottom: 1px solid #f1f1f1 !important;
|
|
}
|
|
|
|
.nav-active {
|
|
background: #f5f5f5;
|
|
border-width: 0 0 0 3px;
|
|
border-right: 3px solid #f5f5f5 !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/**
|
|
* 右侧内容
|
|
*/
|
|
.right-container {
|
|
width: calc(100% - 200rpx);
|
|
height: 100%;
|
|
top: 0;
|
|
right: 0;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.content-item {
|
|
display: -webkit-inline-box;
|
|
width: calc(33.33% - 20rpx);
|
|
}
|
|
|
|
.content-item .content {
|
|
padding: 15rpx 0;
|
|
}
|
|
|
|
.content-item .text {
|
|
font-size: 28rpx;
|
|
line-height: 46rpx;
|
|
}
|
|
|
|
.content-item .icon {
|
|
width: 100%;
|
|
height: 120rpx;
|
|
}
|
|
|
|
.model-one .content-item:nth-child(3n) {
|
|
border-right: 0;
|
|
}
|
|
|
|
|
|
/**
|
|
* 商品列表模式
|
|
*/
|
|
.category-content.goods-model {
|
|
padding-top: 182rpx;
|
|
}
|
|
|
|
.top-nav {
|
|
height: 182rpx;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 3;
|
|
}
|
|
|
|
.top-nav-scroll {
|
|
width: calc(100% - 70rpx);
|
|
}
|
|
|
|
.top-nav .icon-content {
|
|
width: 92rpx;
|
|
height: 92rpx;
|
|
padding: 1px;
|
|
}
|
|
|
|
.top-nav-scroll .item:first-of-type {
|
|
padding-left: 16rpx;
|
|
}
|
|
|
|
.top-nav .item {
|
|
padding: 20rpx 4rpx;
|
|
}
|
|
|
|
.nav-list-more {
|
|
width: 100%;
|
|
max-height: 550rpx;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.nav-list-more image {
|
|
width: 92rpx;
|
|
height: 92rpx;
|
|
border-radius: 50%;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.nav-list-more .item {
|
|
width: 20%;
|
|
padding: 20rpx 0;
|
|
}
|
|
|
|
.right-content-actual {
|
|
padding-bottom: 105rpx;
|
|
}
|
|
|
|
.goods-right-content {
|
|
width: calc(100% - 200rpx);
|
|
height: calc(100% - 182rpx);
|
|
top: 182rpx;
|
|
right: 0;
|
|
background: #fff;
|
|
}
|
|
|
|
.goods-right-content.category-one-subset-content {
|
|
width: 100%;
|
|
}
|
|
|
|
.goods-right-content .word-list {
|
|
position: sticky;
|
|
top: 0;
|
|
right: 0;
|
|
background: #f5f5f5;
|
|
z-index: 1;
|
|
padding: 0px 1px 20rpx 1px;
|
|
}
|
|
|
|
.goods-list .goods-img {
|
|
width: 182rpx;
|
|
height: 182rpx !important;
|
|
border-top-right-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
}
|
|
|
|
.goods-list .goods-base {
|
|
width: calc(100% - 220rpx);
|
|
}
|
|
|
|
.goods-list .goods-base-content {
|
|
min-height: 100rpx;
|
|
}
|
|
|
|
.goods-list .goods-base .simple-desc {
|
|
line-height: 30rpx;
|
|
min-height: 30rpx;
|
|
max-height: 58rpx;
|
|
}
|
|
|
|
.goods-list .goods-base .sales-price {
|
|
width: calc(100% - 320rpx);
|
|
left: 210rpx;
|
|
bottom: 10rpx;
|
|
}
|
|
|
|
.goods-list .goods-base .buy-opt {
|
|
right: 10rpx;
|
|
bottom: 6rpx;
|
|
}
|
|
|
|
.goods-list .goods-base .buy-number {
|
|
min-width: 32rpx;
|
|
}
|
|
|
|
/**
|
|
* 底部导航
|
|
*/
|
|
.botton-nav {
|
|
width: calc(100% - 40rpx);
|
|
left: auto;
|
|
bottom: 20rpx;
|
|
line-height: 80rpx;
|
|
z-index: 6;
|
|
max-width: calc(800px - 40rpx);
|
|
margin-left: 20rpx;
|
|
}
|
|
|
|
.botton-nav .cart .badge-icon {
|
|
top: -20rpx;
|
|
right: -2rpx;
|
|
}
|
|
|
|
.botton-nav .cart-total-price {
|
|
width: calc(100% - 260rpx);
|
|
}
|
|
|
|
.botton-nav button {
|
|
top: 0;
|
|
right: 0;
|
|
line-height: 88rpx;
|
|
height: 88rpx;
|
|
border: 0;
|
|
/* #ifdef MP-QQ */
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
/* #endif */
|
|
}
|
|
|
|
/**
|
|
* 购物车
|
|
*/
|
|
.cart-mask {
|
|
left: 0;
|
|
top: 0;
|
|
background: rgb(0, 0, 0, 0.6);
|
|
z-index: 5;
|
|
}
|
|
|
|
.cart-content {
|
|
left: auto;
|
|
bottom: 130rpx;
|
|
width: calc(100% - 40rpx);
|
|
z-index: 6;
|
|
max-width: calc(800px - 40rpx);
|
|
margin-left: 20rpx;
|
|
}
|
|
|
|
.cart-content .cart-list {
|
|
max-height: 60vh;
|
|
}
|
|
|
|
.cart-content .cart-list .goods-img {
|
|
width: 120rpx;
|
|
height: 120rpx !important;
|
|
}
|
|
|
|
.cart-content .cart-list .goods-base {
|
|
width: calc(100% - 140rpx);
|
|
}
|
|
|
|
.cart-content .cart-list .goods-base-content {
|
|
min-height: 60rpx;
|
|
} |