UNPKG

chowa

Version:

UI component library based on React

124 lines (112 loc) 2.58 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. */ .cw-card { padding: 0; margin: 0; box-sizing: border-box; background-color: #fff; border-radius: 3px; } .cw-card-header { display: flex; margin: 0; padding: 0 18px; box-sizing: border-box; height: 52px; line-height: 52px; flex-direction: row; align-items: center; justify-content: center; } .cw-card-title { flex: auto; font-size: 16px; color: #414a63; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cw-card-extras-wrapper { margin: 0; padding: 0; box-sizing: border-box; flex: none; font-size: 12px; color: #888da8; display: flex; flex-direction: row; align-items: center; justify-content: center; height: 22px; } .cw-card-extra { margin: 0 0 0 4px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; transition: all 0.2s ease-in-out; flex: none; line-height: 22px; cursor: pointer; } .cw-card-extra:hover { background-color: #f7f6fe; } .cw-card-extra a { color: #2d8cf0; transition: color 0.2s ease-in; cursor: pointer; text-decoration: none; } .cw-card-extra a:hover { color: #57a3f3; } .cw-card-body, .cw-card-description { margin: 0; overflow: hidden; box-sizing: border-box; padding: 18px; color: #616a6e; font-size: 14px; line-height: 1.5; } .cw-card-media .cw-card-body { padding: 0; } .cw-card-shadow { transition: all 0.2s ease-in; } .cw-card-shadow:hover { box-shadow: 0 3px 9px rgba(0, 0, 0, 0.15); } .cw-card-actions { margin: 0; padding: 8px 18px; box-sizing: border-box; height: 60px; font-size: 14px; color: #888da8; text-align: center; display: flex; flex-direction: row; list-style: none; justify-content: flex-end; } .cw-card-action { margin: 0 0 0 8px; padding: 0; flex: none; cursor: pointer; transition: all 0.2s linear; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 18px; } .cw-card-action:hover { background-color: #f7f6fe; } .cw-card-bordered { border: 1px solid #e6ecf5; } .cw-card-bordered .cw-card-header { border-bottom: 1px solid #e6ecf5; } .cw-card-bordered .cw-card-actions { border-top: 1px solid #e6ecf5; } @media only screen and (max-width: 640px) { .cw-card { border-radius: 0; width: 100% !important; } }