From 1680475d9200415af4d7551358fb7a0fcf6feb54 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Mon, 12 Sep 2016 18:57:57 +0200 Subject: [PATCH] Expose License notes on Textures, if any --- src/styles/_project.sass | 19 ++++++++++++++----- .../nodes/custom/texture/view_embed.jade | 12 ++++-------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/styles/_project.sass b/src/styles/_project.sass index 87860cd6..96bdd2d5 100644 --- a/src/styles/_project.sass +++ b/src/styles/_project.sass @@ -780,18 +780,27 @@ $node-preview-max-height-lg: 700px float: left text-transform: capitalize +project-node-title - text-shadow: 1px 1px 0 rgba(white, .5) position: relative z-index: 1 .texture-license - float: right - padding: 20px 20px 0 0 - i - font-size: 1.3em position: relative z-index: 1 + float: right + padding: 25px 20px 0 0 + cursor: default + + i + font-size: 1.3em + &.pi-license-cc-0 + top: -1px + + span + position: relative + bottom: 2px + margin-right: 10px + color: $color-text-dark-secondary .texture-backdrop background: diff --git a/src/templates/nodes/custom/texture/view_embed.jade b/src/templates/nodes/custom/texture/view_embed.jade index ba9e08f8..d5dab6e1 100644 --- a/src/templates/nodes/custom/texture/view_embed.jade +++ b/src/templates/nodes/custom/texture/view_embed.jade @@ -8,15 +8,11 @@ | {% if node.properties.license_type %} | {% if node.properties.license_notes %} - .texture-license( - id="asset-license", - data-toggle="popover", - data-placement="left", - data-trigger="hover", - data-content="{{ node.properties.license_notes }}", - title="{{ node.properties.license_type }}") - + .texture-license(title="License {{ node.properties.license_type }}") + span {{ node.properties.license_notes }} + i(class="pi-license-cc-by") i(class="pi-license-{{ node.properties.license_type }}") + | {% else %} .texture-license( id="asset-license",