improve tree style

This commit is contained in:
afc163 2016-01-28 15:29:29 +08:00
parent 0ca97b07d3
commit f71db391e6
2 changed files with 6 additions and 21 deletions

View File

@ -11,7 +11,7 @@
font-weight: bold;
position: absolute;
top: 10px;
right: 4px;
right: 3px;
color: #666;
transition: transform .3s ease;
}
@ -38,9 +38,8 @@
}
&.drag-over {
> a[draggable] {
background-color: #316ac5;
background-color: @primary-color;
color: white;
border: 1px #316ac5 solid;
opacity: 0.8;
}
}
@ -66,7 +65,7 @@
}
a {
display: inline-block;
padding: 1px 4px;
padding: 1px 5px;
border-radius: 2px;
margin: 0;
cursor: pointer;

View File

@ -1,21 +1,7 @@
@tree-select-tree-prefix-cls: ant-tree-select-tree;
.antCheckboxFn(@checkbox-prefix-cls: ant-tree-select-tree-checkbox);
@import "../mixins/iconfont";
.antTreeSwitcherIcon() {
position: relative;
&:after {
.iconfont-size-under-12px(6px);
content: '\e611';
display: inline-block;
font-family: 'anticon';
font-weight: bold;
position: absolute;
top: 10px;
right: 4px;
color: #666;
transition: transform .3s ease;
}
}
.@{tree-select-tree-prefix-cls} {
margin: 0;
padding: 5px;
@ -28,7 +14,7 @@
outline: 0;
&.filter-node {
> a {
color: #a60000!important;
color: @error-color!important;
font-weight: bold!important;
}
}
@ -38,7 +24,7 @@
}
a {
display: inline-block;
padding: 1px 4px;
padding: 1px 5px;
border-radius: 2px;
margin: 0;
cursor: pointer;