仿互站小程序
This commit is contained in:
56
vant/toast/index.wxss
Normal file
56
vant/toast/index.wxss
Normal file
@@ -0,0 +1,56 @@
|
||||
@import "../area/index.wxss";
|
||||
|
||||
.van-toast {
|
||||
display: flex;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
border-radius: 4px;
|
||||
word-break: break-all;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
box-sizing: initial;
|
||||
background-color: rgba(51,51,51,.88);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.van-toast__container {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
max-width: 70%;
|
||||
width: fit-content;
|
||||
transform: translate(-50%,-50%);
|
||||
}
|
||||
|
||||
.van-toast--text {
|
||||
padding: 8px 12px;
|
||||
min-width: 96px;
|
||||
}
|
||||
|
||||
.van-toast--icon {
|
||||
width: 90px;
|
||||
padding: 15px;
|
||||
min-height: 90px;
|
||||
}
|
||||
|
||||
.van-toast--icon .van-toast__icon {
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.van-toast--icon .van-toast__text {
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.van-toast__loading {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.van-toast--top {
|
||||
transform: translateY(-30vh);
|
||||
}
|
||||
|
||||
.van-toast--bottom {
|
||||
transform: translateY(30vh);
|
||||
}
|
Reference in New Issue
Block a user