mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-02 14:16:35 +08:00
* upgrade dependencies * 更改所有 saladcss 写法 * fix: 升级依赖导致的样式错误 * fix: build vant css * use es module when pack && webpack scope hoisting * fix: vue module version * delete unused npm script * fix: build:vant script not work * fix: webpack config format * fix: build minify vant.js * fix: captain ui relative link
59 lines
944 B
CSS
59 lines
944 B
CSS
@import './common/var.css';
|
|
|
|
.van-toast {
|
|
position: fixed;
|
|
z-index: 3001;
|
|
border-radius: 5px;
|
|
background-color: #272727;
|
|
opacity: .7;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate3d(-50%, -50%, 0);
|
|
font-size: 12px;
|
|
color: $c-white;
|
|
text-align: center;
|
|
line-height: 12px;
|
|
|
|
&__overlay {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
background: transparent;
|
|
height: 100vh;
|
|
width: 100vh;
|
|
z-index: 3000;
|
|
}
|
|
|
|
&--loading {
|
|
padding: 45px;
|
|
}
|
|
|
|
&--text, html {
|
|
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-active, .van-toast-fade-leave-active {
|
|
transition: opacity .2s;
|
|
}
|
|
.van-toast-fade-enter, .van-toast-fade-leave-to {
|
|
opacity: 0;
|
|
}
|