UNPKG

@insaic/neon

Version:

A Mobile UI Components built on Vue

81 lines (79 loc) 1.78 kB
@charset "UTF-8"; /*依赖 base 里的动画*/ .sq-toast-enter-active, .sq-toast-leave-active { -webkit-transition: opacity .5s; -o-transition: opacity .5s; transition: opacity .5s; } .sq-toast-enter, .sq-toast-leave-to { opacity: 0; } .sq-toast-wrapper { z-index: 11000; } .sq-toast-mark { z-index: 9999; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: transparent; } .sq-toast-content.sq-toast-type { max-width: initial; min-width: initial; } .sq-toast-content.sq-toast-bottom { top: initial; bottom: 100px; } .sq-toast-min-width { min-width: 120px; } .sq-toast-content { z-index: 11000; max-width: 140px; position: fixed; top: 50%; left: 50%; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; color: #fff; font-size: 15px; line-height: 1.2; border-radius: 5px; word-break: break-all; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-transform: translate3d(-50%, -50%, 0); transform: translate3d(-50%, -50%, 0); background-color: rgba(0, 0, 0, 0.7); padding: 12px; text-align: center; } .sq-toast-content .sq-toast-icon { font-size: 44px; line-height: 1; } .sq-toast-content .sq-toast-icon.sq-icon-loading { font-size: 32px; } .sq-toast-icon ~ .sq-toast-text { margin-top: 12px; }