style: fix masonry only-child display

Translate :only-child only if it’s a <button>

close #76
This commit is contained in:
Timothée Goguely 2024-12-20 12:22:51 +01:00
parent 4cba861387
commit d727f1a1af

View file

@ -6,7 +6,9 @@
}
.masonry > *:only-child {
column-span: all;
transform: translateY(50%);
}
.masonry > button:only-child {
transform: translateY(30%);
}
@media (min-width: 40rem) {