From cad79b949b060cd360582c2d208b37a51578e778 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 7 Feb 2022 10:56:11 +0100 Subject: Improved font handling --- src/objects/_heading.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/objects/_heading.scss') diff --git a/src/objects/_heading.scss b/src/objects/_heading.scss index 7d67a87..2af8e19 100644 --- a/src/objects/_heading.scss +++ b/src/objects/_heading.scss @@ -1,7 +1,5 @@ @use 'iro-sass/src/index' as iro; @use '../functions' as fn; -@use '../vars'; -@use '../mixins/typography'; @include iro.props-namespace('heading') { @include iro.props-store(( @@ -22,7 +20,7 @@ ), 'colors'); @include iro.bem-object(iro.props-namespace()) { - @include typography.set-font(vars.$font--headline); + @include fn.set-font(--headline); display: block; margin-top: fn.dim(--in-page-margin --top); @@ -53,7 +51,7 @@ } @include iro.bem-modifier('sm') { - @include typography.set-font($font--main, (line-height: map-get(vars.$font--headline, line-height))); + @include fn.set-font(--standard, (--line-height: fn.global-dim(--font --headline --line-height))); color: fn.color(--strong); font-size: fn.global-dim(--font-size --md); @@ -61,7 +59,7 @@ } @include iro.bem-modifier('xs') { - @include typography.set-font($font--main, (line-height: map-get(vars.$font--headline, line-height))); + @include fn.set-font(--standard, (--line-height: fn.global-dim(--font --headline --line-height))); color: fn.color(--light); font-size: fn.global-dim(--font-size --xs); -- cgit v1.2.3-54-g00ecf