vpn.email
Version:
vpn.email client
128 lines (109 loc) • 1.69 kB
text/less
@import (once) "vars";
@import (once) "utils";
// leaf
// node
.treeview {
margin: 0;
padding: 0;
display: block;
font-size: .75rem;
ul {
margin: 0;
padding: 0;
list-style: none;
width: 100%;
font-size: inherit;
}
li {
font-size: inherit;
padding: 2px 16px;
cursor: pointer;
position: relative;
color: @gray;
vertical-align: middle;
.no-user-select;
&.active > .leaf {
font-weight: bold;
}
&.disabled {
cursor: default;
color: @grayLight;
&:hover > .leaf {
color: @grayLight;
}
}
}
li {
.input-control {
margin: 0 .3125rem 0 0;
height: 1rem;
line-height: .625rem;
min-height: 0;
.check {
line-height: 1rem;
}
}
}
ul > li > .leaf {
&:hover {
color: @dark;
}
}
.leaf {
vertical-align: middle;
display: inline-block;
color: inherit;
}
.leaf {
.icon {
width: 1rem;
height: 1rem;
text-align: center;
}
}
.node-toggle {
position: absolute;
left: 0;
top: 8px;
width: 8px;
height: 8px;
&:before {
position: absolute;
display: block;
left: 0;
top: -3px;
height: 0;
content: '';
width: 0;
border-left: 7px solid transparent;
border-top: 7px solid transparent;
border-bottom: 7px @cyan solid;
}
}
li:hover > .node-toggle {
&:before {
border-bottom-color: @darkCyan;
}
}
.node {
&.collapsed {
& > .node-toggle {
&:before {
left: -4px;
.rotate-45;
border-bottom-color: @grayLight;
}
}
&:hover {
& > .node-toggle {
&:before {
border-bottom-color: @darkCyan;
}
}
}
& > ul {
display: none;
}
}
}
}