ten-design-vue
Version:
ten-vue
104 lines (93 loc) • 1.98 kB
text/less
/* dependencies icon,checkbox */
@import "../vars.less";
.ten-tree {
background: #fff;
.ten-tree-node {
&__content {
display: flex;
position: relative;
align-items: center;
line-height: 40px;
padding-left: 28px;
background: #fff;
cursor: pointer;
&:hover, &--selected:not([class*='showcheckbox']):not([class*='parentselected']) {
background: @primary-color-ligher-7;
}
&--disabled {
color: @disabled-color;
}
&::after {
content: '';
display: none;
position: absolute;
left: 0;
width: 100%;
height: 4px;
background: @primary-color-ligher-6;
}
// drag
&--dragpos {
&-center {
background-color: @primary-color-ligher-6;
}
&-top {
&::after {
display: block;
top: -2px;
}
}
&-bottom {
&::after {
display: block;
bottom: -2px;
}
}
}
}
&__content--disabled .ten-tree-node__expand {
color: @disabled-color;
}
&__expand {
position: absolute;
top: 8px;
left: 0;
display: inline-block;
width: 24px;
height: 24px;
color: @text-color-lighter-2;
i {
position: relative;
top: 5px;
left: 5px;
display: block;
width: 14px;
height: 14px;
font-size: 14px;
}
.ten-icon--carret_right {
transition: transform 0.2s;
}
&--expanded .ten-icon--carret_right {
transform: rotate(90deg);
}
&--children {
cursor: pointer;
}
}
&__checkbox {
margin-right: 8px;
}
&__children {
padding-left: 24px + 6px;
}
}
}
.ten-tree--uninitialized * {
transition: none ;
}
.ten-treeselect {
background: #fff;
max-height: 400px;
overflow-y: auto;
}