homepage layout1 improvements

This commit is contained in:
Guillaume Denis 2015-04-02 11:17:49 +02:00
parent e0488e7337
commit c05618e951
2 changed files with 41 additions and 5 deletions

View File

@ -311,10 +311,8 @@ body.toc-open #toggle-container, body.toc-open #off-nav {
position: relative;
}
@media (min-width: 992px) {
.homepage.layout-1 .row1 .col2, .homepage.layout-1 .row2 .col2 {
float: right;
}
.homepage.layout-1 .row1 .col1 {
margin-top: 30px;
}
@media (max-width: 830px) {
@ -324,11 +322,17 @@ body.toc-open #toggle-container, body.toc-open #off-nav {
}
@media (max-width: 767px) {
.module-content, .module-content:first-child, .module-content:last-child {
.row1 .col1 {
margin-bottom: 20px;
}
}
/*@media (max-width: 767px) {
.module-content, .module-content:first-child, .module-content:last-child {
margin-bottom: 20px;
}
}*/
@media (min-width: 980px) and (min-width: 1199px) {
.primary.span12 {
width: 940px;

View File

@ -0,0 +1,32 @@
<div role="main" class="hero">
<div class="container">
<div class="row row1">
<div class="span5 col1">
{% block search %}
{% snippet 'home/snippets/search.html' %}
{% endblock %}
</div>
<div class="span6 offset1 col2">
{% block promoted %}
{% snippet 'home/snippets/promoted.html' %}
{% endblock %}
</div>
</div>
</div>
</div>
<div role="main">
<div class="container">
<div class="row row2">
<div class="span5 col1">
{% block featured_group %}
{% snippet 'home/snippets/featured_group.html' %}
{% endblock %}
</div>
<div class="span6 offset1 col2">
{% block featured_organization %}
{% snippet 'home/snippets/featured_organization.html' %}
{% endblock %}
</div>
</div>
</div>
</div>