UNPKG

shineout

Version:

Shein 前端组件库

68 lines (67 loc) 1.37 kB
.so-spin { margin: auto; line-height: 1.5715; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-flow: column nowrap; flex-flow: column nowrap; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } .so-spin > div { margin: unset; } .so-spin-tip { margin: auto; text-align: center; padding-top: 5px; } .so-spin-container { position: relative; } .so-spin-container .so-spin-loading { position: absolute; top: 0; left: 0; z-index: 4; width: 100%; height: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .so-spin-container .so-spin-content { position: relative; } .so-spin-container .so-spin-content:after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; width: 100%; height: 100%; background: #fff; opacity: 0; -webkit-transition: all 0.3s; transition: all 0.3s; content: ''; pointer-events: none; } .so-spin-show .so-spin-content:after { opacity: 0.5; }