_recommend-for-you.scss 1.27 KB
.recommend-for-you {
    padding: pxToRem(30px) 0 pxToRem(10px);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;

    .title {
        font-size: pxToRem(32px);
        line-height: pxToRe(88px);
        text-align: center;
        color: #444;
        font-weight: bold;
    }

    .swiper-container {
        padding: pxToRem(30px) 0 pxToRem(20px);
        width: 100%;
        height: pxToRem(252px);
        overflow: hidden;

        .swiper-slide {
            padding: 0 pxToRem(10px);
            float: left;
            width: pxToRem(156px);

            &:first-child {
                padding-left: pxToRem(30px);
            }

            &:last-child {
                padding-right: pxToRem(30px);
            }

            img {
                width: 100%;
                height: pxToRem(208px);
            }
        }
    }

    .price {
        position: relative;
        margin-top: pxToRem(20px);
        font-size: pxToRem(12px);
        line-height: 1;

        .sale-price {
            color: #d9134f;
            margin-right: pxToRem(8px);
        }

        .old-price {
            color: #b0b0b0;
            text-decoration: line-through;
        }

        .no-price {
            color: #444;
        }
    }
}