﻿/* Modal */
.alertable {
    position: fixed;
    z-index: 9999;
    top: 30vh;
    left: calc(50% - 140px);
    width: 280px;
    background: white;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    padding: 20px;
    margin: 0 auto;
    overflow: hidden;
    /**防止撑大div**/
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

/* Overlay */
.alertable-overlay {
    position: fixed;
    z-index: 9998;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgb(0,0,0);
    background: rgba(0, 0, 0, .7);
    opacity:0.7;
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}

/* Message */
.alertable-message {
    margin-bottom: 20px;
    font-size:16px;
    line-height:150%;
}

/* Prompt */
.alertable-prompt {
    margin-bottom: 20px;
}

.alertable-input {
    width: 100%;
    border-radius: 4px;
    box-shadow: none;
    border: solid 1px #ccc;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 6px 12px;
    display: block;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* Button group */
.alertable-buttons {
    text-align: center;
    display:flex;
}

.alertable-buttons div {
    width:50%;
    float:left;
}

.alertable-line {
    border-top:1px #f2f2f2 solid;
    height:2px;
    margin:25px 0 5px 0px;
}


/* OK button */
.alertable-ok {
    background: #fff;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: #08c;
    border-radius: 4px;
    padding: 6px 0px;
    cursor: pointer;
    width:100%;
    outline:none;
    font-size:16px;
}


.alertable-ok:hover {
    background-color: #f2f2f2;
}

/* Cancel button */
.alertable-cancel {
    border: none;
    background: white;
    font-family: inherit;
    font-size: inherit;
    color: #888;
    border-radius: 4px;
    padding: 6px 0px;
    cursor: pointer;
    width:100%;
    outline:none;
    font-size:16px;
}

.alertable-cancel:hover
 {
    background-color: #f2f2f2;
}
