_good.scss 6.4 KB
.shopping-cart-good {
    $cartRed: #d0253b;
    position: relative;
    padding-left: 16rem / $pxConvertRem;

    .prevent-img-click {
       position: absolute;
       width: 20rem / $pxConvertRem;
       height: 200rem / $pxConvertRem;
       background-color: transparent;
       z-index: 99;
    }
    .none{
        display: none;
    }
    .checkbox {
        position: absolute;
        top: 50%;
        margin-top: -34rem / $pxConvertRem;
        margin-left: 8rem / $pxConvertRem;
        font-size: 28rem / $pxConvertRem;

        &.icon-cb-checked {
            color: #000;
        }

        &.disabled {
            color: #f0f0f0;
        }
    }

    .few-tag {
        width: 150rem / $pxConvertRem;
        position: absolute;
        text-align: center;
        top: 72%;
        color: #fff;

        span {
            display: inline-block;
            @include transform(scale(0.833));
        }
    }

    .gift-tag {
        background-color: #88BE51;
    }

    .plus-tag {
        background-color: #FC1264;
    }

    .few-tag-expire {
        position: absolute;
        top: 40%;
        left: 20rem / $pxConvertRem;
        background-color: #7f7f7f;
        display: inline-block;
        color: #fff;
        border-radius: 12rem / $pxConvertRem;
        padding: 4rem / $pxConvertRem;
        font-size: 20rem / $pxConvertRem;
        width: 48rem / $pxConvertRem;
        text-align: center;
    }

    .info {
        float: left;
        margin-left: 60rem / $pxConvertRem;
        padding: 16rem / $pxConvertRem 0;
        padding-right: 20rem / $pxConvertRem;
    }

    .fixed-height {
        height: 2.7rem;
    }

    .thumb {
        float: left;
        width: 150rem / $pxConvertRem;
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .deps {
        position: relative;
        width: 380rem / $pxConvertRem;
        margin-left: 180rem / $pxConvertRem;
        border-bottom: 1px solid #e0e0e0;
        padding: 0.5rem 0;
    }

    .name {
        display: inline-block;
        width: 80%;
        color: #5a5a5a;
        font-size: 0.6rem;
        line-height: 0.7rem;
    }

    .color-size-row > span {
        margin-right: 15rem / $pxConvertRem;
    }

    .color, .size {
        font-size: 0.6rem;
        color: #b6b6b6;
    }

    .appear-date {
        float: left;
        color: $cartRed;
        display: block;
        font-size: 0.5rem;
    }

    .price {
        font-size: 0.6rem;
        color: $cartRed;
        display: inline;
        .sale-price{
            color: #b0b0b0;
            text-decoration: line-through;
        }
    }

    .count {
        font-size: 20rem / $pxConvertRem;
        color: #999;
        display: inline-block;
        width: 22%;
        position: absolute;
        text-align: center;
    }

    .low-stocks {
        display: inline-block;
        width: 100rem / $pxConvertRem;
        height: 30rem / $pxConvertRem;
        line-height: 30rem / $pxConvertRem;
        font-size: 22rem / $pxConvertRem;
        border: none;
        color: #fff;
        text-align: center;
        float: right;
        margin-right: 16rem / $pxConvertRem;
        padding: 4rem / $pxConvertRem;

        border-radius: 20rem / $pxConvertRem;
    }

    .low-stocks {
        background: #7f7f7f;
    }

    .vip {
        display: inline-block;
        color: #fff;
        background: #e01;
        @include border-radius(16rem / $pxConvertRem);
        padding: 0 12rem / $pxConvertRem;
        margin-left: 8rem / $pxConvertRem;
        font-size: 20rem / $pxConvertRem;
    }

    .la-tag {
        margin-top: 0.3rem;
        min-height: 1rem;
    }

    .icon-del,
    .icon-edit {
        position: absolute;
        color: #ccc;
        font-size: 30rem / $pxConvertRem;
    }

    .icon-del {
        right: 20rem / $pxConvertRem;
    }

    .icon-edit {
        right: 72rem / $pxConvertRem;
    }

    .opt-panel {
        position: absolute;
        width: 220rem / $pxConvertRem;
        right: 0;
        top: 0;
        bottom: 0;

        color: #fff;

        > div {
            float: left;
            box-sizing: border-box;
            width: 110rem / $pxConvertRem;
            height: 100%;
            text-align: center;
            padding: 40rem / $pxConvertRem 20rem / $pxConvertRem 0;
            font-size: 15px;
        }

        span {
            display: block;
        }

        .put-in-favorite {
            background: #bbb;

        }

        .del {
            background: #999;

            .iconfont {
                margin-bottom: 20rem / $pxConvertRem;
            }
        }
    }
    .calculate-num{
        float: right;
        .calculate{
            float: right;
            border:1px solid #b0b0b0;
            border-radius:.2rem;
            p{
                color: #444;
                &:first-child{
                    height: 60rem / $pxConvertRem;
                    border-bottom:1px solid #b0b0b0;
                    span {
                        border-left:1px solid #b0b0b0;
                        border-right:1px solid #b0b0b0;
                    }
                }
                i{
                    width: 72rem / $pxConvertRem;
                    height: 60rem / $pxConvertRem;
                    float: left;
                    line-height: 60rem / $pxConvertRem;
                    text-align: center;
                }
                span{
                    width: 96rem / $pxConvertRem;
                    height: 60rem / $pxConvertRem;
                    float: left;
                    font-size: 40rem / $pxConvertRem;
                    line-height: 60rem / $pxConvertRem;
                    text-align: center;

                }
                &:last-child {
                    span{
                        width: 168rem / $pxConvertRem;
                        overflow: hidden;
                        font-size: 48em / $pxConvertRem;
                        text-overflow:ellipsis;
                        white-space:nowrap;
                    }
                }
            }
        }
        .price{
            line-height: 60rem / $pxConvertRem;
            font-size: 52em / $pxConvertRem;
            font-weight: bold;
        }
        .count {
            position: absolute;
            right: 20rem / $pxConvertRem;;
            top: 20rem / $pxConvertRem;;
            font-size: 52em / $pxConvertRem;
        }
    }
}

.shopping-cart-good:last-child {
    .deps {
        border: none;
    }
}