Only show lock icon when we don't have a valid role
This commit is contained in:
@@ -6,7 +6,6 @@ $tree-color-highlight-background: hsl(hue($color-background-active), 40%, 50%)
|
|||||||
$tree-color-highlight-background-text: white
|
$tree-color-highlight-background-text: white
|
||||||
|
|
||||||
.jstree-default
|
.jstree-default
|
||||||
|
|
||||||
/* list item */
|
/* list item */
|
||||||
.jstree-node
|
.jstree-node
|
||||||
position: relative
|
position: relative
|
||||||
@@ -23,23 +22,29 @@ $tree-color-highlight-background-text: white
|
|||||||
&[data-node-type="asset"],
|
&[data-node-type="asset"],
|
||||||
&[data-node-type="texture"],
|
&[data-node-type="texture"],
|
||||||
&[data-node-type="hdri"]
|
&[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']
|
&[is_free='true']
|
||||||
.jstree-anchor
|
.jstree-anchor
|
||||||
padding-right: 20px
|
padding-right: initial
|
||||||
&:before
|
&:before
|
||||||
font-family: 'pillar-font'
|
display: none
|
||||||
content: '\e84e'
|
&:after
|
||||||
color: $color-success
|
display: none
|
||||||
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
|
|
||||||
|
|
||||||
&[data-node-type="page"],
|
&[data-node-type="page"],
|
||||||
&[data-node-type="blog"]
|
&[data-node-type="blog"]
|
||||||
@@ -186,6 +191,13 @@ $tree-color-highlight-background-text: white
|
|||||||
line-height: 26px
|
line-height: 26px
|
||||||
left: 5px
|
left: 5px
|
||||||
|
|
||||||
|
&.is_subscriber .jstree-anchor
|
||||||
|
padding-right: initial
|
||||||
|
&:before
|
||||||
|
display: none
|
||||||
|
&:after
|
||||||
|
display: none
|
||||||
|
|
||||||
.jstree-loading
|
.jstree-loading
|
||||||
padding: 5px
|
padding: 5px
|
||||||
color: $color-text-light-secondary
|
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 %}
|
| {% endblock %}
|
||||||
|
|
||||||
| {% block comment_scripts %} {% endblock%}
|
| {% block comment_scripts %} {% endblock%}
|
||||||
|
Reference in New Issue
Block a user