_goods-category.css 1.96 KB
.category-swiper {
    position: relative;
    height: 400px;
    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: 20px;
        text-align: center;
        .pagination-inner {
            display: inline-block;
            span {
                display: inline-block;
                width: 14px;
                height: 14px;
                background: #fff;
                opacity: 0.5;
                margin: 0 9px;
                border-radius: 50%;
            }
            span.swiper-active-switch {
                opacity: 1;
            }
        }
    }
}

.goods-category {
    background: #fff;
}
.goods-category .category-list {
    height: 382px;
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
    li {
        float: left;
        width: 191px;
        height: 191px;
        border-left: 1px solid #e0e0e0;
        .first-show {
            display: none;
        }
        .img-box {
            height: 100%;
            line-height: 100%;
            text-align: center;
            img {
                width: 100%;
                height: 100%;
                vertical-align: middle;
            }
        }
        .category-name {
            line-height: 32px;
            font-size: 20px;
            color: #444;
            text-align: center;
        }
    }
    li:first-child {
        width: 253px;
        height: 382px;
        border-left: none;
        .img-box {
            height: 100%;
            line-height: 100%;
        }

        .category-name {
            line-height: 40px;
            font-size: 22px;
        }
    }
     li:nth-child(4), li:nth-child(5) {
         border-top: 1px solid #e0e0e0;
     }
}