From 41b0d0497988274057fc2512c822a6bc9d2d3ebd Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 6 Aug 2025 16:40:56 +0200 Subject: Switch to tab indentation --- src/scopes/_headings.scss | 112 +++++++++++++++++++++++----------------------- 1 file changed, 56 insertions(+), 56 deletions(-) (limited to 'src/scopes/_headings.scss') diff --git a/src/scopes/_headings.scss b/src/scopes/_headings.scss index 32559cd..f8a7854 100644 --- a/src/scopes/_headings.scss +++ b/src/scopes/_headings.scss @@ -4,64 +4,64 @@ @use '../objects/heading.vars' as heading; @mixin styles { - /* stylelint-disable-next-line scss/dollar-variable-pattern */ - $-size-map: ( - xs: h6, - sm: h5, - md: h4, - lg: h3, - xl: h2, - xxl: h1, - ); + /* stylelint-disable-next-line scss/dollar-variable-pattern */ + $-size-map: ( + xs: h6, + sm: h5, + md: h4, + lg: h3, + xl: h2, + xxl: h1, + ); - @include bem.scope('headings') { - h1, - h2, - h3, - h4, - h5, - h6 { - display: block; - margin-block-start: props.get(heading.$margin-bs); - font-family: props.get(heading.$font-family); - font-weight: props.get(heading.$font-weight); - font-feature-settings: props.get(heading.$feature-settings); - line-height: props.get(heading.$line-height); - text-transform: none; - letter-spacing: normal; - transform: translateX(props.get(heading.$offset)); - } + @include bem.scope('headings') { + h1, + h2, + h3, + h4, + h5, + h6 { + display: block; + margin-block-start: props.get(heading.$margin-bs); + font-family: props.get(heading.$font-family); + font-weight: props.get(heading.$font-weight); + font-feature-settings: props.get(heading.$feature-settings); + line-height: props.get(heading.$line-height); + text-transform: none; + letter-spacing: normal; + transform: translateX(props.get(heading.$offset)); + } - @include bem.elem('highlight') { - background-image: linear-gradient(to top, - transparent .15em, - props.get(heading.$bg-color) .15em, - props.get(heading.$bg-color) .6em, - transparent .6em); - } + @include bem.elem('highlight') { + background-image: linear-gradient(to top, + transparent .15em, + props.get(heading.$bg-color) .15em, + props.get(heading.$bg-color) .6em, + transparent .6em); + } - @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in heading.$sizes { - #{map.get($-size-map, $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); - } - } + @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in heading.$sizes { + #{map.get($-size-map, $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 bem.modifier('display') { - @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in heading.$display--sizes { - #{map.get($-size-map, $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 bem.modifier('display') { + @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in heading.$display--sizes { + #{map.get($-size-map, $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); + } + } + } + } } -- cgit v1.2.3-70-g09d2