diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/layouts/_card-list.scss | 10 | ||||
| -rw-r--r-- | src/layouts/_card-list.vars.scss | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/layouts/_card-list.scss b/src/layouts/_card-list.scss index a1655be..1030e28 100644 --- a/src/layouts/_card-list.scss +++ b/src/layouts/_card-list.scss | |||
| @@ -57,6 +57,16 @@ | |||
| 57 | } | 57 | } |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | @include bem.modifier('grid-sm') { | ||
| 61 | display: grid; | ||
| 62 | grid-template-columns: repeat(auto-fill, minmax(props.get(vars.$grid-sm--col-width), 1fr)); | ||
| 63 | gap: props.get(vars.$grid-sm--row-gap) props.get(vars.$grid-sm--col-gap); | ||
| 64 | |||
| 65 | @include bem.modifier('quiet') { | ||
| 66 | row-gap: props.get(vars.$grid-sm--quiet--row-gap); | ||
| 67 | } | ||
| 68 | } | ||
| 69 | |||
| 60 | @include bem.modifier('masonry') { | 70 | @include bem.modifier('masonry') { |
| 61 | display: block; | 71 | display: block; |
| 62 | columns: auto props.get(vars.$masonry--col-width); | 72 | columns: auto props.get(vars.$masonry--col-width); |
diff --git a/src/layouts/_card-list.vars.scss b/src/layouts/_card-list.vars.scss index b489596..1c49c0f 100644 --- a/src/layouts/_card-list.vars.scss +++ b/src/layouts/_card-list.vars.scss | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | @use 'iro-sass/src/props'; | 1 | @use 'iro-sass/src/props'; |
| 2 | @use '../core.vars' as core; | 2 | @use '../core.vars' as core; |
| 3 | 3 | ||
| 4 | $row-gap: props.def(--l-card-list--row-gap, props.get(core.$size--50)) !default; | 4 | $row-gap: props.def(--l-card-list--row-gap, props.get(core.$size--100)) !default; |
| 5 | $quiet--row-gap: props.def(--l-card-list--quiet--row-gap, props.get(core.$size--800)) !default; | 5 | $quiet--row-gap: props.def(--l-card-list--quiet--row-gap, props.get(core.$size--800)) !default; |
| 6 | 6 | ||
| 7 | $grid--row-gap: props.def(--l-card-list--grid--row-gap, props.get(core.$size--400)) !default; | 7 | $grid--row-gap: props.def(--l-card-list--grid--row-gap, props.get(core.$size--400)) !default; |
| @@ -9,6 +9,11 @@ $grid--col-gap: props.def(--l-card-list--grid--col-gap, props.get(core.$s | |||
| 9 | $grid--col-width: props.def(--l-card-list--grid--col-width, props.get(core.$size--3200)) !default; | 9 | $grid--col-width: props.def(--l-card-list--grid--col-width, props.get(core.$size--3200)) !default; |
| 10 | $grid--quiet--row-gap: props.def(--l-card-list--grid--quiet--row-gap, props.get(core.$size--800)) !default; | 10 | $grid--quiet--row-gap: props.def(--l-card-list--grid--quiet--row-gap, props.get(core.$size--800)) !default; |
| 11 | 11 | ||
| 12 | $grid-sm--row-gap: props.def(--l-card-list--grid-md--row-gap, props.get(core.$size--150)) !default; | ||
| 13 | $grid-sm--col-gap: props.def(--l-card-list--grid-md--col-gap, props.get(core.$size--150)) !default; | ||
| 14 | $grid-sm--col-width: props.def(--l-card-list--grid-md--col-width, props.get(core.$size--4600)) !default; | ||
| 15 | $grid-sm--quiet--row-gap: props.def(--l-card-list--grid-sm--quiet--row-gap, props.get(core.$size--800)) !default; | ||
| 16 | |||
| 12 | $masonry--row-gap: props.def(--l-card-list--masonry--row-gap, props.get(core.$size--400)) !default; | 17 | $masonry--row-gap: props.def(--l-card-list--masonry--row-gap, props.get(core.$size--400)) !default; |
| 13 | $masonry--col-gap: props.def(--l-card-list--masonry--col-gap, props.get(core.$size--400)) !default; | 18 | $masonry--col-gap: props.def(--l-card-list--masonry--col-gap, props.get(core.$size--400)) !default; |
| 14 | $masonry--col-width: props.def(--l-card-list--masonry--col-width, props.get(core.$size--3200)) !default; | 19 | $masonry--col-width: props.def(--l-card-list--masonry--col-width, props.get(core.$size--3200)) !default; |
