Asset: style and cleanup listing
Font pillar aliases for asset icons
This commit is contained in:
@@ -66,10 +66,9 @@ function containerResizeY(window_height){
|
|||||||
|
|
||||||
var project_container = document.getElementById('project-container');
|
var project_container = document.getElementById('project-container');
|
||||||
var container_offset = project_container.offsetTop;
|
var container_offset = project_container.offsetTop;
|
||||||
var nav_header_height = 40;
|
|
||||||
var container_height = window_height - container_offset.top;
|
var container_height = window_height - container_offset.top;
|
||||||
var container_height_wheader = window_height - container_offset.top - nav_header_height;
|
var container_height_wheader = window_height - container_offset;
|
||||||
var window_height_minus_nav = window_height - nav_header_height - 1; // 1 is border width
|
var window_height_minus_nav = window_height - container_offset;
|
||||||
|
|
||||||
if ($(window).width() > 768) {
|
if ($(window).width() > 768) {
|
||||||
$('#project-container').css(
|
$('#project-container').css(
|
||||||
@@ -77,13 +76,14 @@ function containerResizeY(window_height){
|
|||||||
'height': window_height_minus_nav + 'px'}
|
'height': window_height_minus_nav + 'px'}
|
||||||
);
|
);
|
||||||
|
|
||||||
$('#project_nav-container, #project_tree, .project_split').css(
|
$('#project_nav-container, #project_tree').css(
|
||||||
{'max-height': (window_height_minus_nav) + 'px',
|
{'max-height': (window_height_minus_nav) + 'px',
|
||||||
'height': (window_height_minus_nav) + 'px'}
|
'height': (window_height_minus_nav) + 'px'}
|
||||||
);
|
);
|
||||||
|
|
||||||
if (container_height > parseInt($('#project-container').css("min-height"))) {
|
if (container_height > parseInt($('#project-container').css("min-height"))) {
|
||||||
if (typeof projectTree !== "undefined"){
|
if (typeof projectTree !== "undefined"){
|
||||||
|
|
||||||
$(projectTree).css(
|
$(projectTree).css(
|
||||||
{'max-height': container_height_wheader + 'px',
|
{'max-height': container_height_wheader + 'px',
|
||||||
'height': container_height_wheader + 'px'}
|
'height': container_height_wheader + 'px'}
|
||||||
|
@@ -24,6 +24,7 @@ body.blog
|
|||||||
flex-direction: row
|
flex-direction: row
|
||||||
min-height: 300px
|
min-height: 300px
|
||||||
position: relative
|
position: relative
|
||||||
|
overflow-y: auto
|
||||||
z-index: $z-index-base
|
z-index: $z-index-base
|
||||||
|
|
||||||
+media-xs
|
+media-xs
|
||||||
@@ -216,9 +217,6 @@ ul.project-edit-tools
|
|||||||
color: $primary
|
color: $primary
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
|
|
||||||
i
|
|
||||||
padding-right: 10px
|
|
||||||
|
|
||||||
/* Icons per asset type. */
|
/* Icons per asset type. */
|
||||||
i
|
i
|
||||||
&.icon-group:after
|
&.icon-group:after
|
||||||
@@ -520,11 +518,11 @@ section.node-preview
|
|||||||
align-items: center
|
align-items: center
|
||||||
background-color: black
|
background-color: black
|
||||||
color: $color-text-light-primary
|
color: $color-text-light-primary
|
||||||
display: flex
|
// display: flex
|
||||||
justify-content: center
|
justify-content: center
|
||||||
max-height: 500px
|
max-height: 500px
|
||||||
min-height: 200px
|
// min-height: 200px
|
||||||
overflow: hidden
|
// overflow: hidden
|
||||||
|
|
||||||
iframe
|
iframe
|
||||||
width: 100%
|
width: 100%
|
||||||
@@ -545,6 +543,8 @@ section.node-preview
|
|||||||
|
|
||||||
&.image
|
&.image
|
||||||
cursor: zoom-in
|
cursor: zoom-in
|
||||||
|
display: flex
|
||||||
|
overflow: hidden
|
||||||
|
|
||||||
&.video
|
&.video
|
||||||
background-color: black
|
background-color: black
|
||||||
@@ -671,26 +671,16 @@ section.node-details-container
|
|||||||
+node-details-description
|
+node-details-description
|
||||||
|
|
||||||
.node-details-meta
|
.node-details-meta
|
||||||
background-color: $color-background-light
|
|
||||||
border-bottom: thin solid $color-background
|
|
||||||
display: flex
|
|
||||||
flex-direction: column
|
|
||||||
font-weight: lighter
|
|
||||||
padding: 10px 20px
|
|
||||||
|
|
||||||
> ul
|
> ul
|
||||||
align-items: center
|
align-items: center
|
||||||
display: flex
|
display: flex
|
||||||
list-style-type: none
|
|
||||||
margin: 0
|
|
||||||
padding: 0
|
|
||||||
|
|
||||||
> li
|
> li
|
||||||
align-items: baseline
|
align-items: baseline
|
||||||
color: $color-text-dark-secondary
|
color: $color-text-dark-secondary
|
||||||
display: flex
|
display: flex
|
||||||
padding-left: 10px
|
padding-left: 5px
|
||||||
margin-left: 10px
|
margin-left: 5px
|
||||||
|
|
||||||
&:first-child
|
&:first-child
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
@@ -765,33 +755,19 @@ section.node-details-container
|
|||||||
color: $color-text-dark
|
color: $color-text-dark
|
||||||
|
|
||||||
.node-details-license
|
.node-details-license
|
||||||
align-items: center
|
color: $color-text-dark-secondary
|
||||||
border-bottom: thin solid $color-background
|
|
||||||
color: $color-text-dark
|
|
||||||
display: flex
|
|
||||||
padding: 5px 20px
|
|
||||||
font-size: $font-size-sm
|
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
color: $color-text-dark
|
color: $primary
|
||||||
|
|
||||||
span.type
|
|
||||||
i
|
i
|
||||||
color: $color-text-dark-primary
|
|
||||||
font-size: 1.2rem
|
font-size: 1.2rem
|
||||||
margin-left: -5px
|
margin-left: -15px
|
||||||
padding-right: 10px
|
|
||||||
|
|
||||||
&:after
|
&:after
|
||||||
top: 2px
|
|
||||||
left: -22px
|
left: -22px
|
||||||
position: relative
|
position: relative
|
||||||
&:before
|
top: 1px
|
||||||
top: 2px
|
|
||||||
position: relative
|
|
||||||
|
|
||||||
span
|
|
||||||
text-transform: uppercase
|
|
||||||
|
|
||||||
section.node-details-container
|
section.node-details-container
|
||||||
&.storage
|
&.storage
|
||||||
|
@@ -29,21 +29,11 @@
|
|||||||
.card-body
|
.card-body
|
||||||
@extend .px-0
|
@extend .px-0
|
||||||
|
|
||||||
.card-stretch
|
|
||||||
.card-body
|
|
||||||
@extend .d-flex
|
|
||||||
@extend .flex-column
|
|
||||||
|
|
||||||
.card-text
|
|
||||||
@extend .mt-auto
|
|
||||||
|
|
||||||
.card-image-fade
|
.card-image-fade
|
||||||
.card-img-top
|
|
||||||
opacity: .9
|
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
.card-img-top
|
.card-img-top
|
||||||
opacity: 1
|
opacity: .9
|
||||||
|
|
||||||
|
|
||||||
.card.asset
|
.card.asset
|
||||||
@@ -71,14 +61,22 @@
|
|||||||
background-size: cover
|
background-size: cover
|
||||||
background-position: center
|
background-position: center
|
||||||
|
|
||||||
|
|
||||||
.progress
|
.progress
|
||||||
height: 4px
|
height: 4px
|
||||||
position: absolute
|
position: absolute
|
||||||
top: -4px
|
top: -4px
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
&.group
|
.card-img-top
|
||||||
|
&.card-icon
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: center
|
||||||
|
font-size: 2em
|
||||||
|
|
||||||
|
i
|
||||||
|
opacity: .2
|
||||||
|
|
||||||
.card-label
|
.card-label
|
||||||
background-color: rgba($black, .5)
|
background-color: rgba($black, .5)
|
||||||
|
@@ -39,12 +39,10 @@ $pillar-font-path: "../font" !default
|
|||||||
display: inline-block
|
display: inline-block
|
||||||
text-decoration: inherit
|
text-decoration: inherit
|
||||||
width: 1em
|
width: 1em
|
||||||
margin-right: .2em
|
|
||||||
text-align: center
|
text-align: center
|
||||||
font-variant: normal
|
font-variant: normal
|
||||||
text-transform: none
|
text-transform: none
|
||||||
line-height: 1em
|
line-height: 1em
|
||||||
margin-left: .2em
|
|
||||||
-webkit-font-smoothing: antialiased
|
-webkit-font-smoothing: antialiased
|
||||||
-moz-osx-font-smoothing: grayscale
|
-moz-osx-font-smoothing: grayscale
|
||||||
position: relative
|
position: relative
|
||||||
@@ -55,10 +53,28 @@ $pillar-font-path: "../font" !default
|
|||||||
.pi-svnman:before
|
.pi-svnman:before
|
||||||
content: '\f1c0'
|
content: '\f1c0'
|
||||||
|
|
||||||
|
/* Assets */
|
||||||
|
.pi-group
|
||||||
|
@extend .pi-folder
|
||||||
|
.pi-video
|
||||||
|
@extend .pi-film-thick
|
||||||
|
.pi-file
|
||||||
|
@extend .pi-file-archive
|
||||||
|
.pi-asset
|
||||||
|
@extend .pi-file-archive
|
||||||
|
.pi-group_texture
|
||||||
|
@extend .pi-folder-texture
|
||||||
|
.pi-post
|
||||||
|
@extend .pi-newspaper
|
||||||
|
.pi-page
|
||||||
|
@extend .pi-document
|
||||||
|
|
||||||
|
/* License */
|
||||||
.pi-license-cc-zero:before
|
.pi-license-cc-zero:before
|
||||||
content: '\e85a'
|
content: '\e85a'
|
||||||
.pi-license-cc-sa:before
|
.pi-license-cc-sa:before
|
||||||
content: '\e858'
|
content: '\e858'
|
||||||
|
top: 1px
|
||||||
.pi-license-cc-nd:before
|
.pi-license-cc-nd:before
|
||||||
content: '\e859'
|
content: '\e859'
|
||||||
.pi-license-cc-nc:before
|
.pi-license-cc-nc:before
|
||||||
|
@@ -14,7 +14,7 @@ li(class="button-{{ node_type['name'] }}")
|
|||||||
data-node-type-name="{{ node_type['name'] }}",
|
data-node-type-name="{{ node_type['name'] }}",
|
||||||
data-toggle="tooltip",
|
data-toggle="tooltip",
|
||||||
data-placement="left")
|
data-placement="left")
|
||||||
i.pi(class="icon-{{ node_type['name'] }}")
|
i.pi(class="pi-{{ node_type['name'] }}")
|
||||||
| {% if node_type_name == 'group_texture' %}
|
| {% if node_type_name == 'group_texture' %}
|
||||||
| Texture Folder
|
| Texture Folder
|
||||||
| {% elif node_type_name == 'group_hdri' %}
|
| {% elif node_type_name == 'group_hdri' %}
|
||||||
|
@@ -4,15 +4,27 @@ include ../mixins/components
|
|||||||
|
|
||||||
| {% set node_type = asset.properties.content_type if asset.properties.content_type else asset.node_type %}
|
| {% set node_type = asset.properties.content_type if asset.properties.content_type else asset.node_type %}
|
||||||
|
|
||||||
+list-asset(
|
a.card.asset.card-image-fade.pr-0.mx-0.mb-2(
|
||||||
'{{ asset.name }}',
|
class="js-item-open {% if asset.permissions.world %}free{% endif %}",
|
||||||
'{{ url_for_node(node=asset) }}',
|
|
||||||
"{% if asset.picture %}{{ asset.picture.thumbnail('m', api=api) }}{% endif %}",
|
|
||||||
"{{ node_type | undertitle }}",
|
|
||||||
"{{ asset._created | pretty_date }}")(
|
|
||||||
class="js-item-open pr-0 mx-0 mb-2 {% if asset.permissions.world %}free{% endif %}",
|
|
||||||
data-node_id="{{ asset._id }}",
|
data-node_id="{{ asset._id }}",
|
||||||
title="{{ asset.name }}")
|
title="{{ asset.name }}",
|
||||||
|
href='{{ url_for_node(node=asset) }}')
|
||||||
|
.embed-responsive.embed-responsive-16by9
|
||||||
|
| {% if asset.picture %}
|
||||||
|
.card-img-top.embed-responsive-item(style="background-image: url({{ asset.picture.thumbnail('m', api=api) }})")
|
||||||
|
| {% else %}
|
||||||
|
.card-img-top.card-icon.embed-responsive-item
|
||||||
|
i(class="pi-{{ node_type }}")
|
||||||
|
| {% endif %}
|
||||||
|
|
||||||
|
.card-body.py-2.d-flex.flex-column
|
||||||
|
.card-title.mb-1.font-weight-bold
|
||||||
|
| {{ asset.name }}
|
||||||
|
|
||||||
|
ul.card-text.list-unstyled.d-flex.text-black-50.mt-auto
|
||||||
|
li.pr-2 {{ node_type | undertitle }}
|
||||||
|
li {{ asset._created | pretty_date }}
|
||||||
|
|
||||||
|
|
||||||
| {% if asset.properties.content_type == 'video' %}
|
| {% if asset.properties.content_type == 'video' %}
|
||||||
|
|
||||||
|
@@ -68,25 +68,6 @@ mixin card()
|
|||||||
p No card content defined.
|
p No card content defined.
|
||||||
|
|
||||||
mixin list-asset(name, url, image, type, date)
|
mixin list-asset(name, url, image, type, date)
|
||||||
a(href=url).card.asset.card-stretch.card-image-fade&attributes(attributes)
|
|
||||||
if image
|
|
||||||
.embed-responsive.embed-responsive-16by9
|
|
||||||
.card-img-top.embed-responsive-item(style="background-image: url(" + image + ")")
|
|
||||||
else
|
|
||||||
.card-img-top
|
|
||||||
.card-icon
|
|
||||||
i.pi-blender
|
|
||||||
|
|
||||||
.card-body.py-2
|
|
||||||
if name
|
|
||||||
.card-title.mb-1.font-weight-bold
|
|
||||||
=name
|
|
||||||
|
|
||||||
if block
|
if block
|
||||||
block
|
block
|
||||||
|
|
||||||
ul.card-text.list-unstyled.d-flex.text-black-50
|
|
||||||
if type
|
|
||||||
li.pr-2=type
|
|
||||||
if date
|
|
||||||
li=date
|
|
||||||
|
@@ -26,24 +26,20 @@
|
|||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
|
|
||||||
| {# LICENSE #}
|
| {# DETAILS #}
|
||||||
section
|
section.node-details-meta.px-4.py-2
|
||||||
|
ul.list-unstyled.m-0
|
||||||
| {% if node.properties.license_type %}
|
| {% if node.properties.license_type %}
|
||||||
|
li
|
||||||
a.node-details-license(
|
a.node-details-license(
|
||||||
href="https://creativecommons.org/licenses/",
|
href="https://creativecommons.org/licenses/",
|
||||||
target="_blank")
|
target="_blank",
|
||||||
span.type
|
title="{{ node.properties.license_type }} {% if node.properties.license_notes %}{{ node.properties.license_notes }}{% endif %}",
|
||||||
|
data-toggle="tooltip",
|
||||||
|
data-placement="top")
|
||||||
i(class="pi-license-{{ node.properties.license_type }}")
|
i(class="pi-license-{{ node.properties.license_type }}")
|
||||||
| License <span>{{ node.properties.license_type }}</span>
|
|
||||||
| {% if node.properties.license_notes %}
|
|
||||||
| — {{ node.properties.license_notes }}
|
|
||||||
| {% endif %}
|
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
|
|
||||||
| {# DETAILS #}
|
|
||||||
section.node-details-meta
|
|
||||||
ul
|
|
||||||
| {% if node.has_method('PUT') and (node.properties.status != 'published') %}
|
| {% if node.has_method('PUT') and (node.properties.status != 'published') %}
|
||||||
li(class="status-{{ node.properties.status }}")
|
li(class="status-{{ node.properties.status }}")
|
||||||
| {{ node.properties.status | undertitle }}
|
| {{ node.properties.status | undertitle }}
|
||||||
@@ -63,6 +59,8 @@
|
|||||||
| Shared
|
| Shared
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
li.left-side
|
li.left-side
|
||||||
|
|
||||||
| {% if node.file %}
|
| {% if node.file %}
|
||||||
|
@@ -4,7 +4,8 @@ include ../mixins/components
|
|||||||
| {% block body %}
|
| {% block body %}
|
||||||
section.node-preview.project
|
section.node-preview.project
|
||||||
| {% if header_video_file %}
|
| {% if header_video_file %}
|
||||||
video#videoplayer.video-js.vjs-fluid(
|
.embed-responsive.embed-responsive-16by9
|
||||||
|
video#videoplayer.video-js.vjs-fluid.embed-responsive-item(
|
||||||
controls,
|
controls,
|
||||||
data-setup="{}",
|
data-setup="{}",
|
||||||
preload="auto",
|
preload="auto",
|
||||||
|
Reference in New Issue
Block a user