UI Jstree: Spacing and style adjustments.
This commit is contained in:
parent
afc8acff83
commit
f72c1fffca
@ -20,7 +20,7 @@ $tree-color-highlight-background-text: $primary
|
|||||||
&[data-node-type="texture"],
|
&[data-node-type="texture"],
|
||||||
&[data-node-type="hdri"]
|
&[data-node-type="hdri"]
|
||||||
.jstree-anchor
|
.jstree-anchor
|
||||||
padding-right: 20px
|
padding-right: 20px // Make room for the angle-right icon.
|
||||||
|
|
||||||
&[is_free='true']
|
&[is_free='true']
|
||||||
.jstree-anchor
|
.jstree-anchor
|
||||||
@ -36,7 +36,7 @@ $tree-color-highlight-background-text: $primary
|
|||||||
font-weight: bold
|
font-weight: bold
|
||||||
|
|
||||||
.jstree-anchor
|
.jstree-anchor
|
||||||
padding: 0 6px
|
padding: 0 5px
|
||||||
|
|
||||||
&:after
|
&:after
|
||||||
top: 3px !important
|
top: 3px !important
|
||||||
@ -61,35 +61,22 @@ $tree-color-highlight-background-text: $primary
|
|||||||
&.jstree-open
|
&.jstree-open
|
||||||
/* Text of children for an open tree (like a folder) */
|
/* Text of children for an open tree (like a folder) */
|
||||||
.jstree-children > .jstree-node
|
.jstree-children > .jstree-node
|
||||||
padding-left: 16px !important
|
padding-left: 25px !important
|
||||||
|
|
||||||
|
&:before
|
||||||
|
box-shadow: inset 5px 0 0 rgba($tree-color-text, .1)
|
||||||
|
content: ' '
|
||||||
|
height: 100%
|
||||||
|
width: 2px
|
||||||
|
position: absolute
|
||||||
|
left: 8px
|
||||||
|
|
||||||
.jstree-icon:empty
|
.jstree-icon:empty
|
||||||
left: 20px !important
|
left: 25px !important
|
||||||
|
|
||||||
// Tweaks for specific icons
|
|
||||||
&.pi-file-archive
|
|
||||||
left: 25px !important
|
|
||||||
&.pi-folder
|
|
||||||
left: 20px !important
|
|
||||||
font-size: .9em !important
|
|
||||||
&.pi-splay
|
|
||||||
left: 20px !important
|
|
||||||
font-size: .85em !important
|
|
||||||
|
|
||||||
.jstree-anchor
|
|
||||||
// box-shadow: inset 1px 0 0 0 $color-background
|
|
||||||
|
|
||||||
/* Closed Folder */
|
/* Closed Folder */
|
||||||
// &.jstree-closed
|
// &.jstree-closed
|
||||||
|
|
||||||
&.jstree-open .jstree-icon.jstree-ocl,
|
|
||||||
&.jstree-closed .jstree-icon.jstree-ocl
|
|
||||||
float: left
|
|
||||||
min-width: 30px
|
|
||||||
opacity: 0
|
|
||||||
position: absolute
|
|
||||||
z-index: 1
|
|
||||||
|
|
||||||
/* The text of the last level item */
|
/* The text of the last level item */
|
||||||
.jstree-anchor
|
.jstree-anchor
|
||||||
+media-xs
|
+media-xs
|
||||||
@ -98,10 +85,7 @@ $tree-color-highlight-background-text: $primary
|
|||||||
border: none
|
border: none
|
||||||
font-size: 13px
|
font-size: 13px
|
||||||
height: inherit
|
height: inherit
|
||||||
line-height: 24px
|
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
padding-left: 28px
|
|
||||||
padding-right: 10px
|
|
||||||
text-overflow: ellipsis
|
text-overflow: ellipsis
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
width: 100%
|
width: 100%
|
||||||
@ -150,9 +134,7 @@ $tree-color-highlight-background-text: $primary
|
|||||||
.jstree-clicked > .jstree-ocl
|
.jstree-clicked > .jstree-ocl
|
||||||
color: $tree-color-highlight-background-text !important
|
color: $tree-color-highlight-background-text !important
|
||||||
background-color: transparent !important
|
background-color: transparent !important
|
||||||
border-radius: 0
|
|
||||||
box-shadow: none
|
box-shadow: none
|
||||||
border-bottom: thin solid transparent
|
|
||||||
|
|
||||||
.jstree-ocl:before
|
.jstree-ocl:before
|
||||||
+media-xs
|
+media-xs
|
||||||
@ -177,7 +159,7 @@ $tree-color-highlight-background-text: $primary
|
|||||||
|
|
||||||
&:empty
|
&:empty
|
||||||
line-height: 24px
|
line-height: 24px
|
||||||
left: 3px
|
left: 1px
|
||||||
|
|
||||||
&.is_subscriber
|
&.is_subscriber
|
||||||
.jstree-node
|
.jstree-node
|
||||||
@ -204,7 +186,7 @@ $tree-color-highlight-background-text: $primary
|
|||||||
|
|
||||||
.jstree-default .jstree-node.jstree-closed .jstree-icon.jstree-ocl + .jstree-anchor,
|
.jstree-default .jstree-node.jstree-closed .jstree-icon.jstree-ocl + .jstree-anchor,
|
||||||
.jstree-default .jstree-node.jstree-open .jstree-icon.jstree-ocl + .jstree-anchor
|
.jstree-default .jstree-node.jstree-open .jstree-icon.jstree-ocl + .jstree-anchor
|
||||||
padding-left: 24px !important
|
padding-left: 25px !important
|
||||||
|
|
||||||
/* hovered text */
|
/* hovered text */
|
||||||
.jstree-default .jstree-hovered,
|
.jstree-default .jstree-hovered,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user