diff options
Diffstat (limited to 'src/layouts/_card-list.scss')
-rw-r--r-- | src/layouts/_card-list.scss | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/layouts/_card-list.scss b/src/layouts/_card-list.scss index 59105c4..0722a88 100644 --- a/src/layouts/_card-list.scss +++ b/src/layouts/_card-list.scss | |||
@@ -13,15 +13,19 @@ | |||
13 | @include iro.bem-layout('card-list') { | 13 | @include iro.bem-layout('card-list') { |
14 | display: flex; | 14 | display: flex; |
15 | flex-direction: column; | 15 | flex-direction: column; |
16 | gap: props.get(vars.$row-gap) props.get(vars.$col-gap); | 16 | gap: props.get(vars.$row-gap); |
17 | |||
18 | @include iro.bem-modifier('quiet') { | ||
19 | row-gap: props.get(vars.$quiet--row-gap); | ||
20 | } | ||
17 | 21 | ||
18 | @include iro.bem-modifier('grid') { | 22 | @include iro.bem-modifier('grid') { |
19 | display: grid; | 23 | display: grid; |
20 | grid-template-columns: repeat(auto-fill, minmax(props.get(vars.$grid--col-width), 1fr)); | 24 | grid-template-columns: repeat(auto-fill, minmax(props.get(vars.$grid--col-width), 1fr)); |
21 | gap: props.get(vars.$grid--col-gap); | 25 | gap: props.get(vars.$grid--row-gap) props.get(vars.$grid--col-gap); |
22 | 26 | ||
23 | @include iro.bem-modifier('quiet') { | 27 | @include iro.bem-modifier('quiet') { |
24 | row-gap: props.get(vars.$grid--row-gap); | 28 | row-gap: props.get(vars.$grid--quiet--row-gap); |
25 | } | 29 | } |
26 | } | 30 | } |
27 | 31 | ||
@@ -31,20 +35,20 @@ | |||
31 | column-gap: props.get(vars.$masonry--col-gap); | 35 | column-gap: props.get(vars.$masonry--col-gap); |
32 | 36 | ||
33 | @include iro.bem-elem('card') { | 37 | @include iro.bem-elem('card') { |
34 | margin-block-end: props.get(vars.$masonry--col-gap); | 38 | margin-block-end: props.get(vars.$masonry--row-gap); |
35 | break-inside: avoid; | 39 | break-inside: avoid; |
36 | } | 40 | } |
37 | 41 | ||
38 | @include iro.bem-modifier('quiet') { | 42 | @include iro.bem-modifier('quiet') { |
39 | @include iro.bem-elem('card') { | 43 | @include iro.bem-elem('card') { |
40 | margin-block-end: props.get(vars.$masonry--row-gap); | 44 | margin-block-end: props.get(vars.$masonry--quiet--row-gap); |
41 | } | 45 | } |
42 | } | 46 | } |
43 | } | 47 | } |
44 | 48 | ||
45 | @include iro.bem-modifier('masonry-h') { | 49 | @include iro.bem-modifier('masonry-h') { |
46 | flex-flow: row wrap; | 50 | flex-flow: row wrap; |
47 | gap: props.get(vars.$masonry-h--col-gap); | 51 | gap: props.get(vars.$masonry-h--row-gap) props.get(vars.$masonry-h--col-gap); |
48 | 52 | ||
49 | @include iro.bem-modifier('no-flush') { | 53 | @include iro.bem-modifier('no-flush') { |
50 | &::after { | 54 | &::after { |
@@ -65,7 +69,7 @@ | |||
65 | } | 69 | } |
66 | 70 | ||
67 | @include iro.bem-modifier('quiet') { | 71 | @include iro.bem-modifier('quiet') { |
68 | row-gap: props.get(vars.$masonry-h--row-gap); | 72 | row-gap: props.get(vars.$masonry-h--quiet--row-gap); |
69 | } | 73 | } |
70 | } | 74 | } |
71 | 75 | ||