_shop-recommand.css 1.3 KB
.shop-recom {
    &-swiper-container {
        position: relative;
        width: 100%;
        height: 407px;

        .top {
            float: left;
            height: 208px;
            width: 100%;
        }

        .bottom {
            float: left;
            height: 146px;
            width: 50%;
        }

    }
    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .recom-shop {
        display: inline-block;
        height: 354px;
        width: 358px;
        margin-top: 26px;
        margin-right: 26px;
        border-radius: 5px;
    }

    .recom-active {
        height: 407px;
        width: 412px;
        margin-top: 0;
        transition: all 0.3s ;

        .top {
            height: 239px;
            width: 100%; 
        }

        .bottom {
            height: 168px;
            width: 50%;
        }
    }
}