Files
vant/packages/vant-css/src/toast.css
2017-09-05 10:50:17 +08:00

59 lines
889 B
CSS

@import './common/var.css';
.van-toast {
position: fixed;
z-index: 3001;
border-radius: 5px;
background-color: rgb(39, 39, 39, .7);
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
font-size: 12px;
color: $white;
text-align: center;
line-height: 12px;
&-wrapper {
transition: opacity .2s;
}
&__overlay {
position: fixed;
left: 0;
top: 0;
background: transparent;
height: 100%;
width: 100%;
z-index: 3000;
}
&--loading {
padding: 45px;
}
&--text {
padding: 12px;
min-width: 200px;
}
&--default {
width: 120px;
height: 120px;
.van-toast__icon {
padding-top: 20px;
font-size: 50px;
}
.van-toast__text {
padding: 15px 0 20px;
font-size: 14px;
line-height: 1.2;
}
}
}
.van-toast-fade-enter, .van-toast-fade-leave-to {
opacity: 0;
}