chowa
Version:
UI component library based on React
102 lines (91 loc) • 2.17 kB
CSS
/**
* @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-upload {
margin: 0;
box-sizing: border-box;
padding: 8px 0; }
.cw-upload-drag-wrapper {
margin: 0;
padding: 32px 0;
box-sizing: border-box;
text-align: center;
border: 1px dashed #e6ecf5;
transition: all 0.2s linear;
cursor: pointer; }
.cw-upload-drag-icon {
margin: 0;
padding: 0;
box-sizing: box-sizing;
font-size: 34px;
color: #7774e7;
pointer-events: none; }
.cw-upload-drag-text {
margin: 0;
padding: 0 0 0 12px;
box-sizing: box-sizing;
font-size: 14px;
color: #616a6e;
pointer-events: none; }
.cw-upload-drag-active {
border-color: #7774e7;
background-color: #f7f6fe; }
.cw-upload-drag-disabled {
cursor: not-allowed; }
.cw-upload-drag-disabled .cw-upload-drag-icon,
.cw-upload-drag-disabled .cw-upload-drag-text {
color: #e9ecef; }
.cw-upload-file-list {
margin: 0;
padding: 8px 0;
box-sizing: border-box;
list-style: none; }
.cw-upload-file-item {
margin: 0;
padding: 8px 12px;
box-sizing: border-box;
transition: background-color 0.2s ease-in-out; }
.cw-upload-file-item:hover {
background-color: #f7f6fe; }
.cw-upload-file-item:hover .cw-upload-file-delete-btn {
opacity: 1; }
.cw-upload-file-info {
position: relative;
box-sizing: border-box;
margin: 0;
padding: 0 0 14px 0;
font-size: 14px;
color: #616a6e;
height: 22px;
line-height: 22px; }
.cw-upload-file-name {
box-sizing: border-box;
margin: 0;
padding: 0 0 0 6px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
.cw-upload-file-delete-btn {
position: absolute;
margin: 0;
padding: 0;
box-sizing: border-box;
width: 14px;
height: 14px;
line-height: 1;
text-align: center;
top: 0;
right: 0;
border: none;
background: transparent;
cursor: pointer;
outline: none;
transition: color 0.2s ease-in-out, opacity 0.2s linear;
opacity: 0; }
.cw-upload-file-delete-btn:hover {
color: #414a63; }