_list.scss 4.88 KB
.product-list-page {
    .list-left {
        width: 160px;

        .sort-container {
            width: 100%;
            font-size: 12px;
            border-bottom: 1px solid #ebebeb;
            padding-bottom: 10px;
            margin-bottom: 10px;

            h2 {
                height: 28px;
                line-height: 28px;
                color: #222;
                font-weight: bold;
                position: relative;

                span {
                    color: #bbb;
                    padding-left: 5px;
                }
            }

            .product-list-nav {
                h3 {
                    height: 28px;
                    line-height: 28px;
                    color: #222;
                    font-weight: bold;
                    position: relative;
                    text-indent: 10px;
                    cursor: pointer;

                    span {
                        color: #bbb;
                        padding-left: 5px;

                        &.icon-triangle {
                            display: inline-block;
                            padding-left: 0;
                            width: 0;
                            height: 0;
                            border-top: 6px solid #fff;
                            border-left: 6px solid #000;
                            border-bottom: 6px solid #fff;
                            position: absolute;
                            top: 50%;
                            margin-top: -6px;
                            left: 0;
                            @include transition(transform .3s)
                        }
                    }
                }

                &.active {
                    h3 {
                        span {
                            &.icon-triangle {
                                @include rotate(90deg)
                            }
                        }
                    }
                    ul.sort-child-list {
                        display: block;
                    }
                }
            }

            ul.sort-child-list {
                display: none;

                &.new-sale {
                    display: block;
                }
                li {
                    color: #bbb;

                    span {
                        padding-left: 5px;
                    }
                }
                a {
                    color: #666;
                    padding-left: 10px;
                    height: 22px;
                    line-height: 22px;
                }
            }
        }

        .nav-pic-title {
            height: 35px;
            line-height: 35px;
            color: #000;
            font-weight: bold;
            border-bottom: 1px solid #ebebeb;
            font-size: 12px;
        }

        .pic-nav {
            display: block;

            li, img {
                display: block;
                width: 100%;
                overflow: hidden;
            }
        }
    }

    .list-right {
        width: 970px;
    }

    .brand-banner {
        position: relative;

        .opt-wrap {
            position: absolute;
            width: 100%;
            height: 32px;
            top: 50%;
            margin-top: -16px;
            text-align: right;
        }

        a, span {
            display: inline-block;
            height: 20px;
            margin-right: 5px;
            line-height: 20px;
            border: 1px solid #fff;
            padding: 5px 10px;
            color: #fff;
            font-size: 12px;
        }

        .iconfont {
            font-size: 12px;
        }

        .brand-favor {
            margin-right: 0;
        }

        .coled {
            color: #f00;
        }
    }

    .shop-entry {
        position: relative;
        background: #f5f7f6;
        border: 1px solid #eaeceb;
        padding: 12px 15px;
        margin-bottom: 10px;

        .logo {
            width: 80px;
            height: 50px;
        }

        .name {
            margin-left: 10px;
        }

        .shop-name {
            font-size: 16px;
            color: #222;
            line-height: 26px;
        }

        .sorts {
            color: #999;
            font-size: 12px;
            line-height: 18px;

            a {
                color: #999;
            }
        }

        .entry-btn {
            position: absolute;
            right: 15px;
            top: 50%;
            width: 110px;
            height: 32px;
            line-height: 32px;
            margin-top: -16px;
            background: #222;
            text-align: center;
            color: #fff;
            font-size: 12px;

            .iconfont {
                font-size: 12px;
            }
        }
    }

    .goods-container {
        height: auto;
        padding: 25px 0 0 0;
        position: relative;
        width: 970px + 10px;//每列增加右边距

        .good-info {
            width: 235px;

        }
    }
}