155 lines
3.1 KiB
CSS
155 lines
3.1 KiB
CSS
.weui-mask {
|
|
position: fixed;
|
|
z-index: 1000;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
}
|
|
.weui-mask_transparent {
|
|
position: fixed;
|
|
z-index: 1000;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
}
|
|
.weui-dialog__wrp {
|
|
position: fixed;
|
|
z-index: 5000;
|
|
top: 16px;
|
|
bottom: 16px;
|
|
left: 16px;
|
|
right: 16px;
|
|
text-align: center;
|
|
font-size: 0;
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
align-items: center;
|
|
-webkit-box-pack: center;
|
|
-webkit-justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
.weui-dialog__wrp .weui-dialog {
|
|
max-height: 100%;
|
|
}
|
|
.weui-dialog {
|
|
background-color: #ffffff;
|
|
text-align: center;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-flex-direction: column;
|
|
flex-direction: column;
|
|
max-height: 90%;
|
|
}
|
|
.weui-dialog__hd {
|
|
padding: 32px 24px 16px;
|
|
}
|
|
.weui-dialog__title {
|
|
font-weight: 700;
|
|
font-size: 17px;
|
|
line-height: 1.4;
|
|
}
|
|
.weui-dialog__bd {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding: 0 24px;
|
|
margin-bottom: 32px;
|
|
min-height: 40px;
|
|
font-size: 17px;
|
|
line-height: 1.4;
|
|
overflow-wrap: break-word;
|
|
-webkit-hyphens: auto;
|
|
hyphens: auto;
|
|
color: rgba(0, 0, 0, 0.5);
|
|
}
|
|
.weui-dialog__bd:first-child {
|
|
padding: 32px 24px 0;
|
|
font-weight: 700;
|
|
color: rgba(0, 0, 0, 0.9);
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-flex-direction: column;
|
|
flex-direction: column;
|
|
-webkit-box-pack: center;
|
|
-webkit-justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
.weui-dialog__ft {
|
|
position: relative;
|
|
line-height: 64px;
|
|
min-height: 64px;
|
|
font-size: 17px;
|
|
display: flex;
|
|
}
|
|
.weui-dialog__ft:after {
|
|
content: ' ';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
border-top: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
color: rgba(0, 0, 0, 0.1);
|
|
}
|
|
.weui-dialog__btn {
|
|
display: block;
|
|
flex: 1;
|
|
color: #576b95;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
position: relative;
|
|
}
|
|
.weui-dialog__btn:active {
|
|
background-color: #ececec;
|
|
}
|
|
.weui-dialog__btn:after {
|
|
content: ' ';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 1px;
|
|
bottom: 0;
|
|
border-left: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
color: rgba(0, 0, 0, 0.1);
|
|
}
|
|
.weui-dialog__btn:first-child:after {
|
|
display: none;
|
|
}
|
|
.weui-dialog__btn_default {
|
|
color: rgba(0, 0, 0, 0.9);
|
|
}
|
|
@media screen and (min-width: 352px) {
|
|
.weui-dialog {
|
|
width: 320px;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
.weui-dialog.weui-dialog_hidden {
|
|
opacity: 0;
|
|
transform: scale3d(1, 1, 0);
|
|
}
|
|
.weui-dialog {
|
|
opacity: 1;
|
|
-webkit-transform: scale3d(1, 1, 1);
|
|
transform: scale3d(1, 1, 1);
|
|
transition: all 0.3s ease-in;
|
|
}
|
|
.weui-mask.weui-mask_hidden {
|
|
opacity: 0;
|
|
transform: scale3d(1, 1, 0);
|
|
}
|
|
.weui-mask {
|
|
opacity: 1;
|
|
transform: scale3d(1, 1, 1);
|
|
transition: all 0.3s ease-in;
|
|
}
|