neverland 371f6c1c7f [new feature] Toast support position prop (#244)
* [bugfix] Checkbox border render error in weixin browser

* [bugfix] TreeSelect dependency path error

* [bugfix] Swipe should clear autoplay timer when destroyed

* [bugfix] Optimize component dependency analyze when build style entry

* merge

* update yarn.lock

* update README.md

* update README.md

* update README.md

* update README.md

* update README.md

* [Doc] add more badges in README.md

* update README.md

* [bugfix] Address & Contact list style

* fix: contact test cases

* [bugfix] popup style missing when build style entry

* [bugfix] Search: onSearch event arguments missing

* [Doc] add demo pages

* update zan-doc@0.3.7

* fix: build entry error

* [Doc] add goods demo

* [bugfix] button primary background color

* [Doc] update doc detail

* [new feature] Coupon add 'showExchangeBar' prop && add empty style

* [new feature] Toast support `position` prop

* [new feature] Tabbar add 'info' prop
2017-10-24 22:41:06 -05:00

71 lines
1.0 KiB
CSS

@import './common/var.css';
.van-toast {
position: fixed;
top: 50%;
left: 50%;
display: flex;
color: $white;
z-index: 3001;
font-size: 12px;
line-height: 1.2;
border-radius: 5px;
align-items: center;
justify-content: center;
flex-direction: column;
box-sizing: border-box;
transform: translate3d(-50%, -50%, 0);
background-color: rgba(39, 39, 39, .7);
&-wrapper {
transition: opacity .2s;
}
&__overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 3000;
background: transparent;
}
&--text {
padding: 12px;
min-width: 220px;
}
&--default {
width: 120px;
min-height: 120px;
padding: 15px;
.van-toast__icon {
font-size: 50px;
}
.van-loading {
margin: 10px 0 5px;
}
.van-toast__text {
font-size: 14px;
padding-top: 10px;
}
}
&--top {
top: 50px;
}
&--bottom {
top: auto;
bottom: 50px;
}
}
.van-toast-fade-enter, .van-toast-fade-leave-to {
opacity: 0;
}