Homepage: Small cleanup of classes and more space between posts
Also fix selectors for comments/assets
This commit is contained in:
@@ -407,50 +407,56 @@
|
|||||||
> li
|
> li
|
||||||
+container-box
|
+container-box
|
||||||
display: flex
|
display: flex
|
||||||
padding: 15px
|
flex-direction: column
|
||||||
margin-bottom: 15px
|
margin-bottom: 50px
|
||||||
|
|
||||||
|
&:before
|
||||||
|
height: 1px
|
||||||
|
background-color: $color-background-dark
|
||||||
|
position: absolute
|
||||||
|
bottom: -26px
|
||||||
|
left: 25px
|
||||||
|
right: 25px
|
||||||
|
content: ' '
|
||||||
|
|
||||||
&:first-child
|
|
||||||
border-top: none
|
|
||||||
&:last-child
|
&:last-child
|
||||||
border:
|
margin-bottom: 0
|
||||||
bottom-left-radius: 3px
|
|
||||||
bottom-right-radius: 3px
|
&:before
|
||||||
|
display: none
|
||||||
|
|
||||||
|
a.title
|
||||||
|
font-size: 1.6em
|
||||||
|
padding: 5px 15px
|
||||||
|
display: block
|
||||||
|
color: $color-text
|
||||||
|
|
||||||
|
&:hover
|
||||||
|
color: $color-primary
|
||||||
|
|
||||||
|
a.blog-stream__thumbnail
|
||||||
|
display: block
|
||||||
|
position: relative
|
||||||
|
|
||||||
|
img
|
||||||
|
border-top-left-radius: 3px
|
||||||
|
border-top-right-radius: 3px
|
||||||
|
width: 100%
|
||||||
|
|
||||||
|
ul.meta
|
||||||
|
+list-meta
|
||||||
|
font-size: .9em
|
||||||
|
padding: 15px 15px 5px
|
||||||
|
|
||||||
|
|
||||||
&.blog-non-featured
|
&.blog-non-featured
|
||||||
border-radius: 0
|
border-radius: 0
|
||||||
margin: 0
|
margin: 0
|
||||||
|
|
||||||
&.more
|
|
||||||
font-size: .9em
|
|
||||||
justify-content: space-between
|
|
||||||
|
|
||||||
a
|
|
||||||
color: $color-text-dark-secondary
|
|
||||||
|
|
||||||
.blog-stream__list-thumbnail
|
|
||||||
display: block
|
|
||||||
position: relative
|
|
||||||
width: 50px
|
|
||||||
min-width: 50px
|
|
||||||
height: 50px
|
|
||||||
min-height: 50px
|
|
||||||
margin-right: 15px
|
|
||||||
background-color: $node-type-post
|
|
||||||
border-radius: 3px
|
|
||||||
overflow: hidden
|
|
||||||
|
|
||||||
img
|
|
||||||
width: 100%
|
|
||||||
|
|
||||||
i
|
|
||||||
+position-center-translate
|
|
||||||
font-size: 1.6em
|
|
||||||
color: $color-text-light-primary
|
|
||||||
|
|
||||||
.description
|
.description
|
||||||
+node-details-description
|
+node-details-description
|
||||||
padding: 5px 15px
|
padding: 10px 15px
|
||||||
|
|
||||||
.blog-stream__list-details
|
.blog-stream__list-details
|
||||||
.title
|
.title
|
||||||
@@ -472,32 +478,18 @@
|
|||||||
&:before
|
&:before
|
||||||
left: -5px
|
left: -5px
|
||||||
|
|
||||||
&.featured
|
.more
|
||||||
flex-direction: column
|
text-align: center
|
||||||
padding: 0
|
|
||||||
|
|
||||||
a.title
|
a
|
||||||
font-size: 1.5em
|
color: $color-text
|
||||||
padding: 20px 0 0 15px
|
|
||||||
display: block
|
display: block
|
||||||
color: $color-text-dark-primary
|
padding: 25px 0
|
||||||
&:hover
|
text-decoration: underline
|
||||||
color: $color-primary
|
|
||||||
|
|
||||||
a.blog-stream__thumbnail
|
|
||||||
display: block
|
|
||||||
position: relative
|
|
||||||
|
|
||||||
img
|
|
||||||
border-top-left-radius: 3px
|
|
||||||
border-top-right-radius: 3px
|
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
ul.meta
|
&:hover
|
||||||
+list-meta
|
color: $color-primary
|
||||||
font-size: .9em
|
|
||||||
padding: 5px 15px 10px
|
|
||||||
|
|
||||||
|
|
||||||
section.random-asset
|
section.random-asset
|
||||||
border-bottom: thin solid $color-background-dark
|
border-bottom: thin solid $color-background-dark
|
||||||
@@ -593,7 +585,8 @@
|
|||||||
font-size: 1.1em
|
font-size: 1.1em
|
||||||
padding: 10px 0 5px
|
padding: 10px 0 5px
|
||||||
display: block
|
display: block
|
||||||
color: $color-text-dark-primary
|
color: $color-text
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
color: $color-primary
|
color: $color-primary
|
||||||
|
|
||||||
|
@@ -25,39 +25,35 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
|
|||||||
ul.blog-stream__list
|
ul.blog-stream__list
|
||||||
| {% if latest_posts %}
|
| {% if latest_posts %}
|
||||||
| {% for n in latest_posts %}
|
| {% for n in latest_posts %}
|
||||||
li.blog-stream__list-item.featured
|
li
|
||||||
| {% if n.picture %}
|
| {% if n.picture %}
|
||||||
a.blog-stream__thumbnail(
|
a.blog-stream__thumbnail(
|
||||||
href="{{ n.url }}")
|
href="{{ n.url }}")
|
||||||
img(src="{{ n.picture.thumbnail('l', api=api) }}")
|
img(src="{{ n.picture.thumbnail('l', api=api) }}")
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
a.title(href="{{ n.url }}")
|
|
||||||
| {{ n.name }}
|
|
||||||
|
|
||||||
ul.meta
|
ul.meta
|
||||||
|
li.where-project
|
||||||
|
a.project(href="{{ url_for('projects.view', project_url=n.project.url) }}") {{ n.project.name }}
|
||||||
li.when
|
li.when
|
||||||
a(href="{{ n.url }}",
|
a(href="{{ n.url }}",
|
||||||
title="Updated {{ n._updated | pretty_date }}")
|
title="Updated {{ n._updated | pretty_date }}")
|
||||||
| {{ n._created | pretty_date }}
|
| {{ n._created | pretty_date }}
|
||||||
li.where-project
|
|
||||||
a.project(href="{{ url_for('projects.view', project_url=n.project.url) }}") {{ n.project.name }}
|
a.title(href="{{ n.url }}")
|
||||||
|
| {{ n.name }}
|
||||||
|
|
||||||
.description
|
.description
|
||||||
| {{ n.properties.content | markdown }}
|
| {{ n.properties.content | markdown }}
|
||||||
|
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
| {% else %}
|
| {% else %}
|
||||||
li.blog-stream__list-item
|
li
|
||||||
.blog-stream__list-details
|
.blog-stream__list-details
|
||||||
ul.meta
|
ul.meta
|
||||||
li.when No blog entries... yet!
|
li.when No blog entries... yet!
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
li.blog-stream__list-item.more
|
.more
|
||||||
a(
|
|
||||||
href="{{ url_for('main.feeds_blogs') }}",
|
|
||||||
title="Blender Cloud & Projects Blog Feed")
|
|
||||||
| RSS Feed
|
|
||||||
a(href="{{ url_for('main.main_blog') }}")
|
a(href="{{ url_for('main.main_blog') }}")
|
||||||
| See All Blog Posts
|
| See All Blog Posts
|
||||||
|
|
||||||
@@ -265,12 +261,12 @@ script.
|
|||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
/* cleanup mentions in comments */
|
/* cleanup mentions in comments */
|
||||||
$('.activity-stream__list-details a.title').each(function(){
|
$('.comment-content').each(function(){
|
||||||
$(this).text($(this).text().replace(/\*|\@|\<(.*?)\>/g, ''));
|
$(this).text($(this).text().replace(/\*|\@|\<(.*?)\>/g, ''));
|
||||||
});
|
});
|
||||||
|
|
||||||
/* Click on the whole asset/comment row to go */
|
/* Click on the whole asset/comment row to go */
|
||||||
$('li.activity-stream__list-item.asset, li.activity-stream__list-item.comment').click(function(e){
|
$('.activity-stream__list li, .comments ul li').click(function(e){
|
||||||
window.location.href = $(this).data('url');
|
window.location.href = $(this).data('url');
|
||||||
$(this).addClass('active');
|
$(this).addClass('active');
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user