UNPKG

chowa

Version:

UI component library based on React

70 lines (60 loc) 1.59 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-skeleton-loading { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } } .cw-skeleton-wrapper { margin: 0; padding: 0; box-sizing: border-box; position: relative; } .cw-skeleton { margin: 0; padding: 0; box-sizing: border-box; } .cw-skeleton-with-avatar { display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; } .cw-skeleton-with-avatar .cw-skeleton-content { flex: auto; } .cw-skeleton-avatar { width: 34px; height: 34px; padding: 0; margin: 0 16px 0 0; background: #f8f8f8; flex: none; } .cw-skeleton-avatar-circle { border-radius: 17px; } .cw-skeleton-avatar-rect { border-radius: 3px; } .cw-skeleton-content { margin: 0; padding: 0; box-sizing: border-box; display: flex; flex-direction: column; } .cw-skeleton-title, .cw-skeleton-loading-block { padding: 0; box-sizing: border-box; height: 21px; margin: 4px 0; background: #f8f8f8; } .cw-skeleton-with-animation .cw-skeleton-title, .cw-skeleton-with-animation .cw-skeleton-loading-block, .cw-skeleton-with-animation .cw-skeleton-avatar { background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2)); animation: cw-skeleton-loading 1.4s ease infinite; background-size: 600% 600%; }