antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
98 lines (97 loc) • 1.94 kB
CSS
.adm-modal {
--z-index: var(--adm-modal-z-index, 1000);
position: fixed;
z-index: var(--z-index);
}
.adm-modal .adm-modal-mask {
z-index: 0;
}
.adm-modal-wrap {
position: fixed;
z-index: 1;
top: 50%;
left: 50%;
width: auto;
min-width: 280px;
max-width: 75vw;
transform: translate(-50%, -50%);
}
.adm-modal-body {
width: 100%;
max-height: 70vh;
box-sizing: border-box;
font-size: 14px;
background-color: white;
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.adm-modal-body > * {
flex: none;
}
.adm-modal-body > .adm-modal-content {
flex: auto;
}
.adm-modal-body:not(.adm-modal-with-image) {
padding-top: 20px;
}
.adm-modal-body .adm-modal-image-container {
margin-bottom: 12px;
max-height: 40vh;
overflow-y: scroll;
}
.adm-modal-body .adm-modal-header {
margin-bottom: 8px;
padding: 0 12px;
}
.adm-modal-body .adm-modal-title {
margin-bottom: 8px;
padding: 0 12px;
font-weight: bold;
font-size: 18px;
line-height: 25px;
text-align: center;
}
.adm-modal-body .adm-modal-content {
padding: 0 12px 12px;
max-height: 70vh;
overflow-x: hidden;
overflow-y: auto;
font-size: 15px;
line-height: 1.4;
color: #333;
}
.adm-modal-body .adm-modal-close {
position: absolute;
right: 8px;
top: 8px;
color: var(--adm-color-weak);
padding: 4px;
font-size: 18px;
}
.adm-modal-footer {
user-select: none;
padding: 8px 12px 12px;
}
.adm-modal-footer-empty {
padding: 0;
height: 8px;
}
.adm-modal-footer.adm-space {
--gap-vertical: 20px;
}
.adm-modal-footer .adm-modal-button {
font-size: 18px;
line-height: 25px;
}
.adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary) {
padding-top: 0;
padding-bottom: 0;
}
.adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary)::before {
display: none;
}
.adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary):active {
opacity: 0.7;
}