@use 'sass:meta'; @use 'iro-sass/src/iro-sass' as iro; @use 'iro-sass/src/props'; @forward 'heading.vars'; @use 'heading.vars' as vars; @mixin styles { @include props.materialize(meta.module-variables('vars')); @include iro.bem-object('heading') { display: block; margin-block-start: props.get(vars.$margin-bs); font-family: props.get(vars.$font-family); font-weight: props.get(vars.$font-weight); font-feature-settings: props.get(vars.$feature-settings); line-height: props.get(vars.$line-height); text-transform: none; letter-spacing: normal; transform: translateX(props.get(vars.$offset)); & + & { margin-block-start: props.get(vars.$margin-bs-sibling); } @include iro.bem-elem('highlight') { background-image: linear-gradient(to top, transparent .05em, props.get(vars.$bg-color) .05em, props.get(vars.$bg-color) .5em, transparent .5em); } @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in vars.$sizes { @include iro.bem-modifier($mod) { font-family: props.get($font-family); font-size: props.get($font-size); font-weight: props.get($font-weight); font-feature-settings: props.get($feature-settings); line-height: props.get($line-height); letter-spacing: props.get($letter-spacing); } } @include iro.bem-modifier('display') { @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in vars.$display--sizes { @include iro.bem-modifier($mod) { font-family: props.get($font-family); font-size: props.get($font-size); font-weight: props.get($font-weight); font-feature-settings: props.get($feature-settings); line-height: props.get($line-height); letter-spacing: props.get($letter-spacing); } } } } }