UNPKG

chowa

Version:

UI component library based on React

135 lines (118 loc) 2.6 kB
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ @keyframes cw-rotating { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .cw-spin { margin: 0; padding: 0; width: 16px; height: 16px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; color: #7774e7; animation: cw-rotating 1s infinite linear; vertical-align: middle; } .cw-spin-light { color: #fff; } .cw-spin-ml { margin-left: 6px; } .cw-spin-mr { margin-right: 6px; } .cw-spin-mt { margin-top: 6px; } .cw-spin-mb { margin-bottom: 6px; } .cw-spin-wrapper { position: relative; margin: 0; padding: 0; } .cw-spin-children-wrapper { margin: 0; padding: 0; } .cw-spin-filter { filter: blur(0.8px); opacity: 0.8; } .cw-spin-loader-wrapper { position: absolute; top: 0; right: 0; left: 0; bottom: 0; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; } @keyframes cw-spin-ball-1 { 50% { top: 27px; left: 27px; opacity: 0.3; } } @keyframes cw-spin-ball-2 { 50% { top: 27px; left: 45px; opacity: 0.3; } } @keyframes cw-spin-ball-3 { 50% { top: 45px; left: 27px; opacity: 0.3; } } @keyframes cw-spin-ball-4 { 50% { top: 45px; left: 45px; opacity: 0.3; } } .cw-spin-loader { position: relative; margin: 0; padding: 0; width: 96px; height: 96px; animation: cw-rotating 5.6s infinite linear; } .cw-spin-loader > span { position: absolute; display: block; border-radius: 100%; width: 24px; height: 24px; background-color: #7774e7; opacity: 0.85; } .cw-spin-loader > span:nth-child(1) { top: 0; left: 0; z-index: 1; animation: cw-spin-ball-1 1.4s infinite ease-in-out; } .cw-spin-loader > span:nth-child(2) { top: 0; left: 72px; z-index: 2; animation: cw-spin-ball-2 1.4s infinite ease-in-out; } .cw-spin-loader > span:nth-child(3) { top: 72px; left: 0; z-index: 3; animation: cw-spin-ball-3 1.4s infinite ease-in-out; } .cw-spin-loader > span:nth-child(4) { top: 72px; left: 72px; z-index: 4; animation: cw-spin-ball-4 1.4s infinite ease-in-out; } .cw-spin-loading-text { font-size: 12px; color: #616a6e; margin: 12px 0; line-height: 1; padding: 0; }