_chose-panel.scss 3.53 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: 80rem / $pxConvertRem;
        height: 106rem / $pxConvertRem;
    }

    .text-info {
        position: absolute;
        height: auto;
        left: pxToRem(95px);
        top:50%;
        transform: translateY(-50%);
        .name {
            font-size: 28rem / $pxConvertRem;
        }

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

            &.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;

        > span {
            position: absolute;
            left: 0;
            top: 20rem / $pxConvertRem;
        }
        >span.left-num{
            position: absolute;
            left: pxToRem(380px);
            top: 20rem / $pxConvertRem;
        }
    }

    .block {
        float: left;
        display: block;
        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;
        }

        &.disable {
           color: #e0e0e0;
           border-color: #e0e0e0; 
        }
    }

    .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 {
        height: 120rem / $pxConvertRem;
        border-top: 1px solid #e6e6e6;
        padding: 20rem / $pxConvertRem;
        text-align: center;
        box-sizing: border-box;

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