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

    .main {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 838px;
        background: #fff;
    }

    .infos {
        padding: 0 30px;
       /* height: 460px;*/
    }

    .chose-items {
        overflow: auto;
        height: 450px;
    }

    .basic-info {
        position: relative;
        /*overflow: hidden;*/
        /*margin-top: 30px;*/
        padding-bottom: 30px;
        min-height: 204px;
        border-bottom: 1px solid #e6e6e6;
    }

    .thumb {
        /*float: left;*/
        /*margin-right: 20px;*/
        width: 164px;
        height: 228px;
        position: absolute;
        top: -60px;
        border: 1px solid #e6e6e6;
        border-radius: 5px;
    }

    .text-info {
        margin-left: 195px;
        height: auto;
        margin-top: 30px;

        .seckill-time {
            position: absolute;
            bottom: 0px;
            right: 0px;
            float: none;
        }

        .name {
            display: -webkit-box;
            overflow: hidden;
            height: 60px;
            font-size: 28px;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .price {
            display: inline;
            font-size: 24px;
        }

        .sale-price {
            margin-right: 15px;
            color: #e10;

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

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

    .color-list,
    .size-list,
    .num {
        position: relative;
        padding-left: 80px;
        font-size: 28px;
        margin-top: 30px;

        input.disabled {
            border-radius: 0;
            background-color: #fff;
            color: #000;
            opacity: 1;
            -webkit-appearance: none;
        }

        > span {
            position: absolute;
            top: 10px;
            left: 0;
        }

        > span.left-num {
            position: absolute;
            top: 20px;
            left: 380px;
            color: #b0b0b0;
        }

        span.disabled {
            color: #e6e6e6;
        }
    }

    .color-list,
    .size-list {
        border-bottom: 1px solid #e6e6e6;
    }

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

    .block {
        display: block;
        float: left;
        box-sizing: border-box;
        margin-right: 30px;
        margin-bottom: 30px;
        padding: 0 20px;
        min-width: 80px;
        max-width: 480px;
        height: 60px;
        border: 3px solid #444;
        text-align: center;
        line-height: 60px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        border-radius: 6px;

        &.chosed {
            border-color: #e10;
            background: #d0021b;
            /*background-position: bottom right;*/
            /*background-size: 38px;*/
            color: #fff;
        }

        &.zero-stock {
            border-color: #e0e0e0;
            color: #e0e0e0;
        }

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

    .num {
        margin-bottom: 20px;
    }

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

        &.disable {
            color: #e6e6e6;
        }
    }

    .good-num {
        float: left;
        margin-left: -1px;
        padding: 0;
        width: 106px;
        height: 80px;
        border: 1px solid #e6e6e6;
        text-align: center;
        line-height: 80px;
    }

    .btn-plus {
        margin-left: -1px;
    }

    .btn-wrap {
        position: fixed;
        bottom: 0;
        width: 100%;

        .btn-sure {
            width: 100%;
            height: 80px;
            border: none;
            background: #d0021b;
            color: #fff;
            font-size: 32px;
        }
    }
}