diff options
Diffstat (limited to 'src/layouts')
| -rw-r--r-- | src/layouts/_card-list.vars.scss | 4 | ||||
| -rw-r--r-- | src/layouts/_hlist.scss | 26 |
2 files changed, 27 insertions, 3 deletions
diff --git a/src/layouts/_card-list.vars.scss b/src/layouts/_card-list.vars.scss index e8d17ed..60a3e2b 100644 --- a/src/layouts/_card-list.vars.scss +++ b/src/layouts/_card-list.vars.scss | |||
| @@ -21,8 +21,8 @@ $grid-xs--col-width: props.def(--l-card-list--grid-xs--col-width, props.get | |||
| 21 | $grid-xs--quiet--row-gap: props.def(--l-card-list--grid-xs--quiet--row-gap, props.get(core.$size--800)) !default; | 21 | $grid-xs--quiet--row-gap: props.def(--l-card-list--grid-xs--quiet--row-gap, props.get(core.$size--800)) !default; |
| 22 | 22 | ||
| 23 | $grid-layouts: ( | 23 | $grid-layouts: ( |
| 24 | 'grid' $grid--row-gap $grid--col-gap $grid--col-width $grid--quiet--row-gap md, | 24 | 'grid' $grid--row-gap $grid--col-gap $grid--col-width $grid--quiet--row-gap sm, |
| 25 | 'grid-sm' $grid-sm--row-gap $grid-sm--col-gap $grid-sm--col-width $grid-sm--quiet--row-gap md, | 25 | 'grid-sm' $grid-sm--row-gap $grid-sm--col-gap $grid-sm--col-width $grid-sm--quiet--row-gap sm, |
| 26 | 'grid-xs' $grid-xs--row-gap $grid-xs--col-gap $grid-xs--col-width $grid-xs--quiet--row-gap xs, | 26 | 'grid-xs' $grid-xs--row-gap $grid-xs--col-gap $grid-xs--col-width $grid-xs--quiet--row-gap xs, |
| 27 | ) !default; | 27 | ) !default; |
| 28 | 28 | ||
diff --git a/src/layouts/_hlist.scss b/src/layouts/_hlist.scss index 5c81259..06eb8dd 100644 --- a/src/layouts/_hlist.scss +++ b/src/layouts/_hlist.scss | |||
| @@ -18,6 +18,30 @@ | |||
| 18 | @each $mod, $size in vars.$sizes { | 18 | @each $mod, $size in vars.$sizes { |
| 19 | @include bem.modifier($mod) { | 19 | @include bem.modifier($mod) { |
| 20 | gap: props.get($size); | 20 | gap: props.get($size); |
| 21 | |||
| 22 | @include bem.modifier('separated') { | ||
| 23 | @include bem.elem('item') { | ||
| 24 | @include bem.next-twin-elem { | ||
| 25 | &::before { | ||
| 26 | content: '·'; | ||
| 27 | margin-inline: calc(.65 * props.get($size)); | ||
| 28 | } | ||
| 29 | } | ||
| 30 | } | ||
| 31 | } | ||
| 32 | } | ||
| 33 | } | ||
| 34 | |||
| 35 | @include bem.modifier('separated') { | ||
| 36 | gap: 0; | ||
| 37 | |||
| 38 | @include bem.elem('item') { | ||
| 39 | @include bem.next-twin-elem { | ||
| 40 | &::before { | ||
| 41 | content: '·'; | ||
| 42 | margin-inline: calc(.65 * props.get(vars.$gap)); | ||
| 43 | } | ||
| 44 | } | ||
| 21 | } | 45 | } |
| 22 | } | 46 | } |
| 23 | 47 | ||
| @@ -35,7 +59,7 @@ | |||
| 35 | @each $mod, $pad-i, $pad-i-label, $pad-i-pill, $pad-b, $font-size in button.$fixed-sizes { | 59 | @each $mod, $pad-i, $pad-i-label, $pad-i-pill, $pad-b, $font-size in button.$fixed-sizes { |
| 36 | @include bem.modifier('buttons-#{$mod}') { | 60 | @include bem.modifier('buttons-#{$mod}') { |
| 37 | margin-inline: calc(-1 * props.get($pad-i) - props.get(button.$border-width)); | 61 | margin-inline: calc(-1 * props.get($pad-i) - props.get(button.$border-width)); |
| 38 | 62 | ||
| 39 | @include bem.modifier('pill') { | 63 | @include bem.modifier('pill') { |
| 40 | margin-inline: calc(-1 * props.get($pad-i-pill) - props.get(button.$border-width)); | 64 | margin-inline: calc(-1 * props.get($pad-i-pill) - props.get(button.$border-width)); |
| 41 | } | 65 | } |
