_recommend-for-you.scss 1.51 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(20px) 0;
        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(20px);
        line-height: 1;

        span {
            display: block;
            // chrome  最小支持12px, 设计图是 10px ,用CSS3变换
            @include transform(scale(0.875));
        }

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

        .old-price {
            position: absolute;
            top: 0;
            right: pxToRem(-6px);
            color: #b0b0b0;
            text-decoration: line-through;
        }

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