iview/src/styles/components/tree.less

63 lines
1.4 KiB
Text
Raw Normal View History

@tree-prefix-cls: ~"@{css-prefix}tree";
.@{tree-prefix-cls} {
2017-03-24 20:50:13 +08:00
ul{
2017-02-07 11:34:00 +08:00
list-style: none;
2017-03-24 20:50:13 +08:00
margin: 0;
2017-03-27 14:28:42 +08:00
padding: 0;
2017-03-24 20:50:13 +08:00
font-size: @font-size-small;
li{
list-style: none;
margin: 8px 0;
padding: 0;
white-space: nowrap;
outline: none;
2017-02-07 11:34:00 +08:00
}
2017-03-24 20:50:13 +08:00
}
li{
ul{
2017-02-07 11:34:00 +08:00
margin: 0;
padding: 0 0 0 18px;
}
2017-03-24 20:50:13 +08:00
}
&-title {
display: inline-block;
margin: 0;
padding: 0 4px;
border-radius: @btn-border-radius-small;
cursor: pointer;
vertical-align: top;
color: @text-color;
transition: all @transition-time @ease-in-out;
&:hover {
background-color: tint(@primary-color, 90%);
2017-02-07 11:34:00 +08:00
}
2017-03-24 20:50:13 +08:00
&-selected, &-selected:hover{
background-color: tint(@primary-color, 80%);
2017-02-07 15:29:53 +08:00
}
2017-03-24 20:50:13 +08:00
}
&-arrow{
cursor: pointer;
width: 12px;
text-align: center;
display: inline-block;
i {
2017-03-24 20:50:13 +08:00
transition: all @transition-time @ease-in-out;
}
&-open{
i {
transform: rotate(90deg);
2017-02-07 11:34:00 +08:00
}
}
2017-10-24 18:14:22 +08:00
//&-hidden{
// cursor: auto;
// i{
// display: none;
// }
//}
2017-03-24 20:50:13 +08:00
&-disabled{
cursor: @cursor-disabled;
2017-02-07 11:34:00 +08:00
}
}
}