_good.scss 2.42 KB
.good-info {
    float: left;
    width: 46.4%;
    height: 486rem / $pxConvertRem;
    margin: 28rem / $pxConvertRem 0 0 2.4%;


    .tag-container {
        height: 28rem / $pxConvertRem;
        width: 100%;

        .good-tag {
            display: block;
            float: left;
            height: 28rem / $pxConvertRem;
            font-size: 18rem / $pxConvertRem;
            text-align: center;
            line-height: 32rem / $pxConvertRem;
            margin-right: 4rem / $pxConvertRem;

            &:last-child {
                margin-right: 0;
            }
        }
        .new-tag {
            width: 60rem / $pxConvertRem;
            background-color: #78dc7e;
            color: #fff;
        }
        .renew-tag {
            width: 90rem / $pxConvertRem;
            background-color: #78dc7e;
            color: #fff;
        }
        .sale-tag {
            width: 60rem / $pxConvertRem;
            background-color: #ff575c;
            color: #fff;
        }
        .new-festival-tag {
            width: 90rem / $pxConvertRem;
            background-color: #000;
            color: #fff;
        }
        .limit-tag {
            box-sizing: border-box;
            width: 90rem / $pxConvertRem;
            border: 1px solid #000;
            color: #000;
            line-height: 24rem / $pxConvertRem;
        }
    }
}

.good-detail-img {
    position: relative;
    img {
        display: block;
        width: 100%;
        height: 366rem / $pxConvertRem;
    }

    .few-tag {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 28rem / $pxConvertRem;
        background: #ffac5b;
        font-size: 18rem / $pxConvertRem;
        color: #fff;
        line-height: 28rem / $pxConvertRem;
        text-align: center;
    }
}

.good-detail-text {
    .name a {
        display: block;
        line-height: 56rem / $pxConvertRem;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-decoration: none;
        font-size: 22rem / $pxConvertRem;
        color: #444;
    }
    .price {
        line-height: 22rem / $pxConvertRem;
        font-size: 22rem / $pxConvertRem;
        .sale-price {
            color: #d62927;
        }
        .sale-price.no-price {
            color: #000;
        }
        .market-price {
            margin: 0 0 0 (5rem / $pxConvertRem);
            color: #b0b0b0;
            text-decoration: line-through;
        }
    }
}