_index.scss 7.47 KB
.products-page {
    .filter-box {
        border: 1px solid #dfdfdf;
    }

    .section {
        padding: 10px 15px;
        font-size: 14px;
        border-top: 1px solid #dfdfdf;

        &:first-child {
            border-top: none;
            background: #eaeceb;
        }
    }

    .title {
        float: left;
        width: 90px;
        line-height: 30px;
    }

    .attr-content {
        margin-left: 90px;
    }

    .multi-select {
        display: inline-block;
        width: 60px;
        height: 18px;
        line-height: 18px;
        border: 1px solid #000;
        text-align: center;
        cursor: pointer;
    }

    .attr {
        display: block;
        float: left;
        padding: 0 10px;
        margin-right: 30px;
        line-height: 30px;
        cursor: pointer;

        &:first-child {
            margin-left: 0;
        }

        -moz-user-select: none;
    }

    .checked-conditions {
        line-height: 30px;

        .tag {
            display: block;
            float: left;
            padding: 0 10px;
            margin-right: 30px;
            background: #000;
            color: #fff;
            cursor: pointer;
        }

        .color-block {
            height: 14px;
            width: 14px;
            border: 1px solid #fff;
            margin-bottom: -3px;
        }

        .clear-checked {
            color: #999;
            float: right;
        }
    }

    .sort-sub-wrap {
        width: 100%;

        .sort-sub {
            padding: 15px 0;
        }
    }

    .brand {
        position: relative;

        .attr {
            box-sizing: border-box;
            width: 20%;
            margin: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .attr-content {
            max-width: 900px;
        }

        .brand-opt {
            position: absolute;
            right: 20px;
            top: 15px;
        }

        .brand-more {
            margin-right: 20px;
            cursor: pointer;
        }

        .brands-index {
            float: left;
            line-height: 30px;

            span {
                margin: 0 5px;
                cursor: pointer;
                -moz-user-select: none;

                &:first-child {
                    margin-left: 10px;
                }
            }
        }

        .brand-search {
            float: left;
            height: 18px;
            line-height: 18px;
            border: 1px solid #b0b0b0;
            margin-top: 5px;
            margin-left: 15px;

            input {
                float: left;
                border: none;
                width: 100px;
                height: 18px;
                padding: 0;
            }

            .btn {
                display: inline-block;
                width: 55px;
                height: 18px;
                background: #b0b0b0;
                color: #fff;
                text-align: center;
                cursor: default;
            }
        }

        .panel-body {
            padding: 15px 20px;
            margin-top: 5px;
            background: #f4f7f6;
            min-height: 30px;
            border: 1px solid #000;
        }
    }

    .btns {
        display: none;
        margin-top: 10px;
        text-align: center;
    }

    .multi .btns {
        display: block;
    }

    .multi-select-ok, .multi-select-cancel {
        width: 55px;
        height: 24px;
        border: none;
        background: #000;
        color: #fff;
        font-size: 15px;
        margin-right: 15px;
        cursor: pointer;

        &.dis {
            background: #ccc;
        }
    }

    .ud-price-range {
        margin-top: 2px;
    }

    .limit {
        height: 22px;
        width: 42px;
        border: 1px solid #ccc;
        padding: 0;
    }

    .price-sep {
        margin: 0 5px;
    }

    .price-sure {
        height: 24px;
        width: 44px;
        border: 1px solid #e0e0e0;
        background: #fff;
        color: #666;
        margin-left: 10px;
    }

    .color-block {
        display: inline-block;
        height: 22px;
        width: 22px;
        border: 1px solid #ccc;
        margin-bottom: -6px;
        margin-right: 5px;
    }
    
    .senior-attr-wrap > .attr {
        position: relative;
        
        &:hover {
            > .iconfont {
                visibility: hidden;
            }

            .senior-up-icon {
                display: block;
            }
        }
    }

    .senior-sub {
        box-sizing: border-box;
        position: absolute;
        padding: 15px 0;
        left: 0;
        width: 1050px;
        top: 39px;
        background: #fff;
        border: 1px solid #eaeceb;

        ul {
            max-width: 950px;
        }

        &.multi .multi-select {
            display: none;
        }

        .multi-select {
            position: absolute;
            top: 20px;
            right: 15px;
        }
    }

    .senior-up-icon {
        position: absolute;
        width: 15px;
        height: 9px;
        z-index: 1;
        left: 50%;
        margin-left: -18px;
        display: none;

        background: image-url('product/senior-up.png') no-repeat;
    }

    .checkbox {
        display: none;
    }

    .multi .checkbox {
        display: inline;
    }

    /*商品列表
     *added by wangchenglong at 2015.12.1
     */
    .goods-container {
        height: auto;
        padding: 0 15px;
        margin-top: 25px;
        position: relative;

        /*测试*/
        width: 1150px;

        .good-info {
            height: 400px;//todo
            margin-bottom: 35px;
            width: 222px;
            margin-right: 10px;
            float: left;

            &.good-list-five {
                margin-right: 0;
            }

            /*标签*/
            .tag-container {
                font-size: 12px;
                height: 22px;
                line-height: 22px;

                .good-tag {
                    padding: 0 7px;
                    display: block;
                    float: left;
                    margin-right: 3px;

                    &:nth-last-of-type(1) {
                        margin-right: 0;
                    }

                    &.new-tag {
                        background: #78dc7d;
                        color: #fff;
                    }
                    &.yep-tag, .sale-tag {
                        background: #ff565b;
                        color: #fff;
                    }
                    &.limit-tag {
                        color: #4e4e4e;
                        border: 1px solid #4e4e4e;
                    }
                }
            }

            /*图片*/
            .good-detail-img {
                width: 100%;
                height: 300px;

                .good-thumb, img.lazy {
                    display: block;
                    overflow: hidden;
                    width: 100%;
                    height: 100%;
                }
            }

            /*文本*/
            .good-detail-text {
                color: #222;
                font-size: 12px;
                text-align: center;

                >a {
                    margin-top: 16px;
                    line-height: 1.5;
                    display: block;
                }

                >.price {
                    margin-top: 10px;
                }
            }
        }

        /*弹层*/
        .good-item-wrapper {
            border: 1px solid red;
            padding-left: 20px;
            padding-top: 18px;
        }

    }
}