Blog and Latest assets are shown bigger now

This commit is contained in:
Pablo Vazquez 2016-11-11 17:48:38 +01:00
parent fe848525b1
commit 76a5d9c9e1
2 changed files with 27 additions and 38 deletions

View File

@ -1516,12 +1516,11 @@ section.node-details-container
.node-extra .node-extra
display: flex display: flex
flex-direction: row flex-direction: column
align-items: stretch
padding: 0 20px padding: 0 20px
width: 100% width: 100%
max-width: 800px max-width: 840px
a.learn-more a.learn-more
font-size: .9em font-size: .9em
@ -1529,22 +1528,23 @@ section.node-details-container
.node-updates, .node-updates,
.node-blog .node-blog
flex: 1 flex: 1
font-size: 1.1em
ul ul
padding: 0 padding: 0
margin: 0 0 25px 0 margin: 0 0 15px 0
display: flex display: flex
flex-direction: row flex-direction: row
flex-wrap: wrap flex-wrap: wrap
justify-content: space-between
li li
display: flex display: flex
flex-direction: column
list-style: none list-style: none
padding: 10px 0 padding: 10px 5px
border-top: thin solid $color-background border-top: thin solid $color-background
cursor: pointer cursor: pointer
width: 50% width: 25%
&:hover &:hover
img img
@ -1554,60 +1554,50 @@ section.node-details-container
text-decoration: underline text-decoration: underline
.image .image
width: 60px width: 100%
height: 60px height: 90px
min-width: 60px min-height: 90px
min-height: 60px max-height: 90px
max-width: 60px height: auto
max-height: 60px
border-radius: 3px
background-color: $color-background background-color: $color-background
float: left margin: 5px auto 10px auto
margin: 0 15px 0 0
position: relative position: relative
overflow: hidden
border-radius: 3px
img img
width: 100% +position-center-translate
border-radius: 3px
i i
color: $color-text-dark-hint color: $color-text-dark-hint
font-size: 1.6em font-size: 3em
+position-center-translate +position-center-translate
.info .info
width: 100% width: 100%
float: left height: 100%
display: flex
flex-direction: column
justify-content: space-between
.title .title
display: block display: block
+text-overflow-ellipsis word-break: break-word
+clearfix +clearfix
span.details span.details
width: 100% width: 100%
display: block display: block
font-size: .9em font-size: .8em
padding: 5px 0 padding: 5px 0
color: $color-text-dark-secondary color: $color-text-dark-secondary
+clearfix +clearfix
.who .who
margin-left: 3px margin-left: 3px
font-weight: 500
.what .what
text-transform: capitalize text-transform: capitalize
.node-blog
flex-direction: column
ul li
width: 100%
.node-blog+.node-updates
flex-direction: column
padding-left: 25px
ul li
width: 100%
section.node-children section.node-children
background-color: white background-color: white

View File

@ -92,7 +92,7 @@ script.
li.node-blog-list-item(data-node_id="{{ n._id }}") li.node-blog-list-item(data-node_id="{{ n._id }}")
a.image(href="{{ url_for_node(node=n) }}") a.image(href="{{ url_for_node(node=n) }}")
| {% if n.picture %} | {% if n.picture %}
img(src="{{ n.picture.thumbnail('s', api=api) }}") img(src="{{ n.picture.thumbnail('m', api=api) }}")
| {% else %} | {% else %}
i.pi-chatbubble-working i.pi-chatbubble-working
| {% endif %} | {% endif %}
@ -113,7 +113,7 @@ script.
li.node-updates-list-item(data-node_id="{{ n._id }}") li.node-updates-list-item(data-node_id="{{ n._id }}")
a.image(href="{{ url_for_node(node=n) }}") a.image(href="{{ url_for_node(node=n) }}")
| {% if n.picture %} | {% if n.picture %}
img(src="{{ n.picture.thumbnail('s', api=api) }}") img(src="{{ n.picture.thumbnail('m', api=api) }}")
| {% else %} | {% else %}
| {% if n.properties.content_type == 'video' %} | {% if n.properties.content_type == 'video' %}
i.pi-film-thick i.pi-film-thick
@ -130,9 +130,8 @@ script.
.info .info
a.title(href="{{ url_for_node(node=n) }}") {{ n.name }} a.title(href="{{ url_for_node(node=n) }}") {{ n.name }}
span.details span.details
span.what {% if n.properties.content_type %}{{ n.properties.content_type }}{% else %}{{ n.node_type }}{% endif %} · span.what {% if n.properties.content_type %}{{ n.properties.content_type | undertitle }}{% else %}{{ n.node_type | undertitle }}{% endif %} ·
span.when {{ n._updated | pretty_date }} by span.when {{ n._updated | pretty_date }}
span.who {{ n.user.full_name }}
| {% endif %} | {% endif %}
| {% endfor %} | {% endfor %}
| {% endif %} | {% endif %}