_chose-panel.scss 4.11 KB
.chose-panel {
    position: fixed;
    display: none;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.3);
    z-index:3;


    .main {
        position: absolute;
        height: pxToRem(610px);
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
    }

    .infos {
        height: 460rem / $pxConvertRem;
        padding: 0 22rem / $pxConvertRem;
        // padding-top: 30rem / $pxConvertRem;
    }

    .chose-items {
        height: 325rem / $pxConvertRem;
        overflow: auto;
    }

    .basic-info {
        overflow: hidden;
        position: relative;
        margin-bottom: pxToRem(30px);
        margin-top: pxToRem(30px);
    }

    .thumb {
        float: left;
        width: 100rem / $pxConvertRem;
    }

    .text-info {
        height: auto;
        .name {
            font-size: 28rem / $pxConvertRem;
            height: 74rem / $pxConvertRem;
            overflow: hidden;  
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .price{
            font-size: pxToRem(24px);
        }
        .sale-price {
            color: #e10;
            margin-right: pxToRem(15px);

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

        .market-price {
            color: #b0b0b0;
            text-decoration: line-through;
        }
    }

    .color-list, .size-list, .num {
        position: relative;
        font-size: 28rem / $pxConvertRem;
        padding-left: 80rem / $pxConvertRem;
        input.disabled{
            background-color:#fff;
            color: #000;
        }
        > span {
            position: absolute;
            left: 0;
            top: 20rem / $pxConvertRem;
        }
        >span.left-num{
            position: absolute;
            left: pxToRem(380px);
            top: 20rem / $pxConvertRem;
        }
        span.disabled{
            color: #e6e6e6;
        }
    }

    .size-list li.hide {
        display: none;
    }

    .block {
        float: left;
        display: block;
        box-sizing: border-box;
        padding: 0 20rem / $pxConvertRem;
        min-width: 80rem / $pxConvertRem;
        height: 80rem / $pxConvertRem;
        border: 1px solid #000;
        margin-right: 30rem / $pxConvertRem;
        margin-bottom: 30rem / $pxConvertRem;
        line-height: 80rem / $pxConvertRem;
        text-align: center;

        &.chosed {
            border-color: #e10;
            background: image-url('shopping-cart/right.png') no-repeat;
            background-size: 38rem / $pxConvertRem;
            background-position: bottom right;
            color: #e10;
        }

        &.zero-stock {
           color: #e0e0e0;
           border-color: #e0e0e0;
        }
        &.zero-stock.chosed {
            border-color: #e0e0e0;
            background: none;
            color: #e0e0e0;
            background-color: #c0c0c0;
        }
    }

    .num {
        margin-bottom: 20rem / $pxConvertRem;
    }

    .num .btn {
        float: left;
        display: block;
        height: 80rem / $pxConvertRem;
        width: 80rem / $pxConvertRem;
        text-align: center;
        line-height: 80rem / $pxConvertRem;
        border: 1px solid #e6e6e6;

        &.disable {
            color: #e6e6e6;
        }
    }

    .good-num {
        float: left;
        width: 106rem / $pxConvertRem;
        height: 80rem / $pxConvertRem;
        line-height: 80rem / $pxConvertRem;
        padding: 0;
        border: none;
        border-top: 1px solid #e6e6e6;
        border-bottom: 1px solid #e6e6e6;
        text-align: center;
    }

    .btn-wrap {
        position: relative;
        height: 120rem / $pxConvertRem;
        border-top: 1px solid #e6e6e6;
        padding: 20rem / $pxConvertRem;
        text-align: center;
        background: #fff;
        box-sizing: border-box;

        .btn-sure {
            width: 260rem / $pxConvertRem;
            height: 80rem / $pxConvertRem;
            background: #e10;
            color: #fff;
            font-size: 32rem / $pxConvertRem;
            border: none;
        }
    }
}