_recommend-for-you.css 1.29 KB
.recommend-for-you {
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;

    .title {
        font-size: 32px;
        line-height: 88px;
        text-align: center;
        color: #444;
    }

    .swiper-container {
        padding: 30px 0 20px;
        width: 100%;

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

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

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

            img {
                width: 100%;
                height: 208px;
            }
        }
    }
    .sale-name {
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        white-space: nowrap;
        margin-top: 20px;
        color: #444;
    }

    .price {
        position: relative;
        margin-top: 8px;
        font-size: 24px;
        line-height: 1;

        .sale-price {
            display: block;
            color: #d9134f;
            margin-right: 8px;
        }

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

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