UNPKG

@insaic/neon

Version:

A Mobile UI Components built on Vue

228 lines (224 loc) 5.42 kB
.sq-picker { text-align: center; background-color: #fff; position: relative; } .sq-picker-header { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; min-height: 48px; line-height: 48px; position: relative; } .sq-picker-header::before { content: " "; position: absolute; left: 0; right: 0; height: 1px; border: 0 solid #e5e5e5; color: #e5e5e5; background-color: #e5e5e5; -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleY(0.5); -ms-transform: scaleY(0.5); transform: scaleY(0.5); z-index: 0; bottom: 0; border-bottom: 1px; } .sq-picker-header :nth-child(1) { width: 80px; -webkit-box-flex: 0; -webkit-flex: 0 0 80px; -ms-flex: 0 0 80px; flex: 0 0 80px; color: #4A90E2; font-size: 16px; } .sq-picker-header :nth-child(2) { -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; } .sq-picker-header :nth-child(3) { width: 80px; -webkit-box-flex: 0; -webkit-flex: 0 0 80px; -ms-flex: 0 0 80px; flex: 0 0 80px; color: #4A90E2; font-size: 16px; } .sq-picker-body { position: relative; } .sq-picker-body-mask { position: absolute !important; z-index: 10; width: 100%; pointer-events: none; -webkit-transform: translateZ(0); transform: translateZ(0); } .sq-picker-body-mask.top { top: 0; background: -webkit-gradient(linear, left bottom, left top, from(rgba(255, 255, 255, 0.6)), to(rgba(255, 255, 255, 0.95))); position: relative; } .sq-picker-body-mask.top::after { content: ''; position: absolute; left: 0; bottom: 0; right: 0; height: 1px; border-bottom: 1px solid #E5E5E5; color: #E5E5E5; -webkit-transform-origin: 0 100%; -ms-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: scaleY(0.5); -ms-transform: scaleY(0.5); transform: scaleY(0.5); } .sq-picker-body-mask.bottom { bottom: 0; background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.6)), to(rgba(255, 255, 255, 0.95))); position: relative; } .sq-picker-body-mask.bottom::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 1px; border-bottom: 1px solid #E5E5E5; color: #E5E5E5; -webkit-transform-origin: 0 100%; -ms-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: scaleY(0.5); -ms-transform: scaleY(0.5); transform: scaleY(0.5); } .sq-picker-body-wrapper { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } .sq-picker-loading-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; z-index: 11; } .sq-picker-loading-icon { -webkit-box-sizing: border-box; box-sizing: border-box; width: 1em; height: 1em; font-size: 36px; border: 3px solid transparent; border-top-color: #4A90E2; border-left-color: #4A90E2; border-bottom-color: #4A90E2; border-radius: 50%; -webkit-animation: quan .8s infinite linear; animation: quan .8s infinite linear; } .sq-picker-item { -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; -webkit-flex-basis: 1e-9px; -ms-flex-preferred-size: 1e-9px; flex-basis: 1e-9px; width: 1%; position: relative; overflow: hidden; } .sq-picker-item-wrapper { position: absolute; top: 0; left: 0; width: 100%; font-size: 16px; margin: 0; padding: 0; } .sq-picker-item-row { margin: 0; padding: 0; overflow: hidden; -o-text-overflow: ellipsis; text-overflow: ellipsis; white-space: nowrap; } @charset "UTF-8"; /*依赖 base 里的动画 */ .sq-popup-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 1010; } .sq-popup-content { position: fixed; background-color: #fff; z-index: 1011; } .sq-popup-content.sq-popup-top { left: 0; right: 0; top: 0; } .sq-popup-content.sq-popup-bottom { left: 0; right: 0; bottom: 0; } .sq-popup-content.sq-popup-left { top: 0; left: 0; width: 60%; bottom: 0; } .sq-popup-content.sq-popup-right { top: 0; right: 0; width: 60%; bottom: 0; } .sq-popup-content.sq-popup-center { top: 50%; left: 50%; -webkit-transform: translate3d(-50%, -50%, 0); transform: translate3d(-50%, -50%, 0); }