diff --git a/src/scss/components/card/_card.scss b/src/scss/components/card/_card.scss index c909484..7cf2a7d 100644 --- a/src/scss/components/card/_card.scss +++ b/src/scss/components/card/_card.scss @@ -8,6 +8,8 @@ background-color: white; border-top: $border-width solid $color-teal-90; padding: $padding-block; + display: flex; + flex-direction: column; & :first-child { margin-top: 0; @@ -52,3 +54,17 @@ } } } + +.iati-card-gallery { + --min-card-width: 300px; + + display: flex; + flex-wrap: wrap; + width: 100%; + gap: $padding-block; + + & > * { + flex: 1; + min-width: var(--min-card-width); + } +} diff --git a/src/scss/components/card/card.stories.ts b/src/scss/components/card/card.stories.ts index 6e99bc7..fdb23d6 100644 --- a/src/scss/components/card/card.stories.ts +++ b/src/scss/components/card/card.stories.ts @@ -41,3 +41,10 @@ export const CardWithMenu: Story = { `, }; + +export const CardGallery: Story = { + render: () => + html`