@use 'include-media/dist/include-media' as media; @use 'iro-sass/src/iro-sass' as iro; @use '../mixins' as mx; @use '../props'; @use '../core'; @mixin styles { @include iro.bem-scope('headings') { h1, h2, h3, h4, h5, h6 { @include mx.set-font(--headline); display: block; text-transform: none; letter-spacing: normal; transform: translateX(-.06em); } h1 { @include mx.heading-strong(--xxl); } h2 { @include mx.heading-strong(--xl); } h3 { @include mx.heading-medium(--lg); } h4 { @include mx.heading-medium(--md); } h5 { @include mx.heading-faint(--sm); } h6 { @include mx.heading-faint(--xs); } @include iro.bem-elem('highlight') { background-image: linear-gradient(to top, transparent .15em, fn.foreign-color(--heading, --bg) .15em, fn.foreign-color(--heading, --bg) .6em, transparent .6em); } @include iro.bem-modifier('display') { h1, h2, h3, h4, h5, h6 { @include mx.set-font(--headline); } h1 { @include mx.heading-strong(--display --xxl); @include media.media('<=md') { @include mx.heading-strong(--display-sm --xxl); } } h2 { @include mx.heading-strong(--display --xl); @include media.media('<=md') { @include mx.heading-strong(--display-sm --xl); } } h3 { @include mx.heading-strong(--display --lg); @include media.media('<=md') { @include mx.heading-strong(--display-sm --lg); } } h4 { @include mx.heading-strong(--display --md); @include media.media('<=md') { @include mx.heading-strong(--display-sm --md); } } h5 { @include mx.heading-medium(--display --sm); @include media.media('<=md') { @include mx.heading-medium(--display-sm --sm); } } h6 { @include mx.heading-faint(--display --xs); @include media.media('<=md') { @include mx.heading-faint(--display-sm --xs); } } } } }