You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
2.6 KiB

@select-tree-prefix-cls: ant-select-tree;
9 years ago
@import "../mixins/iconfont";
.antCheckboxFn(@checkbox-prefix-cls: ant-select-tree-checkbox);
.@{select-tree-prefix-cls} {
9 years ago
margin: 0;
padding: 8px;
9 years ago
font-size: 12px;
li {
padding: 0;
margin: 8px 0;
9 years ago
list-style: none;
white-space: nowrap;
outline: 0;
9 years ago
&.filter-node {
> a {
color: @error-color!important;
9 years ago
font-weight: bold!important;
}
}
9 years ago
ul {
margin: 0;
padding: 0 0 0 18px;
}
a {
display: inline-block;
padding: 1px 5px;
9 years ago
border-radius: 2px;
margin: 0;
cursor: pointer;
text-decoration: none;
vertical-align: top;
color: #666;
transition: all 0.3s ease;
&:hover {
background-color: tint(@primary-color, 90%);
}
&.@{select-tree-prefix-cls}-node-selected {
background-color: tint(@primary-color, 80%);
}
9 years ago
}
span {
&.@{select-tree-prefix-cls}-checkbox {
margin: 2px 4px 0 0;
9 years ago
}
&.@{select-tree-prefix-cls}-switcher,
&.@{select-tree-prefix-cls}-iconEle {
9 years ago
margin: 0;
width: 16px;
height: 16px;
line-height: 16px;
9 years ago
display: inline-block;
vertical-align: middle;
border: 0 none;
cursor: pointer;
outline: none;
}
&.@{select-tree-prefix-cls}-icon_loading {
9 years ago
&:after {
content: '\e6a1';
display: inline-block;
font-family: 'anticon';
font-weight: bold;
.animation(loadingCircle 1s infinite linear);
margin-top: 8px;
}
}
&.@{select-tree-prefix-cls}-switcher {
&.@{select-tree-prefix-cls}-roots_open,
&.@{select-tree-prefix-cls}-center_open,
&.@{select-tree-prefix-cls}-bottom_open,
&.@{select-tree-prefix-cls}-noline_open {
9 years ago
.antTreeSwitcherIcon();
}
&.@{select-tree-prefix-cls}-roots_close,
&.@{select-tree-prefix-cls}-center_close,
&.@{select-tree-prefix-cls}-bottom_close,
&.@{select-tree-prefix-cls}-noline_close {
9 years ago
.antTreeSwitcherIcon();
.ie-rotate(3);
&:after {
transform: rotate(270deg) scale(0.5);
}
}
}
}
}
&-child-tree {
display: none;
&-open {
display: block;
}
}
&-treenode-disabled {
>span,
9 years ago
>a,
>a span {
color: #ccc;
cursor: not-allowed;
9 years ago
}
}
&-icon__open {
margin-right: 2px;
vertical-align: top;
}
&-icon__close {
margin-right: 2px;
vertical-align: top;
}
}