Only show lock icon when we don't have a valid role
This commit is contained in:
parent
e43b0cbccf
commit
98295305fd
@ -6,7 +6,6 @@ $tree-color-highlight-background: hsl(hue($color-background-active), 40%, 50%)
|
||||
$tree-color-highlight-background-text: white
|
||||
|
||||
.jstree-default
|
||||
|
||||
/* list item */
|
||||
.jstree-node
|
||||
position: relative
|
||||
@ -23,23 +22,29 @@ $tree-color-highlight-background-text: white
|
||||
&[data-node-type="asset"],
|
||||
&[data-node-type="texture"],
|
||||
&[data-node-type="hdri"]
|
||||
.jstree-anchor
|
||||
padding-right: 20px
|
||||
&:before
|
||||
font-family: 'pillar-font'
|
||||
content: '\e84d'
|
||||
color: $color-text-dark-hint
|
||||
font-size: .8em
|
||||
padding: 0 5px
|
||||
position: absolute
|
||||
right: 5px
|
||||
|
||||
&.jstree-clicked
|
||||
&:before
|
||||
color: $tree-color-highlight-background-text !important
|
||||
&:after
|
||||
display: none
|
||||
&[is_free='true']
|
||||
.jstree-anchor
|
||||
padding-right: 20px
|
||||
padding-right: initial
|
||||
&:before
|
||||
font-family: 'pillar-font'
|
||||
content: '\e84e'
|
||||
color: $color-success
|
||||
font-size: .8em
|
||||
padding: 0 5px
|
||||
position: absolute
|
||||
right: 5px
|
||||
|
||||
&.jstree-clicked
|
||||
padding-right: 30px
|
||||
&:before
|
||||
color: $tree-color-highlight-background-text !important
|
||||
right: 15px
|
||||
display: none
|
||||
&:after
|
||||
display: none
|
||||
|
||||
&[data-node-type="page"],
|
||||
&[data-node-type="blog"]
|
||||
@ -186,6 +191,13 @@ $tree-color-highlight-background-text: white
|
||||
line-height: 26px
|
||||
left: 5px
|
||||
|
||||
&.is_subscriber .jstree-anchor
|
||||
padding-right: initial
|
||||
&:before
|
||||
display: none
|
||||
&:after
|
||||
display: none
|
||||
|
||||
.jstree-loading
|
||||
padding: 5px
|
||||
color: $color-text-light-secondary
|
||||
|
@ -568,6 +568,11 @@ script.
|
||||
}
|
||||
});
|
||||
|
||||
/* NOTE: {{ subscription }} is defined in layout.jade */
|
||||
{% if subscription in ['demo', 'subscriber', 'admin'] %}
|
||||
$(projectTree).addClass('is_subscriber');
|
||||
{% endif %}
|
||||
|
||||
| {% endblock %}
|
||||
|
||||
| {% block comment_scripts %} {% endblock%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user