_good.css 7.31 KB
.good-info {
    float: left;
    margin: 10px 15px 40px;
    width: 276px;
    height: 506px;

    .tag-container {
        overflow: hidden;
        width: 100%;
        height: 28px;

        .good-tag {
            display: block;
            float: left;
            box-sizing: border-box;
            margin-right: 4px;
            height: 28px;
            text-align: center;
            font-size: 12PX;
            line-height: 28px;

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

        .new-tag {
            width: 60px;
            background-color: #78dc7e;
            color: #fff;
        }

        .hot-tag {
            width: 60px;
            background-color: #ff575c;
            color: #fff;
        }

        .renew-tag {
            width: 90px;
            background-color: #78dc7e;
            color: #fff;
        }

        .sale-tag {
            width: 60px;
            background-color: #ff575c;
            color: #fff;
        }

        .new-festival-tag {
            color: #000;
            width: 100px;
            background-image: resolve("product/new-festival.png");
            background-repeat: no-repeat;
            background-color: #fff;
            background-size: 100px 28px;
        }

        .limit-tag {
            width: 60px;
            border: 1px solid #000;
            color: #000;
            line-height: 26px;
        }

        .is-presell {
            width: 60px;
            background-color: #000;
            color: #fff;
        }

        .is-global {
            padding: 3px 10px 0 8px;
            color: #fff;
            background-color: #462e3e;
            line-height: 26px;

            span {
                display: inline-block;
                background-image: resolve("product/airplane.png");
                background-repeat: no-repeat;
                padding-left: 32px;
                background-size: auto 95%;
            }
        }
    }
}

.good-detail-img {
    position: relative;
    height: 368px;

    .good-islike {
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
        color: #b0b0b0;
        text-align: center;
        text-decoration: none;
        font-size: 30px;
        line-height: 60px;
    }

    .good-like {
        color: #d72928;
    }

    img {
        display: block;
        width: 100%;
        height: 368px;
    }

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

    .out-tag {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 32px;
        background: #b0b0b0;
        color: #fff;
        text-align: center;
        font-size: 18px;
        line-height: 32px;
    }

    .no-storage {
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: #000;
        opacity: 0.4;
        position: absolute;
        top: 0;

        .no-storage-img {
            display: block;
            width: 100%;
            height: 100%;
            background-image: resolve("product/outlet_sellout_bg.png");
            background-repeat: no-repeat;
            background-size: contain;
        }
    }
}

.good-detail-text {
    .name a {
        transform: scale(0.9);
        margin: 15px 0 10px;
        min-height: 50px;
        color: #444;
        font-size: 12PX;
        line-height: 30px;
        padding: 5px 0; /* 商品标题限制行数的bug修复 增加元素的clientHeight */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        height: 60px;
    }

    .price {
        font-size: 12PX;
        line-height: 22px;
        white-space: nowrap;
        transform: scale(0.9);

        .sale-price {
            color: #d62927;
        }

        .sale-price.no-price {
            color: #000;
        }

        .market-price {
            font-size: 12PX;
            margin: 0 0 0 5px;
            color: #b0b0b0;
            text-decoration: line-through;
        }
    }

    .vip-grade {
        display: inline-block;
        margin-right: 8px;
        width: 52px;
        height: 32px;
        vertical-align: text-bottom;
    }

    .vip-grade-1 {
        background: resolve("product/silver.png") no-repeat;
        background-size: contain;
    }

    .vip-grade-2 {
        background: resolve("product/golden.png") no-repeat;
        background-size: contain;
    }

    .vip-grade-3 {
        background: resolve("product/platinum.png") no-repeat;
        background-size: contain;
    }

    .vip-info {
        margin-top: 19px;
        color: #444;
        font-size: 18px;
        line-height: 32px;

        .vip-icon {
            display: inline-block;
            margin-right: 8px;
            width: 88px;
            height: 32px;
            background: resolve("product/vip-icon.png") no-repeat;
            background-size: contain;
            vertical-align: bottom;
        }
    }
}

.width750 {
    .good-info {
        margin: 12px 18px 47px;
        width: 323px;
        height: 593px;

        .tag-container {
            height: 33px;

            .good-tag {
                margin-right: 5px;
                height: 33px;
                font-size: 21px;
                line-height: 33px;
            }

            .new-tag {
                width: 70px;
            }

            .hot-tag {
                width: 70px;
            }

            .renew-tag {
                width: 105px;
            }

            .sale-tag {
                width: 70px;
            }

            .new-festival-tag {
                width: 117px;
                background-size: 117px 33px;
            }

            .limit-tag {
                width: 70px;
                line-height: 30px;
            }

            .is-presell {
                width: 70px;
            }
        }
    }

    .good-detail-img {
        height: 431px;

        .good-islike {
            width: 70px;
            height: 70px;
            font-size: 35px;
            line-height: 70px;
        }

        img {
            height: 431px;
        }

        .few-tag {
            height: 33px;
            font-size: 21px;
            line-height: 33px;
        }

        .out-tag {
            height: 38px;
            font-size: 21px;
            line-height: 38px;
        }
    }

    .good-detail-text {
        .name a {
            margin: 18px 0 12px;
            min-height: 59px;
            font-size: 26px;
            line-height: 35px;
            padding: 6px 0;
            height: 70px;
        }

        .price {
            font-size: 26px;
            line-height: 26px;

            .market-price {
                margin: 0 0 0 6px;
            }
        }

        .vip-grade {
            margin-right: 9px;
            width: 61px;
            height: 38px;
        }

        .vip-info {
            margin-top: 22px;
            font-size: 21px;
            line-height: 38px;

            .vip-icon {
                margin-right: 9px;
                width: 103px;
                height: 38px;
            }
        }
    }

    .goods-container {
        padding-top: 9px;
        padding-left: 18px;
        min-height: 1031px;
    }
}