diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-13 19:34:49 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-13 19:34:49 +0200 |
| commit | 872b0c172a38db4f440dc6044eb1d5725c03abb1 (patch) | |
| tree | 712c7ad605fb21a01be0acc5faa081051955d60a /src/components/organisms/layout/cards-list.module.scss | |
| parent | 47e35fcd7c2c346f4799630bf6521d6a4bf49e85 (diff) | |
chore: add a CardsList component
Diffstat (limited to 'src/components/organisms/layout/cards-list.module.scss')
| -rw-r--r-- | src/components/organisms/layout/cards-list.module.scss | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/components/organisms/layout/cards-list.module.scss b/src/components/organisms/layout/cards-list.module.scss new file mode 100644 index 0000000..9fe428c --- /dev/null +++ b/src/components/organisms/layout/cards-list.module.scss @@ -0,0 +1,27 @@ +@use "@styles/abstracts/placeholders"; + +.wrapper { + --card-width: 30ch; + + display: grid; + grid-template-columns: repeat( + auto-fit, + min(calc(100vw - (var(--spacing-md) * 2)), var(--card-width)) + ); + gap: var(--spacing-sm); + place-content: center; + align-items: stretch; + justify-items: stretch; + + &--ordered { + @extend %reset-ordered-list; + } + + &--unordered { + @extend %reset-list; + } +} + +.card { + height: 100%; +} |
