[fix] bugs in new index style

This commit is contained in:
Laurent Peuch 2015-12-11 09:14:08 +01:00
parent 2f0757e2a4
commit 719b2c5128
2 changed files with 3 additions and 3 deletions

View File

@ -31,10 +31,10 @@ body {
.covers-2 .gallery-square {
width: 50%;
height: 100%;
float: left;
margin: 0 0 3%;
margin: 0 0 0;
padding-bottom: 47%;
position: relative;
display: inline-block;
}
.covers-3 .gallery-square {

View File

@ -22,7 +22,7 @@
<div class="galleries-grid">
{% for galleries_line in galleries|reverse|batch(3)|reverse %}
<div class="galleries-line covers-{{ galleries_line|length }}">
{% for gallery in galleries_line %}<!-- comment tricks against space between inline-block
{% for gallery in galleries_line|reverse %}<!-- comment tricks against space between inline-block
--><div class="gallery-square">
<a href="{{ gallery.link }}">
<div class="gallery-title">