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

    .checkbox {
        position: absolute;
        top: 50%;
        margin-top: -14rem / $pxConvertRem;
        font-size: 28rem / $pxConvertRem;
        color: #f0f0f0;

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

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

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

    .deps {
        margin-left: 173rem / $pxConvertRem;
        padding-bottom: 60rem / $pxConvertRem;
        border-bottom: 1px solid #e0e0e0;
    }

    .name {
        font-size: 28rem / $pxConvertRem;
        color: #5a5a5a;
    }

    .row:nth-child(2) {
        font-size: 22rem / $pxConvertRem;
        height: 45rem / $pxConvertRem;
        line-height: 45rem / $pxConvertRem;

        > span {
            margin-right: 15rem / $pxConvertRem;
        }
    }

    .row:nth-child(3) {
        position: relative;
    }

    .color, .size {
        color: #b6b6b6;
    }

    .appear-date {
        color: $cartRed;
        display: block;
        margin-top: 4rem / $pxConvertRem;
    }

    .price {
        font-size: 24rem / $pxConvertRem;
        color: $cartRed;
    }

    .count {
        font-size: 20rem / $pxConvertRem;
        color: #999;
        margin-left: 22rem / $pxConvertRem;
    }

    .sold-out, .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-top: 20rem / $pxConvertRem;
        margin-right: 16rem / $pxConvertRem;
        border-radius: 20rem / $pxConvertRem;
        padding: 4rem / $pxConvertRem;
    }

    .sold-out {
        background: #999;
    }

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

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

    .icon-del {
        right: 14rem / $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;
            }
        }
    }

    .good-detail-img {
       // position: relative;
        //height: 368rem / $pxConvertRem;

        //.good-islike {
        //    position: absolute;
        //    width: 60rem / $pxConvertRem;
        //    height: 60rem / $pxConvertRem;
        //    top: 0rem / $pxConvertRem;
        //    right: 0rem / $pxConvertRem;
        //    line-height: 60rem / $pxConvertRem;
        //    font-size: 30rem / $pxConvertRem;
        //    text-align: center;
        //    color: #b0b0b0;
        //    text-decoration: none;
        //}
        //
        //.good-like {
        //    color: #d72928;
        //}
        //img {
        //    display: block;
        //    width: 100%;
        //    height: 368rem / $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;
        }
    }
}

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