UNPKG

sci-pro

Version:
66 lines (65 loc) 1.21 kB
.loading-relative { position: relative !important; } .sci-loading-mask { margin: 0; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(255, 255, 255, 0.9); position: absolute; z-index: 19; } .sci-loading-mask .spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; } .sci-loading-mask .spinner .circular { animation: loading-rotate 2s linear infinite; width: 42px; height: 42px; } .sci-loading-mask .spinner .text { color: #409eff; } .sci-loading-mask .path { animation: loading-dash 1.5s ease-in-out infinite; stroke-dasharray: 90, 150; stroke-dashoffset: 0; stroke-width: 2; stroke: #409eff; stroke-linecap: round; } .is-fullscreen { z-index: 999; position: fixed; } .is-fullscreen .spinner .circular { width: 50px; height: 50px; } @keyframes loading-rotate { 100% { transform: rotate(360deg); } } @keyframes loading-dash { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -40px; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -120px; } }