diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/_utils.scss | 16 | ||||
| -rw-r--r-- | src/layouts/_card-list.vars.scss | 4 | ||||
| -rw-r--r-- | src/layouts/_hlist.scss | 26 | ||||
| -rw-r--r-- | src/objects/_card.scss | 2 | ||||
| -rw-r--r-- | src/objects/_heading.vars.scss | 4 |
5 files changed, 42 insertions, 10 deletions
diff --git a/src/_utils.scss b/src/_utils.scss index 6a2c7eb..d5f0626 100644 --- a/src/_utils.scss +++ b/src/_utils.scss | |||
| @@ -48,9 +48,9 @@ $-font-sizes: ( | |||
| 48 | ) !default; | 48 | ) !default; |
| 49 | 49 | ||
| 50 | $-aspect-ratios: ( | 50 | $-aspect-ratios: ( |
| 51 | '1\\/1': 1 / 1, | 51 | '1\\/1': '1 / 1', |
| 52 | '4\\/3': 4 / 3, | 52 | '4\\/3': '4 / 3', |
| 53 | '5\\/4': 5 / 4, | 53 | '5\\/4': '5 / 4', |
| 54 | ) !default; | 54 | ) !default; |
| 55 | 55 | ||
| 56 | @mixin styles { | 56 | @mixin styles { |
| @@ -158,6 +158,10 @@ $-aspect-ratios: ( | |||
| 158 | align-items: flex-end; | 158 | align-items: flex-end; |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | @include bem.utility('ai-stretch') { | ||
| 162 | align-items: stretch; | ||
| 163 | } | ||
| 164 | |||
| 161 | @include bem.utility('ac-center') { | 165 | @include bem.utility('ac-center') { |
| 162 | align-content: center; | 166 | align-content: center; |
| 163 | } | 167 | } |
| @@ -273,6 +277,10 @@ $-aspect-ratios: ( | |||
| 273 | hyphenate-limit-chars: auto; | 277 | hyphenate-limit-chars: auto; |
| 274 | } | 278 | } |
| 275 | 279 | ||
| 280 | @include bem.utility('tw-balance') { | ||
| 281 | text-wrap-style: balance; | ||
| 282 | } | ||
| 283 | |||
| 276 | @include bem.utility('o-auto') { | 284 | @include bem.utility('o-auto') { |
| 277 | overflow: auto; | 285 | overflow: auto; |
| 278 | } | 286 | } |
| @@ -397,7 +405,7 @@ $-aspect-ratios: ( | |||
| 397 | 405 | ||
| 398 | @each $mod, $value in $-aspect-ratios { | 406 | @each $mod, $value in $-aspect-ratios { |
| 399 | @include bem.utility('ar-#{$mod}') { | 407 | @include bem.utility('ar-#{$mod}') { |
| 400 | aspect-ratio: $value; | 408 | aspect-ratio: string.unquote($value); |
| 401 | } | 409 | } |
| 402 | } | 410 | } |
| 403 | 411 | ||
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 | } |
diff --git a/src/objects/_card.scss b/src/objects/_card.scss index f18f596..46cc401 100644 --- a/src/objects/_card.scss +++ b/src/objects/_card.scss | |||
| @@ -202,7 +202,7 @@ | |||
| 202 | box-shadow: none; | 202 | box-shadow: none; |
| 203 | 203 | ||
| 204 | @include bem.elem('image') { | 204 | @include bem.elem('image') { |
| 205 | margin: calc(-1 * props.get(vars.$key-focus--border-width)); | 205 | margin: calc(-1 * props.get(vars.$key-focus--border-width) - props.get(vars.$border-width)); |
| 206 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); | 206 | outline: props.get(vars.$key-focus--border-color) solid props.get(vars.$key-focus--border-width); |
| 207 | background-color: props.get(vars.$quiet--hover--image-color); | 207 | background-color: props.get(vars.$quiet--hover--image-color); |
| 208 | border: props.get(vars.$key-focus--border-offset) solid transparent; | 208 | border: props.get(vars.$key-focus--border-offset) solid transparent; |
diff --git a/src/objects/_heading.vars.scss b/src/objects/_heading.vars.scss index c7c08a6..03ed7dd 100644 --- a/src/objects/_heading.vars.scss +++ b/src/objects/_heading.vars.scss | |||
| @@ -110,9 +110,9 @@ $display--font-family--lg: props.def(--o-heading--display--lg--font-family, | |||
| 110 | $display--line-height--lg: props.def(--o-heading--display--lg--line-height, props.get(core.$font--headline--line-height)) !default; | 110 | $display--line-height--lg: props.def(--o-heading--display--lg--line-height, props.get(core.$font--headline--line-height)) !default; |
| 111 | $display--font-size--lg: props.def(--o-heading--display--lg--font-size, props.get(core.$font-size--300)) !default; | 111 | $display--font-size--lg: props.def(--o-heading--display--lg--font-size, props.get(core.$font-size--300)) !default; |
| 112 | $display--font-weight--lg: props.def(--o-heading--display--lg--font-weight, props.get(core.$font--headline--weight)) !default; | 112 | $display--font-weight--lg: props.def(--o-heading--display--lg--font-weight, props.get(core.$font--headline--weight)) !default; |
| 113 | $display--letter-spacing--lg: props.def(--o-heading--display--lg--letter-spacing, 0) !default; | 113 | $display--letter-spacing--lg: props.def(--o-heading--display--lg--letter-spacing, 1px) !default; |
| 114 | $display--feature-settings--lg: props.def(--o-heading--display--lg--feature-settings, props.get(core.$font--headline--feature-settings)) !default; | 114 | $display--feature-settings--lg: props.def(--o-heading--display--lg--feature-settings, props.get(core.$font--headline--feature-settings)) !default; |
| 115 | $display--text-transform--lg: props.def(--o-heading--display--lg--text-transform, none) !default; | 115 | $display--text-transform--lg: props.def(--o-heading--display--lg--text-transform, uppercase) !default; |
| 116 | 116 | ||
| 117 | $display--font-family--md: props.def(--o-heading--display--md--font-family, props.get(core.$font--standard--family)) !default; | 117 | $display--font-family--md: props.def(--o-heading--display--md--font-family, props.get(core.$font--standard--family)) !default; |
| 118 | $display--line-height--md: props.def(--o-heading--display--md--line-height, props.get(core.$font--standard--line-height)) !default; | 118 | $display--line-height--md: props.def(--o-heading--display--md--line-height, props.get(core.$font--standard--line-height)) !default; |
