_dialog.css 2.08 KB
.yoho-dialog {
    position: fixed;
    padding: 40px;
    top: 50%;
    left: 50%;
    min-height: 130px;
    min-width: 420px;
    background: #fff;
    z-index: 1001;

    .close {
        padding: 5px;
        text-align: center;
        position: absolute;
        top: 14px;
        right: 14px;
        cursor: pointer;

        > * {
            font-size: 16px;
            margin: 0;
        }
    }

    .content {
        text-align: center;
    }

    .btns {
        padding: 15px 0;
        text-align: center;
    }

    .alert-sure {
        background: #1b1b1b;
        color: #fff;
    }

    .confirm-sure {
        background: #1b1b1b;
        color: #fff;
    }

    .confirm-cancel {
        background: #fff;
        color: #1b1b1b;
    }

    .btn {
        display: inline-block;
        width: 130px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
        text-align: center;
        border: 1px solid #1b1b1b;
        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;
        margin: 0 auto; /* IE8 */

        .title {
            font-size: 22px;
            font-weight: bold;
            padding-bottom: 40px;
        }
    }

    &.subcontent-dialog {
        padding: 30px 0;

        .content {
            font-weight: bold;
            margin: 0 auto 30px;
        }

        .sub-content {
            text-align: center;
            font-size: 12px;
            color: #555;
            margin-left: 5px;
            margin-bottom: 5px;
        }

        .btn {
            margin-top: 25px;
            width: 100px;
            font-size: 13px;
            margin-left: 0;
            margin-right: 0;

            &.black {
                background-color: #000;
                color: #fff;
            }
        }
    }
}