UNPKG

chowa

Version:

UI component library based on React

108 lines (92 loc) 2.04 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-slide-down { 0% { max-height: 0; } 100% { max-height: 666px; } } .cw-slide-down-enter { animation-name: cw-slide-down; } .cw-slide-down-leave { animation-name: cw-slide-down; animation-direction: reverse; } .cw-slide-down-appear { animation-duration: 0.2s; animation-timing-function: ease-in; transform-origin: top; overflow-y: hidden; } .cw-alert { display: flex; border-width: 1px; border-style: solid; align-items: flex-start; border-radius: 5px; margin: 0; padding: 4px 8px; overflow: hidden; box-sizing: border-box; } .cw-alert-icon { flex: none; margin: 0 6px 0 0; padding: 0; line-height: 1; font-size: 16px; box-sizing: border-box; } .cw-alert-inner { margin: 0; padding: 0; flex: auto; box-sizing: border-box; } .cw-alert-title { margin: 0; padding: 0 0 6px 0; box-sizing: border-box; line-height: 22px; color: #414a63; font-size: 14px; } .cw-alert-content { margin: 0; padding: 0; line-height: 16px; box-sizing: border-box; color: #616a6e; font-size: 12px; } .cw-alert-close { margin: 0; padding: 0; box-sizing: border-box; transition: color 0.2s ease-in; opacity: 0.65; flex: none; cursor: pointer; font-size: 12px; } .cw-alert-close:hover { opacity: 1; } .cw-alert-info { border-color: #98cdff; background-color: #f3f9ff; color: #1890ff; } .cw-alert-success { border-color: #9aec71; background-color: #f1fceb; color: #52c41a; } .cw-alert-error { border-color: #fb9ca1; background-color: #fef4f4; color: #f5222d; } .cw-alert-warning { border-color: #fdd991; background-color: #fff8eb; color: #faad14; } .cw-alert-with-title { padding: 12px 16px; } .cw-alert-icon-big { margin-right: 15px; line-height: 1.6; font-size: 24px; }