123 lines
2.2 KiB
CSS
123 lines
2.2 KiB
CSS
uni-toast {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 999;
|
|
display: block;
|
|
box-sizing: border-box;
|
|
pointer-events: none;
|
|
font-size: 16px;
|
|
}
|
|
|
|
uni-toast .uni-sample-toast {
|
|
position: fixed;
|
|
z-index: 999;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
width: max-content;
|
|
max-width: 80%;
|
|
max-width: min(200px, 80%);
|
|
box-sizing: border-box;
|
|
padding: 12px 20px;
|
|
background-color: rgba(76, 76, 76, 0.95);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
uni-toast .uni-simple-toast__text {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
color: #ffffff;
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
text-align: center;
|
|
max-width: 100%;
|
|
word-break: break-word;
|
|
white-space: normal;
|
|
}
|
|
|
|
uni-toast .uni-sample-toast.uni-toast--top {
|
|
top: 12px;
|
|
top: calc(12px + env(safe-area-inset-top, 0px));
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
uni-toast .uni-sample-toast.uni-toast--bottom {
|
|
top: auto;
|
|
bottom: 12px;
|
|
bottom: calc(12px + env(safe-area-inset-bottom, 0px));
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
uni-toast .uni-mask {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
uni-toast .uni-toast {
|
|
position: fixed;
|
|
z-index: 999;
|
|
width: 140px;
|
|
height: 140px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(76, 76, 76, 0.95);
|
|
text-align: center;
|
|
border-radius: 10px;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.uni-toast * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
uni-toast .uni-toast__icon {
|
|
margin: 0;
|
|
flex-shrink: 0;
|
|
width: 36px!important;
|
|
height: 36px!important;
|
|
object-fit: contain;
|
|
vertical-align: baseline!important;
|
|
}
|
|
|
|
.uni-icon_toast {
|
|
margin: 15px 0 0;
|
|
}
|
|
|
|
.uni-icon_toast.uni-icon-success-no-circle:before {
|
|
color: #ffffff;
|
|
font-size: 55px;
|
|
}
|
|
|
|
.uni-icon_toast.uni-loading {
|
|
margin: 20px 0 0;
|
|
width: 38px;
|
|
height: 38px;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
uni-toast .uni-toast__content {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
margin: 16px 0 0;
|
|
padding: 0 8px;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
color: #ffffff;
|
|
word-break: break-word;
|
|
white-space: normal;
|
|
}
|