
// Dialog
.wd-modal {
    // common init style
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5);
    color: #48576a;
    text-align: center;
    vertical-align: sub;
    opacity: 0;
    transition-duration: 300ms;
    &.active{
        opacity: 1;
    }
    &:after {
        content: "";
        display: inline-block;
        height: 100%;
        width: 0;
        vertical-align: middle;
    }
    // Dialog - Confirm&Alert
    .confirm {
        display: inline-block;
        overflow: auto;
        border-radius: 6px;
        width: 270px;
        background-clip: padding-box;
        background-color: rgba(253, 253, 253, .95);
        position: relative;
        margin: 0 auto;
        .confirm-tip {
            min-height: 42px;
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;
            padding: 18px;
            font-size: 16px;
            display: flex;
            //noinspection CssOverwrittenProperties
            word-break: break-all;
            //noinspection CssInvalidPropertyValue,CssOverwrittenProperties
            word-break: break-word;
            max-height: 80vh;
            overflow-y: auto;
            div {
                width: 100%;
            }
            .confirm-content {
                font-size: 16px;
                width: 100%;
                text-align: center;
            }
        }
        .confirm-ft {
            display: flex;
            width: 100%;
            border-bottom-left-radius: 6px;
            border-bottom-right-radius: 6px;
            box-sizing: border-box;
            overflow: hidden;
            button {
                display: block;
                flex: 1;
                width: 100%;
                height: 42px;
                line-height: 42px;
                background: transparent;
                text-align: center;
                font-size: 16px;
                border: 1px solid #c8c7cc;
                border-right-width: 0;
                box-sizing: border-box;
                cursor: pointer;
                &:first-child {
                    border-left-width: 0;
                }
            }
            .selected {
                color: #00a5e0;
            }
        }
    }
}

// Dialog - Notify
.notify {
    position: fixed;
    z-index: 5000;
    top: 45%;
    left: 0;
    width: 100%;
    border: 0;
    margin: 10px 0;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1);
    transition-property: transform, opacity;
    &.active, &.out {
        transition: opacity 300ms;
    }
    &.active {
        opacity: 1;
    }
    &.out {
        opacity: 0;
    }
    // 通知内容
    .notify-cnt {
        background-color: rgba(0, 0, 0, .6);
        line-height: 40px;
        height: 40px;
        color: #fff;
        font-size: 16px;
        text-align: center;
        border-radius: 5px;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding: 0 10px;
        display: inline-block;
    }
}