UNPKG

zent

Version:

一套前端设计语言和基于React的实现

161 lines (153 loc) 3.75 kB
.zent-tree { color: #333; font-size: 18px; } .zent-tree ul, .zent-tree li { list-style: none; } .zent-tree ul { padding-left: 26px; } .zent-tree .tree-node-loading-wrapper { display: inline-block; position: relative; vertical-align: middle; background-color: white; } .zent-tree .tree-node-loading-wrapper .tree-node-loading { display: inline-block; height: 16px; width: 16px; border-radius: 50%; border: 1px solid #38f } .zent-tree .tree-node-loading-wrapper .tree-node-loading:after { content: ''; display: inline-block; position: absolute; height: 10px; width: 4px; background: white; -webkit-animation: 2s linear rotate infinite; animation: 2s linear rotate infinite; -webkit-transform-origin: 10px 4px; transform-origin: 10px 4px; left: -1px; top: 6px; } @-webkit-keyframes rotate { from { -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes rotate { from { -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } .zent-tree.zent-tree-large { font-size: 20px; } .zent-tree.zent-tree-large .zent-tree-bar .switcher { line-height: 20px } .zent-tree.zent-tree-large .zent-tree-bar .switcher:after { border: 6px solid transparent; border-left: 9px solid #e5e5e5; } .zent-tree.zent-tree-small { font-size: 14px; } .zent-tree.zent-tree-small .zent-tree-bar .switcher { line-height: 12px } .zent-tree.zent-tree-small .zent-tree-bar .switcher:after { border: 4px solid transparent; border-left: 6px solid #e5e5e5; } .zent-tree-bar { position: relative; } .zent-tree-bar .switcher { position: absolute; top: 2px; left: -24px; width: 16px; height: 16px; line-height: 18px; display: inline-block; vertical-align: middle; border: 0 none; cursor: pointer; outline: none } .zent-tree-bar .switcher:after { content: ''; display: inline-block; border: 5px solid transparent; border-left: 7.5px solid #e5e5e5; color: #666; -webkit-transform: rotate(90deg); transform: rotate(90deg); -webkit-transform-origin: 23.09% 50%; transform-origin: 23.09% 50%; -webkit-transition: -webkit-transform 0.3s ease; transition: -webkit-transform 0.3s ease; transition: transform 0.3s ease; transition: transform 0.3s ease, -webkit-transform 0.3s ease; } .zent-tree-bar.off .switcher:after { -webkit-transform: rotate(0deg); transform: rotate(0deg); } .zent-tree-bar:hover .operation { opacity: 0.8; } .zent-tree-bar .zent-tree-node { display: inline-block; line-height: 1.42857143; cursor: pointer; } .zent-tree-bar .zent-tree-node .content { margin-left: -4px; padding: 0 4px; display: inline-block; border: 1px solid transparent; border-radius: 4px; background-color: transparent; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out } .zent-tree-bar .zent-tree-node .content:hover { background-color: #eaf3ff; } .zent-tree-bar .zent-tree-node .operation { display: inline-block; margin-left: 10px; opacity: 0; font-size: 0.8em; color: black; -webkit-transition: opacity 0.3s ease-in; transition: opacity 0.3s ease-in } .zent-tree-bar .zent-tree-node .operation > span.opt:not(:last-of-type) { margin-right: 8px; padding-right: 8px; border-right: 2px solid #e5e5e5; } .zent-tree-bar .zent-checkbox-wrap { margin-top: -6px; } .zent-tree-child { overflow: hidden; }