Scope kanban masonry to fix inspirations masonry layout

This commit is contained in:
Timothée Goguely 2024-11-20 15:41:55 +01:00
parent 2c574069f5
commit c4621f9584

View file

@ -70,25 +70,25 @@ function openDialog(targetStepSlug) {
}
/* Masonry */
.masonry > * {
.kanban .masonry > * {
margin-bottom: var(--space-16);
}
.masonry > *:only-child {
.kanban .masonry > *:only-child {
column-span: all;
transform: translateY(50%);
}
@media (min-width: 40rem) {
.masonry {
.kanban .masonry {
column-count: 2;
}
}
@media (min-width: 65rem) {
.masonry {
.kanban .masonry {
column-count: 3;
}
}
@media (min-width: 90rem) {
.masonry {
.kanban .masonry {
column-count: 4;
}
}