_shop-recommand.css 2.63 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%;
        }

        .fav-container {
            position: absolute;
            top: 12px;
            left: 15px;

            span {
                font-size: 18px;
                color: #fff;
            }
        }

        .shop-fav {
            display: inline-block;
            height: 21px;
            width: 24px;
            background: resolve("channel/faved.png");
            background-size: 100% 100%;
            vertical-align: middle;
            margin-right: 8px;
        }

        .shop-notfav {
            display: inline-block;
            height: 21px;
            width: 24px;
            background: resolve("channel/notfav.png");
            background-size: 100% 100%;
            vertical-align: middle;
            margin-right: 8px;
        }

        .faved-num {
            position: absolute;
            top: 12px;
            right: 12px;
            color: #fff;
            font-size: 18px;
        }

    }
    .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%;
        }

        .fav-container {
            top: 15px;
            left: 18px;

            span {
                font-size: 20px;
            }
        }

        .shop-fav {
            height: 24px;
            width: 27px;
        }

        .shop-notfav {
            height: 24px;
            width: 27px;
        }

        .faved-num {
            top: 15px;
            right: 15px;
            font-size: 20px;
        }
    }
}