_index.scss 7.25 KB
.sale-page {
    margin-top: 10px;

    .slide-container {
        position: relative;
        height: 450px;
        overflow: hidden;
    }

    .activity-entry {
        margin: 10px 0;

        .entry-item {
            display: block;
            width: 377px;
            margin-right: 10px;
            padding: 24px 0;
            background: #f5f5f5;

            &.first,
            &.last {
                width: 376px;
            }

            &.last {
                margin-right: 0;
            }
        }

        .entry-text {
            padding-left: 160px;
            font-size: 16px;
        }

        .icon {
            width: 72px;
            height: 72px;
            margin-left: 48px;
        }

        .title {
            font-size: 26px;
            font-weight: bold;
            line-height: 48px;
        }
    }

    .floor-title {
        margin: 80px auto 40px;
        width: 300px;
        font-size: 16px;
        line-height: 30px;
        text-align: center;
        border: 1px solid #000;
    }

    .brand-sale {
        .sale-group-big {
            width: 1150px + 8px;

            .item {
                width: 378px;
                margin-right: 8px;
                margin-bottom: 10px;
            }

            .pic {
                position: relative;
                height: 400px;
            }

            .time {
                @include box-sizing(border-box);
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;
                padding: 0 10px;
                font-size: 16px;
                line-height: 30px;
                text-align: right;
                color: #fff;
                background: #4e4e4e;
            }

            .detail {
                background: #f5f5f5;
            }

            .brand {
                margin: 24px 10px 0;
            }

            .text {
                padding: 24px 10px 24px 0;
                font-size: 14px;
                color: #fd5659;
            }

            .discount {
                font-size: 28px;
                font-weight: bold;

                .num {
                    font-size: 40px;
                }
            }
        }

        .sale-group {
            width: 1150px + 8px;

            .item {
                width: 185px;
                margin-right: 8px;
                margin-bottom: 10px;
            }

            .pic {
                width: 100%;
                display: block;
            }

            .detail {
                padding: 14px 10px;
                background: #f5f5f5;
                text-align: center;
                line-height: 20px;
            }

            .title {
                font-size: 12px;
            }

            .time {
                font-size: 14px;
            }
        }
    }

    .sale-nav li {
        float: left;
        width: 20%;
        height: 40px;
        line-height: 40px;
        background-color: #e0e0e0;
        text-align: center;
        background-color: #f5f5f5;
        color: #6d6d6d;
        margin-bottom: 10px;
    }
    .sale-nav li.active {
        color: #fff;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .sale-nav li.green.active {
        color: #fff;
        background-image: image-url('sale/navactive-green-middle.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .sale-nav li.green.first.active {
        background-image: image-url('sale/navactive-green-first.png');
    }

    .sale-nav li.green.last.active {
        background-image: image-url('sale/navactive-green-last.png');
    }

    .sale-nav li.yellow.active {
        color: #fff;
        background-image: image-url('sale/navactive-yellow-middle.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .sale-nav li.yellow.first.active {
        background-image: image-url('sale/navactive-yellow-first.png');
    }

    .sale-nav li.yellow.last.active {
        background-image: image-url('sale/navactive-yellow-last.png');
    }

    .sale-nav li.red.active {
        color: #fff;
        background-image: image-url('sale/navactive-red-middle.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .sale-nav li.red.first.active {
        background-image: image-url('sale/navactive-red-first.png');
    }

    .sale-nav li.red.last.active {
        background-image: image-url('sale/navactive-red-last.png');
    }

    @media screen and (min-width: 1150px) {
        .floor-header {
            margin:80px 0 40px
        }

        .floor-header .header-navs li {
            padding: 1px 15px
        }
    }

    .commodity-list ul {
        width: 1004px
    }

    .commodity-item {
        float: left;
        width: 241px;
        margin: 0 10px 0 0
    }
    .commodity-img {
        position: relative;
        height: 323px;
        text-align: center
    }

    .commodity-img img {
        width: 100%;
        height: 100%;
        vertical-align: middle
    }

    .commodity-img .top-tag {
        position: absolute;
        width: 60px;
        height: 60px;
        top: 10px;
        right: 10px;
        line-height: 60px;
        background: url('../assets/images/furniture/top-tag-bg.png?1450667948');
        font-size: 20px;
        color: #fff
    }

    .commodity-img .few-tag {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 20px;
        background: #ffac5b;
        color: #fff;
        line-height: 20px;
        text-align: center;
        font-size: 12px
    }

    .commodity-content {
        padding: 10px 0 0 0;
        height: 69px;
        overflow: hidden
    }

    .commodity-content .commodity-name {
        font-size: 12px;
        color: #000;
        line-height: 18px;
        text-align: center
    }

    .commodity-content .commodity-price {
        position: relative;
        margin: 3px 0 0 0;
        text-align: center;
        line-height: 20px;
        color: #000
    }

    .commodity-content .commodity-price span {
        display: inline-block;
        *display: inline;
        *zoom: 1;
        font-size: 12px;
        padding: 0 15px;
    }

    .commodity-content .commodity-price span.origin {
        text-decoration: line-through;
    }

    .commodity-content .commodity-price strong {
        font-weight: normal;
        color: #565656;
        font-size: 13px;
    }

    .commodity-content .commodity-price span.vip-tag {
        background-image: image-url('sale/vip.png');
        background-repeat: no-repeat;
        background-size: 100% 90%;
        color: #fff;
        font-style: italic;
        margin-right: 5px;
    }

    .commodity-content .commodity-price .price-sale {
        margin-left: 10px;
        padding-left: 10px;
        width: 36px;
        height: 20px;
        line-height: 20px;
        background: url('../assets/images/furniture/sale-tag-bg.png?1450667948');
        color: #fff
    }

    @media screen and (min-width: 1150px) {
        .commodity-list ul {
            width:1160px
        }

        .commodity-item {
            width: 280px
        }

        .commodity-img {
            height: 374px
        }

        .commodity-content {
            padding: 14px 0 0 0;
            height: 77px
        }
    }
}