2018-11-28 21:12:48 +08:00

57 lines
1.1 KiB
Plaintext

@import '../common/style/var.less';
.van-toast {
display: flex;
color: @toast-text-color;
font-size: @toast-font-size;
line-height: @toast-line-height;
border-radius: @toast-border-radius;
word-break: break-all;
align-items: center;
flex-direction: column;
justify-content: center;
box-sizing: content-box;
background-color: @toast-background-color;
&__container {
position: fixed;
top: 50%;
left: 50%;
max-width: @toast-max-width;
// hack for avoid max-width when use left & fixed
width: fit-content;
transform: translate(-50%, -50%);
}
&--text {
padding: @toast-text-padding;
min-width: @toast-text-min-width;
}
&--icon {
width: @toast-default-width;
padding: @toast-default-padding;
min-height: @toast-default-min-height;
.van-toast__icon {
font-size: @toast-icon-size;
}
.van-toast__text {
padding-top: 5px;
}
}
&__loading {
margin: 10px 0;
}
&--top {
transform: translate(0, -30vh);
}
&--bottom {
transform: translate(0, 30vh);
}
}