_dialog.css 1.82 KB
.yoho-dialog {
    position: fixed;
    padding: 20px;
    top: 50%;
    left: 50%;
    min-height: 130px;
    min-width: 350px;
    background: #f8f8f8;
    z-index: 1001;
    border: 5px solid rgba(0,0,0,.38);

    .close {
        position: absolute;
        top: 5px;
        right: 5px;
        cursor: pointer;
    }

    .content {
        text-align: center;
    }

    .btns {
        text-align: center;
    }
    .alert-sure{
        background: #000;
        color: #fff;
    }
    .confirm-sure{
        background: #000;
        color: #fff;
    }
    .btn {
        display: inline-block;
        width: 56px;
        height: 26px;
        line-height: 26px;
        text-align: center;
        border: 1px solid #000;
        cursor: pointer;
        margin-left: 10px;
        &:first-child {
            margin-left: 0;
        }
    }

    &.alert-dialog .content,
    &.confirm-dialog .content {
        width: 350px;
        height: auto;
        min-height: 90px;
        overflow: hidden;
        line-height: 20px;
        position: relative;
        padding-top: 40px;
        padding-bottom: 20px;
        p{
            position: absolute;
            left: 0;
            bottom: 25px;
            width: 100%;
            color: #444;
            line-height: 25px;
        }
        div{
            position: absolute;
            top: 0;
            left: 100px;
            padding-top: 30px;
            font-size: 22px;
            font-weight: bold;
            width: 150px;
            height: 30px;
            line-height: 30px;
            margin: 0 auto;
            span{
                background: url(/cart/del.png);
                float: left;
                width: 27px;
                height: 30px;
            }
        }
    }
}