diff options
| author | Volpeon <git@volpeon.ink> | 2026-02-21 11:12:09 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2026-02-21 11:12:09 +0100 |
| commit | 054025249f837e1a8f38df8417bdb67d85196b9c (patch) | |
| tree | 4055784e2fab70cafe9615269786c8ace1916b1b /src | |
| parent | Fix (diff) | |
| download | iro-design-054025249f837e1a8f38df8417bdb67d85196b9c.tar.gz iro-design-054025249f837e1a8f38df8417bdb67d85196b9c.tar.bz2 iro-design-054025249f837e1a8f38df8417bdb67d85196b9c.zip | |
Update card list
Diffstat (limited to 'src')
| -rw-r--r-- | src/layouts/_card-list.scss | 6 | ||||
| -rw-r--r-- | src/layouts/_card-list.vars.scss | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/layouts/_card-list.scss b/src/layouts/_card-list.scss index 6a6fe01..1c64b4d 100644 --- a/src/layouts/_card-list.scss +++ b/src/layouts/_card-list.scss | |||
| @@ -79,7 +79,7 @@ | |||
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | 81 | ||
| 82 | @each $mod, $row-gap, $col-gap, $col-width, $quiet--row-gap in vars.$grid-layouts { | 82 | @each $mod, $row-gap, $col-gap, $col-width, $quiet--row-gap, $breakpoint in vars.$grid-layouts { |
| 83 | @include bem.modifier($mod) { | 83 | @include bem.modifier($mod) { |
| 84 | display: grid; | 84 | display: grid; |
| 85 | grid-template-columns: repeat(auto-fill, minmax(props.get($col-width), 1fr)); | 85 | grid-template-columns: repeat(auto-fill, minmax(props.get($col-width), 1fr)); |
| @@ -88,6 +88,10 @@ | |||
| 88 | @include bem.modifier('quiet') { | 88 | @include bem.modifier('quiet') { |
| 89 | row-gap: props.get($quiet--row-gap); | 89 | row-gap: props.get($quiet--row-gap); |
| 90 | } | 90 | } |
| 91 | |||
| 92 | @include media.media('<=#{$breakpoint}') { | ||
| 93 | display: flex; | ||
| 94 | } | ||
| 91 | } | 95 | } |
| 92 | } | 96 | } |
| 93 | 97 | ||
diff --git a/src/layouts/_card-list.vars.scss b/src/layouts/_card-list.vars.scss index 2b25919..9655909 100644 --- a/src/layouts/_card-list.vars.scss +++ b/src/layouts/_card-list.vars.scss | |||
| @@ -25,9 +25,9 @@ $grid-xs--col-width: props.def(--l-card-list--grid-xs--col-width, props.get | |||
| 25 | $grid-xs--quiet--row-gap: props.def(--l-card-list--grid-xs--quiet--row-gap, props.get(core.$size--800)) !default; | 25 | $grid-xs--quiet--row-gap: props.def(--l-card-list--grid-xs--quiet--row-gap, props.get(core.$size--800)) !default; |
| 26 | 26 | ||
| 27 | $grid-layouts: ( | 27 | $grid-layouts: ( |
| 28 | 'grid' $grid--row-gap $grid--col-gap $grid--col-width $grid--quiet--row-gap, | 28 | 'grid' $grid--row-gap $grid--col-gap $grid--col-width $grid--quiet--row-gap md, |
| 29 | 'grid-sm' $grid-sm--row-gap $grid-sm--col-gap $grid-sm--col-width $grid-sm--quiet--row-gap, | 29 | 'grid-sm' $grid-sm--row-gap $grid-sm--col-gap $grid-sm--col-width $grid-sm--quiet--row-gap md, |
| 30 | 'grid-xs' $grid-xs--row-gap $grid-xs--col-gap $grid-xs--col-width $grid-xs--quiet--row-gap, | 30 | 'grid-xs' $grid-xs--row-gap $grid-xs--col-gap $grid-xs--col-width $grid-xs--quiet--row-gap xs, |
| 31 | ) !default; | 31 | ) !default; |
| 32 | 32 | ||
| 33 | $masonry--row-gap: props.def(--l-card-list--masonry--row-gap, props.get(core.$size--400)) !default; | 33 | $masonry--row-gap: props.def(--l-card-list--masonry--row-gap, props.get(core.$size--400)) !default; |
