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

    .main {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 70%;
        background: #fff;
        padding-bottom: 100px;
    }

    .close {
        float: right;
        width: 30px;
        height: 30px;
        margin: 16px 16px 0 0;
        text-align: right;
        color: #b1b1b1;
    }

    .infos {
        padding: 0 30px;
        height: 100%;
    }

    .chose-items {
        overflow: auto;
        height: 60%;
    }

    .basic-info {
        position: relative;
        padding-bottom: 30px;
        min-height: 190px;
        border-bottom: 1px solid #e6e6e6;
    }

    .thumb-img {
        width: 164px;
        min-height: 200px;
        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: 0;
            right: 0;
            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: #D0021b;
            font-size: 28px;

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

        .market-price {
            color: #b0b0b0;
            text-decoration: line-through;
        }
        
        .size-info {
            font-size: 24px;
            display: block;
            margin-top: 5px;
            color: #444;
        }

        .hide {
            display: none;
        }
    }

    .color-list,
    .size-list,
    .num {
        position: relative;
        padding-left: 80px;
        font-size: 28px;
        overflow: hidden;

        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;
            overflow: hidden;
            white-space: nowrap;
            color: #b0b0b0;
            overflow: hidden;
            white-space: nowrap;
        }

        span.disabled {
            color: #e6e6e6;
        }
    }

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

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

    .discount-gray {
        background-color: #e0e0e0;
    }

    .hover {
        position: fixed;
        width: 100%;
        background-color: black;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        border: 0;
        z-index: 999;
        align-items: center;
        display: flex;

        img {
            width: 100%;
        }
    }
}