_goods-category.scss 2.37 KB
.category-swiper {
    position: relative;
    height: 403rem / $pxConvertRem;
    overflow: hidden;
    ul {
        li {
            float: left;
            width: 100%;
            a, img {
                display: block;
                width: 100%;
                height: 100%;
            }
        }
    }
    .swiper-pagination {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 20rem / $pxConvertRem;
        text-align: center;
        .pagination-inner {
            display: inline-block;
            span {
                display: inline-block;
                width: 14rem / $pxConvertRem;
                height: 14rem / $pxConvertRem;
                background: #fff;
                opacity: 0.5;
                margin: 0 (9rem / $pxConvertRem);
                border-radius: 50%;
            }
            span.swiper-active-switch {
                opacity: 1;
            }
        }
    }
}

.goods-category .category-list {
    background: #f5f7f6;
    height: 383rem / $pxConvertRem;
    li {
        float: left;
        width: 191rem / $pxConvertRem;
        height: 181rem / $pxConvertRem;
        padding: (10rem / $pxConvertRem) 0 0;
        border-left: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        .first-show {
            display: none;
        }
        .img-box {
            display: flex;
            display: -webkit-flex;
            height: 140rem / $pxConvertRem;
            align-items: center;
            justify-content: center;
            img {
                max-width: 100%;
                max-height: 100%;
            }
        }
        .category-name {
            line-height: 32rem / $pxConvertRem;
            font-size: 20rem / $pxConvertRem;
            color: #444;
            text-align: center;
        }
    }
    li:first-child {
        width: 253rem / $pxConvertRem;
        height: 335rem / $pxConvertRem;
        border-left: none;
        padding: (48rem / $pxConvertRem) 0 0 0;
        .first-show {
            display: block;
            line-height: 44rem / $pxConvertRem;
            font-size: 30rem / $pxConvertRem;
            color: #444;
            text-align: center;
        }
        .img-box {
            height: 220rem / $pxConvertRem;
        }
        .category-name {
            line-height: 40rem / $pxConvertRem;
            font-size: 22rem / $pxConvertRem;
        }
    }
}