Skip to content

Commit

Permalink
Logocloud wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten committed Aug 4, 2023
1 parent 2c97fdd commit 1ada3fe
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions components/Block/LogoCloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,29 @@ const { data: block } = useAsyncData(props.uuid, () =>
}
.block-logocloud {
grid-template-columns: repeat(auto-fit, minmax(var(--space-28), 1fr));
--columns: 1;
display: grid;
grid-template-columns: repeat(var(--columns), 1fr);
justify-items: center;
align-items: center;
gap: var(--space-12);
display: grid;
@container (width > 20rem) {
--columns: 2;
}
@container (width > 25rem) {
--columns: 4;
}
@container (width > 40rem) {
--columns: 6;
}
@container (width > 55rem) {
--columns: 8;
}
}
// For pink color override
Expand Down

0 comments on commit 1ada3fe

Please sign in to comment.