_product.css 2.97 KB
.favorite-products {
    margin-top: 20px;

    .products-cates {
        font-size: 14px;
        background-color: #eee;

        .label {
            float: left;
            margin: 12px 0 12px 20px;

            a {
                color: #bbb;
            }
        }

        .label.focus {
            font-weight: 700;
            font-size: 16px;

            a {
                color: #1b1b1b;
            }
        }
    }

    .product-list {
        margin: 0 -10px;
        padding-bottom: 30px;
        border-bottom: 1px solid #eee;

        .goods-info {
            float: left;
            width: 216px;
            margin: 20px 10px 0;
            cursor: pointer;
            position: relative;

            .choose-icon {
                position: absolute;
                display: none;
                top: 0;
                right: 0;
                z-index: 1;

                .iconfont {
                    font-size: 36px;
                    color: #999;
                }
            }

            .goods-img {
                position: relative;

                .goods-state-bg {
                    position: absolute;
                    bottom: 0;
                    height: 35px;
                    background-color: #666;
                    opacity: 0.7;
                    width: 100%;
                    z-index: 1;
                }

                .goods-state {
                    position: absolute;
                    bottom: 0;
                    height: 35px;
                    line-height: 35px;
                    text-align: center;
                    color: #fff;
                    font-size: 14px;
                    width: 100%;
                    z-index: 2;
                }
            }

            .desc {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                padding: 0 15px;
            }

            .brand-name {
                padding: 10px 0;
                font-size: 14px;
                font-weight: 700;
            }

            .product-name {
                padding: 5px 0;
                font-size: 14px;
            }

            .price {
                padding: 13px;
                font-size: 14px;
            }

            .thumb {
                width: 216px;
                height: 293px;
            }

            .tool-area {
                text-align: center;
                margin-top: 15px;
                height: 26px;

                .btn {
                    display: none;
                    margin: 0 4px;
                    color: #666;
                    border-color: #666;
                }
            }
        }

        .goods-info:hover,
        .goods-info.choose {
            .tool-area {
                .btn {
                    display: inline-block;
                }
            }
        }

        .goods-info.choose {
            .choose-icon {
                display: block;
            }
        }
    }
}