浏览代码

treeview fixes frappe/erpnext#7507 (#2653)

version-14
Faris Ansari 8 年前
committed by Rushabh Mehta
父节点
当前提交
fb3f6ecb44
共有 2 个文件被更改,包括 15 次插入4 次删除
  1. +7
    -2
      frappe/public/css/tree.css
  2. +8
    -2
      frappe/public/less/tree.less

+ 7
- 2
frappe/public/css/tree.css 查看文件

@@ -43,11 +43,12 @@ ul.tree-children {
.tree-node:last-child::after { .tree-node:last-child::after {
content: ''; content: '';
position: absolute; position: absolute;
top: 17px;
top: 16px;
left: 8px; left: 8px;
height: calc(100% - 26px); height: calc(100% - 26px);
width: 1px; width: 1px;
background: #d1d8dd; background: #d1d8dd;
z-index: -1;
} }
.tree:last-child::after, .tree:last-child::after,
.tree-node:last-child::after { .tree-node:last-child::after {
@@ -61,10 +62,11 @@ ul.tree-children {
.tree-node.opened > .tree-children > .tree-node > .tree-link::before { .tree-node.opened > .tree-children > .tree-node > .tree-link::before {
content: ''; content: '';
position: absolute; position: absolute;
width: 12px;
width: 15px;
height: 1px; height: 1px;
top: 10px; top: 10px;
left: -11px; left: -11px;
z-index: -1;
background: #d1d8dd; background: #d1d8dd;
} }
.tree.opened::before { .tree.opened::before {
@@ -72,3 +74,6 @@ ul.tree-children {
top: 33px; top: 33px;
height: calc(100% - 67px); height: calc(100% - 67px);
} }
.tree-link.active ~ .balance-area {
color: #36414C !important;
}

+ 8
- 2
frappe/public/less/tree.less 查看文件

@@ -51,11 +51,12 @@ ul.tree-children {
&.opened::before, &:last-child::after { &.opened::before, &:last-child::after {
content: ''; content: '';
position: absolute; position: absolute;
top: 17px;
top: 16px;
left: 8px; left: 8px;
height: ~"calc(100% - 26px)"; height: ~"calc(100% - 26px)";
width: 1px; width: 1px;
background: @border-color; background: @border-color;
z-index: -1;
} }


&:last-child::after { &:last-child::after {
@@ -69,10 +70,11 @@ ul.tree-children {
&.opened > .tree-children > .tree-node > .tree-link::before { &.opened > .tree-children > .tree-node > .tree-link::before {
content: ''; content: '';
position: absolute; position: absolute;
width: 12px;
width: 15px;
height: 1px; height: 1px;
top: 10px; top: 10px;
left: -11px; left: -11px;
z-index: -1;
background: @border-color; background: @border-color;
} }
} }
@@ -81,4 +83,8 @@ ul.tree-children {
left: 23px; left: 23px;
top: 33px; top: 33px;
height: ~"calc(100% - 67px)"; height: ~"calc(100% - 67px)";
}

.tree-link.active ~ .balance-area {
color: @text-color !important;
} }

正在加载...
取消
保存