Files
pillar/src/styles/plugins/_jstree.sass

297 lines
6.5 KiB
Sass
Raw Normal View History

/* jsTree overrides */
2016-11-24 11:45:30 +01:00
$tree-color-text: $color-text-dark-primary
$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
.jstree-default
/* list item */
.jstree-node
+media-xs
width: 100%
background-image: none !important
border: none
color: $tree-color-text
margin: 0 !important
max-width: 100% // Needed for ellipsis on long names
position: relative
&[data-node-type="asset"],
&[data-node-type="texture"],
&[data-node-type="hdri"]
.jstree-anchor
padding-right: 20px
&[is_free='true']
.jstree-anchor
padding-right: initial
&:after
color: $tree-color-highlight
content: '\e84e' !important
display: block
2016-11-24 18:15:20 +01:00
&[data-node-type="page"],
&[data-node-type="blog"]
color: darken($tree-color-highlight, 5%)
font-weight: bold
.jstree-anchor
padding: 5px 8px 1px 8px
&:after
top: 3px !important
.jstree-icon
display: none
/* Brief moment when a node is being loaded */
&.jstree-loading
padding: 0
/* Items at top level */
&.jstree-leaf
.jstree-icon
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
.jstree-icon:empty
left: 20px !important
// Tweaks for specific icons
&.pi-file-archive
2018-09-06 12:06:14 +02:00
left: 25px !important
&.pi-folder
2018-09-06 12:06:14 +02:00
left: 20px !important
font-size: .9em !important
2018-09-06 12:06:14 +02:00
&.pi-splay
left: 20px !important
font-size: .85em !important
.jstree-anchor
2018-09-06 12:06:14 +02:00
// box-shadow: inset 1px 0 0 0 $color-background
/* Closed Folder */
2016-11-16 17:58:52 +01:00
// &.jstree-closed
&.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
position: absolute
z-index: 1
/* The text of the last level item */
.jstree-anchor
+media-xs
padding: 0 !important
2018-09-06 12:06:14 +02:00
width: 98%
border: none
2018-09-06 12:06:14 +02:00
font-size: 13px
height: inherit
2018-09-06 12:06:14 +02:00
line-height: 24px
overflow: hidden
padding-left: 28px
padding-right: 10px
text-overflow: ellipsis
white-space: nowrap
width: 100%
// 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
display: none
position: absolute
right: 7px
top: 1px
// Icon, not selected
.jstree-icon
2018-09-06 12:06:14 +02:00
color: $tree-color-text
margin: 0 !important
/* 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
&:after
display: block
2018-09-06 12:06:14 +02:00
color: $tree-color-highlight-background-text !important
.jstree-ocl,
.jstree-icon
2018-09-06 12:06:14 +02:00
color: $tree-color-highlight-background-text
/* hover an active item */
&.jstree-hovered
background-color: lighten($tree-color-highlight-background, 10%) !important
box-shadow: none
2018-09-06 12:06:14 +02:00
color: $tree-color-highlight-background-text !important
&.jstree-hovered .jstree-icon
2018-09-06 12:06:14 +02:00
color: $tree-color-highlight-background-text !important
.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
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
/* 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
&.is_subscriber
.jstree-node
&[is_free='true']
.jstree-anchor
padding-right: initial
&:after
display: none !important
&.blog
.jstree-anchor
padding: 6px 6px 6px 12px
&:hover
color: $tree-color-highlight
&.post
border-bottom: thin solid $color-background-dark
2016-12-01 16:21:02 +01: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
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
.jstree-loading
padding: 5px
color: $color-text-light-secondary
.jstree-default-responsive
.jstree-anchor
+media-sm
font-weight: normal !important
text-shadow: none !important
.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
/* hovered text */
.jstree-default .jstree-hovered,
.jstree-default .jstree-open .jstree-hovered,
.jstree-default .jstree-hovered .jstree-icon
color: $tree-color-highlight !important
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
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
i.jstree-icon.jstree-ocl
color: rgba($tree-color-text, .5) !important
height: 26px !important
+media-xs
height: 40px !important
.jstree-children .jstree-open i.jstree-icon.jstree-ocl
height: 26px !important
/* /jsTree overrides */