EASYAIuniappNewUI/node_modules/@dcloudio/uni-h5/style/api/modal.css
2025-02-08 18:50:38 +08:00

154 lines
2.5 KiB
CSS

uni-modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 999;
display: block;
box-sizing: border-box;
}
.uni-modal {
position: fixed;
z-index: 999;
width: 80%;
max-width: 300px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #ffffff;
text-align: center;
border-radius: 3px;
overflow: hidden;
}
.uni-modal * {
box-sizing: border-box;
}
.uni-modal__hd {
padding: 1em 1.6em 0.3em;
}
.uni-modal__title {
font-weight: 400;
font-size: 18px;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.uni-modal__bd {
padding: 1.3em 1.6em 1.3em;
min-height: 40px;
font-size: 15px;
line-height: 1.4;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
color: #999999;
max-height: 400px;
overflow-x: hidden;
overflow-y: auto;
}
.uni-modal__textarea {
resize: none;
border: 0;
margin: 0;
width: 90%;
padding: 10px;
font-size: 20px;
outline: none;
border: none;
background-color: #eee;
text-decoration: inherit;
}
.uni-modal__ft {
position: relative;
line-height: 48px;
font-size: 18px;
display: flex;
}
.uni-modal__ft:after {
content: ' ';
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1px solid #d5d5d6;
color: #d5d5d6;
transform-origin: 0 0;
transform: scaleY(0.5);
}
.uni-modal__btn {
display: block;
flex: 1;
color: #3cc51f;
text-decoration: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
position: relative;
cursor: pointer;
}
.uni-modal__btn:active {
background-color: #eeeeee;
}
.uni-modal__btn:after {
content: ' ';
position: absolute;
left: 0;
top: 0;
width: 1px;
bottom: 0;
border-left: 1px solid #d5d5d6;
color: #d5d5d6;
transform-origin: 0 0;
transform: scaleX(0.5);
}
.uni-modal__btn:first-child:after {
display: none;
}
.uni-modal__btn_default {
color: #353535;
}
.uni-modal__btn_primary {
color: #007aff;
}
@media (prefers-color-scheme: dark) {
.uni-modal {
color: var(--UI-FG-0);
background-color: var(--UI-BG-2);
}
.uni-modal__bd {
color: var(--UI-FG-1);
}
.uni-modal__btn:active {
color: rgb(170, 170, 170);
background-color: var(--UI-BG-COLOR-ACTIVE);
}
.uni-modal__ft:after,
.uni-modal__btn:after {
color: var(--UI-BORDER-COLOR-1);
border-color: var(--UI-BORDER-COLOR-1);
}
}