浏览代码

Add small jstree style

trethaller 7 年之前
父节点
当前提交
fe21f04bc8
共有 2 个文件被更改,包括 51 次插入2 次删除
  1. 23 1
      bin/style.css
  2. 28 1
      bin/style.less

+ 23 - 1
bin/style.css

@@ -173,7 +173,6 @@ input[type=checkbox]:checked:after {
 }
 .hide-scene-tree {
   min-height: 500px;
-  zoom: 90%;
 }
 .hide-range {
   display: inline-block;
@@ -451,6 +450,29 @@ div.lm_close_tab:hover {
 .jstree-icon {
   color: #aaa !important;
 }
+.jstree.small .jstree-node {
+  min-height: 20px;
+  line-height: 20px;
+  margin-left: 10px;
+  min-width: 20px;
+}
+.jstree.small .jstree-anchor {
+  line-height: 20px;
+  height: 20px;
+}
+.jstree.small .jstree-icon {
+  width: 20px;
+  height: 20px;
+  line-height: 20px;
+}
+.jstree.small .jstree-icon:empty {
+  width: 20px;
+  height: 20px;
+  line-height: 20px;
+}
+.jstree.small .jstree-wholerow {
+  height: 20px;
+}
 /* Spectrum Color picker */
 div.sp-replacer {
   vertical-align: top;

+ 28 - 1
bin/style.less

@@ -184,7 +184,6 @@ input[type=checkbox] {
 
 .hide-scene-tree {
 	min-height: 500px;
-	zoom: 90%;
 }
 
 .hide-range {
@@ -492,6 +491,34 @@ div.lm_close_tab:hover { background-color : #555 !important; }
 	color : #aaa !important;
 }
 
+.jstree.small {
+	@size: 20px;
+
+	.jstree-node {
+		min-height: @size;
+		line-height: @size;
+		margin-left: 10px;
+		min-width: @size;
+	}
+	.jstree-anchor {
+		line-height: @size;
+		height: @size;
+	}
+	.jstree-icon {
+		width: @size;
+		height: @size;
+		line-height: @size;
+	}
+	.jstree-icon:empty {
+		width: @size;
+		height: @size;
+		line-height: @size;
+	}
+	.jstree-wholerow {
+		height: @size;
+	}
+}
+
 /* Spectrum Color picker */
 
 div.sp-replacer {