Pack gallery photos with CSS columns
This commit is contained in:
+8
-6
@@ -227,14 +227,16 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.art .post-list {
|
.art .post-list {
|
||||||
display: grid;
|
column-count: 2;
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
column-gap: $spacing-unit;
|
||||||
gap: $spacing-unit;
|
|
||||||
align-items: start;
|
|
||||||
|
|
||||||
> li {
|
> li {
|
||||||
min-width: 0;
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
margin-bottom: $spacing-unit;
|
||||||
|
break-inside: avoid;
|
||||||
|
-webkit-column-break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content > p:last-child {
|
.post-content > p:last-child {
|
||||||
@@ -251,7 +253,7 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include media-query($on-palm) {
|
@include media-query($on-palm) {
|
||||||
grid-template-columns: 1fr;
|
column-count: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user