[fix] bugs in new index style
This commit is contained in:
parent
2f0757e2a4
commit
719b2c5128
@ -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 {
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user