<p> Replace the div with your component and add span classes in the order that is shown below to get the masonry layout</p>
<section class="masonry-grid">
<div class="grid-demo span-4"></div>
<div class="grid-demo span-4"></div>
<div class="grid-demo span-5"></div>
<div class="grid-demo span-3"></div>
<div class="grid-demo span-4"></div>
<div class="grid-demo span-4"></div>
<div class="grid-demo span-3"></div>
<div class="grid-demo span-5"></div>
<div class="grid-demo span-4"></div>
<div class="grid-demo span-4"></div>
</section>
<p> Replace the div with your component and add span classes in the order that is shown below to get the masonry layout</p>
<section class="masonry-grid">
<div class="grid-demo span-4"></div>
<div class="grid-demo span-4"></div>
<div class="grid-demo span-5"></div>
<div class="grid-demo span-3"></div>
<div class="grid-demo span-4"></div>
<div class="grid-demo span-4"></div>
<div class="grid-demo span-3"></div>
<div class="grid-demo span-5"></div>
<div class="grid-demo span-4"></div>
<div class="grid-demo span-4"></div>
</section>
/* No context defined. */
.masonry-grid {
display: grid;
grid-gap: $spacer-md;
.case-list-teaser__body {
top: 0;
}
}
@media screen and (min-width: $grid-breakpoint-md-lg) {
.masonry-grid {
grid-template-columns: repeat(8, minmax(6rem, 1fr));
}
.span-4 {
grid-column: span 4;
}
.span-3 {
grid-column: span 3;
}
.span-5 {
grid-column: span 5;
}
}
No notes defined.