aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/cards-list.module.scss
blob: 6274b93c003e83a5ad4e08876a1b526c8db71fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@use "@styles/abstracts/mixins" as mix;
@use "@styles/abstracts/placeholders";

.wrapper {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    min(calc(100vw - (var(--spacing-md) * 2)), var(--card-width, 30ch))
  );
  gap: var(--spacing-sm);
  place-content: center;
  align-items: stretch;
  justify-items: stretch;

  @include mix.media("screen") {
    @include mix.dimensions(null, "sm") {
      gap: var(--spacing-lg);
    }
  }

  &--ordered {
    @extend %reset-ordered-list;
  }

  &--unordered {
    @extend %reset-list;
  }
}

.card {
  height: 100%;
}