From c7dca90e10652dd88f4c784d6906086a36aa9fe7 Mon Sep 17 00:00:00 2001 From: khk Date: Wed, 13 Nov 2019 14:48:27 +0900 Subject: [PATCH] =?UTF-8?q?tree=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/components/tree.component.html | 7 +- .../src/lib/components/tree.component.scss | 96 +++++++++++++------ 2 files changed, 70 insertions(+), 33 deletions(-) diff --git a/projects/ucap-webmessenger-ui-organization/src/lib/components/tree.component.html b/projects/ucap-webmessenger-ui-organization/src/lib/components/tree.component.html index f70125d8..60f7be47 100644 --- a/projects/ucap-webmessenger-ui-organization/src/lib/components/tree.component.html +++ b/projects/ucap-webmessenger-ui-organization/src/lib/components/tree.component.html @@ -11,11 +11,13 @@ - +
  • + - {{ node.title }} + {{ node.title }}
      +
    diff --git a/projects/ucap-webmessenger-ui-organization/src/lib/components/tree.component.scss b/projects/ucap-webmessenger-ui-organization/src/lib/components/tree.component.scss index fc9e2ffb..afb8d863 100644 --- a/projects/ucap-webmessenger-ui-organization/src/lib/components/tree.component.scss +++ b/projects/ucap-webmessenger-ui-organization/src/lib/components/tree.component.scss @@ -6,56 +6,90 @@ margin-top: 0; margin-bottom: 0; list-style-type: none; - padding-left: 6px; + margin-left: 10px; } - .organization-tree-node-invisible { display: none; } } -.mat-tree-node { - min-height: 30px; - font-size: 13px; - padding-left:20px; - margin-top:4px; + +.tree-node-frame{ + li{ + .path{ + .horizontal-line{ + display:none; + } + } + } + .mat-tree-node { + min-height: 30px; + font-size: 13px; + padding-left:20px; + margin-top:4px; &:hover { background-color: #f4f4f4; border:1px solid #cccccc; border-radius:4px; box-shadow: 0 1px 4px rgba(32, 33, 36, 0.1); + } } } +ul .tree-node-frame li .path > .horizontal-line{ + display:inline-block; +} + +.boxnone{ + position:relative; + .vertical-line{ + background: rgba(189,189,189,.4); + bottom: 6px; + display: block; + position: absolute; + top: 0px; + width: 2px; + } + .mat-nested-tree-node:last-child{ + padding-bottom:10px; + } +} .path { - //border: 1px solid #dddddd; - padding: 4px; - margin-top: 10px; - //box-shadow: 0 1px 4px rgba(32, 33, 36, 0.1); + padding: 6px 4px; + ul{ li:last-chlid{ border-bottom:1px solid #dddddd; } } -} -.mat-icon-button{ - padding: 0; - min-width: 0; - width: 20px; - height: 20px; - flex-shrink: 0; - line-height: 20px; - margin-right:10px; - .mat-icon-rtl-mirror{ - border: 1px solid #dddddd; - padding: 2px; - font-size: 14px; - min-width: 14px; - min-height: 14px; - line-height: 14px; - width:20px; - height:20px; - box-shadow: 0 2px 1px rgba(48, 48, 48, 0.2); - border-radius: 50%; + .horizontal-line{ + width:10px; + height:1px; + background-color: #dddddd; + display:inline-block; + vertical-align: middle; + margin-left:-10px; + } + .mat-icon-button{ + padding: 0; + min-width: 0; + width: 20px; + height: 20px; + flex-shrink: 0; + line-height: 20px; + .mat-icon-rtl-mirror{ + border: 1px solid #dddddd; + padding: 2px; + font-size: 14px; + min-width: 14px; + min-height: 14px; + line-height: 14px; + width:20px; + height:20px; + box-shadow: 0 2px 1px rgba(48, 48, 48, 0.2); + border-radius: 50%; + } + } + .dept-name{ + padding-left:10px; } }