chowa
Version:
UI component library based on React
195 lines (166 loc) • 3.88 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.
*/
@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-tree {
margin: 0;
padding: 12px 4px;
box-sizing: border-box;
font-size: 14px; }
.cw-tree-node-list {
list-style: none;
margin: 0;
padding: 0; }
.cw-tree-child-node {
margin: 0;
padding: 0;
box-sizing: border-box;
min-height: 22px; }
.cw-tree-child-node .cw-tree-node-list {
padding-left: 22px; }
.cw-tree-node-wrapper {
margin: 1px 0;
padding: 0 0 0 22px;
box-sizing: border-box;
line-height: 22px;
display: flex;
flex-direction: row;
position: relative; }
.cw-tree-node-drop-self:before {
position: absolute;
content: '';
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 2px dashed #7774e7;
border-radius: 3px;
box-sizing: border-box; }
.cw-tree-node-drop-bottom:before {
position: absolute;
content: '';
left: 0;
right: 0;
bottom: 0;
border-bottom: 2px dashed #7774e7;
box-sizing: border-box; }
.cw-tree-node-drop-top:before {
position: absolute;
content: '';
left: 0;
right: 0;
top: 0;
border-bottom: 2px dashed #7774e7;
box-sizing: border-box; }
.cw-tree-checkbox {
line-height: 22px;
height: 22px;
margin-right: 4px; }
.cw-tree-checkbox .cw-checkbox {
margin-top: 3px; }
.cw-tree-fetching,
.cw-tree-arrow {
position: absolute;
top: 50%;
left: 3px;
z-index: 2;
width: 16px;
height: 16px;
line-height: 16px;
display: inline-block;
margin: -8px 0 0 0;
padding: 0;
box-sizing: border-box;
text-align: center;
transition: all 0.2s ease-in-out; }
.cw-tree-arrow {
cursor: pointer;
color: #888da8; }
.cw-tree-arrow:hover {
color: #616a6e; }
.cw-tree-arrow-active {
transform: rotate(90deg); }
.cw-tree-title {
margin: 0;
padding: 0 6px;
border-radius: 3px;
box-sizing: border-box;
color: #616a6e;
transition: all 0.2s ease-in-out;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
.cw-tree-custom-icon {
margin: 0 4px 0 0;
padding: 0;
box-sizing: border-box; }
.cw-tree-selectable {
cursor: pointer; }
.cw-tree-selectable:not(.cw-tree-selected):not(.cw-tree-disabled):hover {
background-color: #f7f6fe; }
.cw-tree-disabled {
cursor: not-allowed;
color: #888da8; }
.cw-tree-selected {
background-color: #7774e7;
color: #fff; }
.cw-tree-disabled {
color: #7f7e7e;
cursor: not-allowed; }
.cw-tree-block-node .cw-tree-title {
flex: auto; }
.cw-tree-expand-wrapper {
margin: 0;
padding: 0;
box-sizing: border-box;
overflow: hidden; }
.cw-tree-with-line .cw-tree-node-list {
position: relative; }
.cw-tree-with-line .cw-tree-node-list:before {
content: '';
position: absolute;
border-left: 1px dashed #e6ecf5;
top: 0;
bottom: 11px;
left: 11px;
box-sizing: border-box;
z-index: 1; }
.cw-tree-with-line .cw-tree-child-node .cw-tree-node-list:before {
left: 33px; }
.cw-tree-with-line .cw-tree-child-node {
position: relative; }
.cw-tree-with-line .cw-tree-child-node:after {
content: '';
position: absolute;
width: 11px;
top: 11px;
left: 11px;
bottom: 0;
border-top: 1px dashed #e6ecf5;
z-index: 1;
box-sizing: border-box; }
.cw-tree-search {
margin-bottom: 8px; }
.cw-tree-hightlight {
color: #f5222d; }
.cw-tree-draggable .cw-tree-node-wrapper {
cursor: move; }