_fresh-only.scss 2.62 KB
.fresh-swiper {
    position: relative;
    height: 200rem / $pxConvertRem;
    overflow: hidden;
    ul {
        li {
            float: left;
            width: 100%;
            a, img {
                display: block;
                width: 100%;
                height: 100%;
            }
        }
    }
    .swiper-pagination {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 20rem / $pxConvertRem;
        text-align: center;
        .pagination-inner {
            display: inline-block;
            span {
                display: inline-block;
                width: 14rem / $pxConvertRem;
                height: 14rem / $pxConvertRem;
                background: #fff;
                opacity: 0.5;
                margin: 0 (9rem / $pxConvertRem);
                border-radius: 50%;
            }
            span.swiper-active-switch {
                opacity: 1;
            }
        }
    }
}

.fresh-list-swiper {
    overflow: hidden;

    ul {
        box-sizing: border-box;
    }

    li {
        float:left;
        width:240rem / $pxConvertRem;
        margin: (20rem / $pxConvertRem) (10rem / $pxConvertRem) 0 (10rem / $pxConvertRem);

        &:first-child {
            margin-left: 20rem / $pxConvertRem;
        }

        &:last-child {
            margin-right: 20rem / $pxConvertRem;
        }

        .img-box {
            height: 100%;
            height:320rem / $pxConvertRem;
            text-align: center;
            img {
                width: 100%;
                height: 100%;
                vertical-align: middle;
            }
        }

        .fresh-info {
            font-size: 22px / $pxConvertRem;

            .fresh-name a{
                display:block;
                overflow: hidden;
                text-overflow: ellipsis;
                width: 100%;
                white-space: nowrap;
                color: #444;
                line-height: 48rem / $pxConvertRem;

            }

            .cur-price {
                color: #d62927;
            }

            .old-price {
                margin: 0 0 0 (10rem / $pxConvertRem);
                color: #b0b0b0;
                text-decoration: line-through;
            }

            .fresh-icon {
               background: #d62927;
                width: 100rem / $pxConvertRem;
                height: 33 / $pxConvertRem;
                display: block;
                margin: (8rem / $pxConvertRem) auto 0 auto;
                color: #fff;
                text-align: center;
                border-radius: 40rem / $pxConvertRem;
                line-height: 37rem / $pxConvertRem;
            }
        }
    }
}