2016-08-19 09:19:06 +02:00
|
|
|
/* jsTree overrides */
|
2016-11-24 11:45:30 +01:00
|
|
|
$tree-color-text: $color-text-dark-primary
|
2018-08-31 19:32:17 +02:00
|
|
|
$tree-color-highlight: $color-primary-accent
|
2018-09-06 12:06:14 +02:00
|
|
|
$tree-color-highlight-background: $white
|
|
|
|
$tree-color-highlight-background-text: $primary
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
.jstree-default
|
2016-11-11 17:11:30 +01:00
|
|
|
/* list item */
|
|
|
|
.jstree-node
|
|
|
|
+media-xs
|
|
|
|
width: 100%
|
2017-10-25 16:01:53 +02:00
|
|
|
background-image: none !important
|
|
|
|
border: none
|
|
|
|
color: $tree-color-text
|
|
|
|
margin: 0 !important
|
|
|
|
max-width: 100% // Needed for ellipsis on long names
|
|
|
|
position: relative
|
2016-11-11 17:11:30 +01:00
|
|
|
|
2016-11-29 15:51:18 +01:00
|
|
|
&[data-node-type="asset"],
|
2016-11-29 16:01:51 +01:00
|
|
|
&[data-node-type="texture"],
|
|
|
|
&[data-node-type="hdri"]
|
2016-11-29 18:00:54 +01:00
|
|
|
.jstree-anchor
|
|
|
|
padding-right: 20px
|
2017-10-25 16:01:53 +02:00
|
|
|
|
2016-11-29 15:51:18 +01:00
|
|
|
&[is_free='true']
|
|
|
|
.jstree-anchor
|
2016-11-29 18:00:54 +01:00
|
|
|
padding-right: initial
|
2017-10-25 16:01:53 +02:00
|
|
|
|
2016-11-29 18:00:54 +01:00
|
|
|
&:after
|
2017-10-25 16:01:53 +02:00
|
|
|
color: $tree-color-highlight
|
|
|
|
content: '\e84e' !important
|
|
|
|
display: block
|
2016-11-29 15:35:12 +01:00
|
|
|
|
2016-11-24 18:15:20 +01:00
|
|
|
&[data-node-type="page"],
|
|
|
|
&[data-node-type="blog"]
|
|
|
|
color: darken($tree-color-highlight, 5%)
|
2017-10-25 16:01:53 +02:00
|
|
|
font-weight: bold
|
2016-12-01 15:57:59 +01:00
|
|
|
|
2016-11-11 17:11:30 +01:00
|
|
|
.jstree-anchor
|
2016-12-01 15:57:59 +01:00
|
|
|
padding: 5px 8px 1px 8px
|
2017-10-25 16:01:53 +02:00
|
|
|
|
2016-12-01 15:57:59 +01:00
|
|
|
&:after
|
|
|
|
top: 3px !important
|
2017-10-25 16:01:53 +02:00
|
|
|
|
2016-12-01 15:57:59 +01:00
|
|
|
.jstree-icon
|
2016-11-11 17:11:30 +01:00
|
|
|
display: none
|
|
|
|
|
|
|
|
/* Brief moment when a node is being loaded */
|
|
|
|
&.jstree-loading
|
|
|
|
padding: 0
|
|
|
|
|
|
|
|
/* Items at top level */
|
|
|
|
&.jstree-leaf
|
2016-12-01 15:57:59 +01:00
|
|
|
.jstree-icon
|
2016-11-11 17:11:30 +01:00
|
|
|
opacity: 1
|
|
|
|
width: 24px !important
|
|
|
|
|
|
|
|
&.pi-image
|
|
|
|
font-size: .85em !important
|
|
|
|
|
|
|
|
/* Open Folder */
|
|
|
|
&.jstree-open
|
|
|
|
/* Text of children for an open tree (like a folder) */
|
|
|
|
.jstree-children > .jstree-node
|
2018-09-06 12:06:14 +02:00
|
|
|
padding-left: 16px !important
|
2016-11-11 17:11:30 +01:00
|
|
|
|
|
|
|
.jstree-icon:empty
|
|
|
|
left: 20px !important
|
|
|
|
|
|
|
|
// Tweaks for specific icons
|
|
|
|
&.pi-file-archive
|
2018-09-06 12:06:14 +02:00
|
|
|
left: 25px !important
|
2016-11-11 17:11:30 +01:00
|
|
|
&.pi-folder
|
2018-09-06 12:06:14 +02:00
|
|
|
left: 20px !important
|
2016-11-11 17:11:30 +01:00
|
|
|
font-size: .9em !important
|
2018-09-06 12:06:14 +02:00
|
|
|
&.pi-splay
|
|
|
|
left: 20px !important
|
2016-11-11 17:11:30 +01:00
|
|
|
font-size: .85em !important
|
|
|
|
|
|
|
|
.jstree-anchor
|
2018-09-06 12:06:14 +02:00
|
|
|
// box-shadow: inset 1px 0 0 0 $color-background
|
2016-11-11 17:11:30 +01:00
|
|
|
|
|
|
|
/* Closed Folder */
|
2016-11-16 17:58:52 +01:00
|
|
|
// &.jstree-closed
|
2016-11-11 17:11:30 +01:00
|
|
|
|
|
|
|
&.jstree-open .jstree-icon.jstree-ocl,
|
|
|
|
&.jstree-closed .jstree-icon.jstree-ocl
|
2018-09-06 12:06:14 +02:00
|
|
|
float: left
|
|
|
|
min-width: 30px
|
|
|
|
opacity: 0
|
2016-11-11 17:11:30 +01:00
|
|
|
position: absolute
|
|
|
|
z-index: 1
|
|
|
|
|
|
|
|
/* The text of the last level item */
|
|
|
|
.jstree-anchor
|
2017-10-25 16:01:53 +02:00
|
|
|
+media-xs
|
|
|
|
padding: 0 !important
|
2018-09-06 12:06:14 +02:00
|
|
|
width: 98%
|
2017-10-25 16:01:53 +02:00
|
|
|
border: none
|
2018-09-06 12:06:14 +02:00
|
|
|
font-size: 13px
|
2016-11-11 17:11:30 +01:00
|
|
|
height: inherit
|
2018-09-06 12:06:14 +02:00
|
|
|
line-height: 24px
|
2016-11-11 17:11:30 +01:00
|
|
|
overflow: hidden
|
2017-10-25 16:01:53 +02:00
|
|
|
padding-left: 28px
|
|
|
|
padding-right: 10px
|
|
|
|
text-overflow: ellipsis
|
|
|
|
white-space: nowrap
|
|
|
|
width: 100%
|
2016-11-11 17:11:30 +01:00
|
|
|
|
2017-10-25 16:01:53 +02:00
|
|
|
// Little arrow on the right
|
|
|
|
&:after
|
|
|
|
content: '\e83a' !important
|
|
|
|
font-family: 'pillar-font'
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-highlight-background-text
|
2017-10-25 16:01:53 +02:00
|
|
|
display: none
|
|
|
|
position: absolute
|
|
|
|
right: 7px
|
|
|
|
top: 1px
|
2016-11-11 17:11:30 +01:00
|
|
|
|
2017-10-25 16:01:53 +02:00
|
|
|
// Icon, not selected
|
2016-12-01 15:57:59 +01:00
|
|
|
.jstree-icon
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-text
|
2017-10-25 16:01:53 +02:00
|
|
|
margin: 0 !important
|
2016-11-11 17:11:30 +01:00
|
|
|
|
|
|
|
/* Selected item */
|
|
|
|
&.jstree-clicked
|
|
|
|
background-color: $tree-color-highlight-background !important
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-highlight-background-text !important
|
|
|
|
font-weight: bold
|
2016-11-11 20:03:45 +01:00
|
|
|
|
2016-11-11 17:11:30 +01:00
|
|
|
&:after
|
2017-10-25 16:01:53 +02:00
|
|
|
display: block
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-highlight-background-text !important
|
2016-11-11 17:11:30 +01:00
|
|
|
|
2017-10-25 16:01:53 +02:00
|
|
|
.jstree-ocl,
|
|
|
|
.jstree-icon
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-highlight-background-text
|
2016-11-11 17:11:30 +01:00
|
|
|
|
|
|
|
/* hover an active item */
|
2017-10-25 16:01:53 +02:00
|
|
|
&.jstree-hovered
|
|
|
|
background-color: lighten($tree-color-highlight-background, 10%) !important
|
2016-11-11 17:11:30 +01:00
|
|
|
box-shadow: none
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-highlight-background-text !important
|
2017-10-25 16:01:53 +02:00
|
|
|
|
|
|
|
&.jstree-hovered .jstree-icon
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-highlight-background-text !important
|
2016-11-11 17:11:30 +01:00
|
|
|
|
|
|
|
.jstree-hovered
|
|
|
|
background-color: rgba($tree-color-highlight, .1) !important
|
|
|
|
|
|
|
|
.jstree-leaf .jstree-clicked
|
|
|
|
width: 100% !important
|
|
|
|
|
|
|
|
/* active item text + icon */
|
|
|
|
.jstree-clicked,
|
|
|
|
.jstree-clicked > .jstree-ocl
|
2016-11-11 20:03:45 +01:00
|
|
|
color: $tree-color-highlight-background-text !important
|
2016-11-11 17:11:30 +01:00
|
|
|
background-color: transparent !important
|
|
|
|
border-radius: 0
|
|
|
|
box-shadow: none
|
|
|
|
border-bottom: thin solid transparent
|
|
|
|
|
|
|
|
.jstree-ocl:before
|
|
|
|
+media-xs
|
|
|
|
font-weight: bold
|
|
|
|
font-size: 100%
|
|
|
|
top: 10%
|
|
|
|
left: 46%
|
|
|
|
|
|
|
|
.jstree-hovered,
|
|
|
|
.jstree-hovered .jstree-ocl
|
|
|
|
background-color: transparent !important
|
|
|
|
box-shadow: none
|
2016-11-11 20:03:45 +01:00
|
|
|
color: $tree-color-highlight-background-text !important
|
2016-11-11 17:11:30 +01:00
|
|
|
|
|
|
|
/* Folder that you click to collapse/expand */
|
|
|
|
.jstree-icon
|
|
|
|
background-image: none !important
|
|
|
|
position: relative
|
|
|
|
width: 20px !important
|
|
|
|
text-align: left !important
|
|
|
|
position: absolute
|
|
|
|
|
|
|
|
&:empty
|
2018-09-06 12:06:14 +02:00
|
|
|
line-height: 24px
|
|
|
|
left: 3px
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-10-25 16:01:53 +02:00
|
|
|
&.is_subscriber
|
|
|
|
.jstree-node
|
|
|
|
&[is_free='true']
|
|
|
|
.jstree-anchor
|
|
|
|
padding-right: initial
|
|
|
|
|
|
|
|
&:after
|
|
|
|
display: none !important
|
2016-11-29 18:00:54 +01:00
|
|
|
|
2016-12-01 15:57:59 +01:00
|
|
|
&.blog
|
|
|
|
.jstree-anchor
|
2017-10-25 16:01:53 +02:00
|
|
|
padding: 6px 6px 6px 12px
|
|
|
|
|
|
|
|
&:hover
|
2016-12-01 15:57:59 +01:00
|
|
|
color: $tree-color-highlight
|
|
|
|
|
2017-10-25 16:01:53 +02:00
|
|
|
&.post
|
|
|
|
border-bottom: thin solid $color-background-dark
|
2016-12-01 16:21:02 +01:00
|
|
|
|
2017-10-25 16:01:53 +02:00
|
|
|
&.jstree-clicked
|
|
|
|
&.post
|
|
|
|
background-color: transparent !important
|
|
|
|
|
|
|
|
&:after
|
|
|
|
top: 8px
|
|
|
|
color: $tree-color-highlight !important
|
|
|
|
|
|
|
|
.tree-item-info
|
|
|
|
color: $color-text
|
|
|
|
|
|
|
|
.tree-item-title
|
|
|
|
color: $tree-color-highlight
|
|
|
|
|
|
|
|
.tree-item
|
|
|
|
line-height: initial
|
|
|
|
padding-right: 10px
|
|
|
|
|
|
|
|
&-title
|
|
|
|
font-size: 1.2em
|
|
|
|
overflow: initial
|
|
|
|
text-overflow: initial
|
|
|
|
white-space: normal
|
|
|
|
|
|
|
|
&-info
|
|
|
|
color: $color-text-dark-secondary
|
|
|
|
display: block
|
|
|
|
font-size: .8em
|
|
|
|
padding: 5px
|
|
|
|
|
|
|
|
&-thumbnail
|
|
|
|
align-items: center
|
|
|
|
background-color: $color-background
|
2016-12-01 16:21:02 +01:00
|
|
|
border-radius: 3px
|
2017-10-25 16:01:53 +02:00
|
|
|
color: $color-text-dark-secondary
|
|
|
|
display: flex
|
|
|
|
float: left
|
|
|
|
height: 70px
|
|
|
|
justify-content: center
|
|
|
|
margin: 0 10px 0 -5px
|
|
|
|
width: 70px
|
|
|
|
|
|
|
|
img
|
|
|
|
height: 70px
|
|
|
|
width: 70px
|
2016-12-01 16:21:02 +01:00
|
|
|
|
|
|
|
|
2016-08-19 09:19:06 +02:00
|
|
|
.jstree-loading
|
|
|
|
padding: 5px
|
|
|
|
color: $color-text-light-secondary
|
|
|
|
|
2016-11-11 17:11:30 +01:00
|
|
|
.jstree-default-responsive
|
|
|
|
.jstree-anchor
|
|
|
|
+media-sm
|
|
|
|
font-weight: normal !important
|
|
|
|
text-shadow: none !important
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
.ps-active-y
|
|
|
|
.jstree-default .jstree-node
|
|
|
|
max-width: 97%
|
|
|
|
|
|
|
|
.jstree-default .jstree-node.jstree-closed .jstree-icon.jstree-ocl + .jstree-anchor,
|
|
|
|
.jstree-default .jstree-node.jstree-open .jstree-icon.jstree-ocl + .jstree-anchor
|
2018-09-06 12:06:14 +02:00
|
|
|
padding-left: 24px !important
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
/* hovered text */
|
|
|
|
.jstree-default .jstree-hovered,
|
|
|
|
.jstree-default .jstree-open .jstree-hovered,
|
2016-12-01 15:57:59 +01:00
|
|
|
.jstree-default .jstree-hovered .jstree-icon
|
2016-08-19 09:19:06 +02:00
|
|
|
color: $tree-color-highlight !important
|
|
|
|
|
|
|
|
|
|
|
|
a.jstree-anchor.jstree-clicked+ul li a.jstree-anchor.jstree-clicked
|
2017-10-25 16:01:53 +02:00
|
|
|
background-color: rgba($tree-color-highlight-background, .8) !important
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-highlight-background-text !important
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
a.jstree-anchor.jstree-clicked+ul li a.jstree-anchor.jstree-clicked+ul li a.jstree-anchor.jstree-clicked
|
|
|
|
background-color: rgba($tree-color-highlight-background, .8) !important
|
2018-09-06 12:06:14 +02:00
|
|
|
color: $tree-color-highlight-background-text !important
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
i.jstree-icon.jstree-ocl
|
|
|
|
color: rgba($tree-color-text, .5) !important
|
2017-10-25 16:01:53 +02:00
|
|
|
height: 26px !important
|
2016-08-19 09:19:06 +02:00
|
|
|
+media-xs
|
|
|
|
height: 40px !important
|
|
|
|
|
|
|
|
.jstree-children .jstree-open i.jstree-icon.jstree-ocl
|
|
|
|
height: 26px !important
|
|
|
|
|
|
|
|
/* /jsTree overrides */
|