_index.scss 8.75 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: 70px;
            height: 70px;
            margin-left: 48px;
            background-repeat: no-repeat;

            &.vip {
                background-image: image-url('sale/for-vip.png');
            }

            &.discount {
                background-image: image-url('sale/discount.png');
            }

            &.off-price {
                background-image: image-url('sale/off-price.png');
            }
        }

        .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;
        &.active {
          color: #fff;
          background-repeat: no-repeat;
          background-size: 100% 100%;
        }
        &.green {
          &.active {
            color: #fff;
            background-image: image-url("sale/navactive-green-middle.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
          }
          &.first.active {
            background-image: image-url("sale/navactive-green-first.png");
          }
          &.last.active {
            background-image: image-url("sale/navactive-green-last.png");
          }
        }
        &.yellow {
          &.active {
            color: #fff;
            background-image: image-url("sale/navactive-yellow-middle.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
          }
          &.first.active {
            background-image: image-url("sale/navactive-yellow-first.png");
          }
          &.last.active {
            background-image: image-url("sale/navactive-yellow-last.png");
          }
        }
        &.red {
          &.active {
            color: #fff;
            background-image: image-url("sale/navactive-red-middle.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
          }
          &.first.active {
            background-image: image-url("sale/navactive-red-first.png");
          }
          &.last.active {
            background-image: image-url("sale/navactive-red-last.png");
          }
        }
    }

    @media screen and (min-width: 1150px) {
        .floor-header {
          margin: 80px 0 40px;
          .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;
        img {
          width: 100%;
          height: 100%;
          vertical-align: middle;
        }
        .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;
        }
        .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-name {
          font-size: 12px;
          color: #000;
          line-height: 18px;
          text-align: center;
        }
        .commodity-price {
          position: relative;
          margin: 3px 0 0 0;
          text-align: center;
          line-height: 20px;
          color: #000;
          span {
            display: inline-block;
            *display: inline;
            *zoom: 1;
            font-size: 12px;
            padding: 0 15px;
            &.origin {
              text-decoration: line-through;
            }
          }
          strong {
            font-weight: normal;
            color: #565656;
            font-size: 13px;
          }
          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;
          }
          .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;
        }
    }

}

.sale-list-page {

    .sale-title {
        margin: 30px 0;
        font-size: 12px;
        line-height: 26px;

        .title {
            margin-right: 20px;
            font-size: 16px;
        }

        .discount {
            display: inline-block;
            margin-right: 10px;
            padding: 0 10px;
            font-weight: lighter;
            line-height: 16px;
            vertical-align: text-bottom;
            color: #fff;
            background: #ff575c;
        }

        .time {
            .iconfont {
                margin-right: 5px;
            }
        }
    }

    .sort {
        padding: 10px;
        border: 1px solid #eaeceb;

        li {
            display: inline-block;
            margin-right: 15px;
            padding: 0 10px;
            font-size: 12px;
            line-height: 20px;
            color: #444;

            &.title {
                margin-right: 0;
                font-weight: bold;
            }

            &.active {
                color: #666;
                border: 1px solid #000;
            }
        }
    }
}