@charset "utf-8";
.text-center {
text-align: center;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body,
button {
font-family: Arial, Helvetica, "微軟正黑體", sans-serif;
}
.wrap {
width: 960px;
margin-left: auto;
margin-right: auto;
}
.dialog__head {
border-bottom: solid 1px #ddd;
}
.dialog__body,
.dialog__foot {
padding: 15px;
}
.dialog__title {
margin: 0;
padding: 15px;
width: 100%;
font-size: 26px;
text-align: center;
}
.dialog__desc {
margin: 0;
color: #666;
}
.dialog__head .btn__inner {
position: absolute;
right: 15px;
top: 15px;
}
.dialog__foot .btn__inner {
text-align: center;
}
.btn {
line-height: 1;
background-color: transparent;
border: none;
}
.btn-close {
font-size: 25px;
color: #ccc;
}
.btn-peace,
.btn-cancel {
padding: 10px 20px;
margin-left: 5px;
margin-right: 5px;
font-size: 16px;
border-radius: 3px;
}
.btn-peace {
color: #fff;
background-color: #228be6;
}
.btn-cancel {
color: #000;
background-color: #ddd;
}
.ovl-dark {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .5);
}
.dialog {
/*
example 1
position: fixed;
left:50%;
top:50%;
margin-top: -200px;
margin-left: -91px;
*/
/*
example 2
position: fixed;
top:0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
*/
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
position: fixed;
width: 400px;
height: 183px;
background-color: #fff;
}