From 5855a6821cf5585378a70f9bee13563bdbfe2d86 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 22 Oct 2024 08:23:33 +0200 Subject: Less broad imports --- src/scopes/_blockquotes.scss | 6 +++--- src/scopes/_code.scss | 4 ++-- src/scopes/_headings.scss | 8 ++++---- src/scopes/_implicit.scss | 2 +- src/scopes/_links.scss | 10 +++++----- src/scopes/_lists.scss | 6 +++--- src/scopes/_tables.scss | 8 ++++---- 7 files changed, 22 insertions(+), 22 deletions(-) (limited to 'src/scopes') diff --git a/src/scopes/_blockquotes.scss b/src/scopes/_blockquotes.scss index 7406c89..7989cb7 100644 --- a/src/scopes/_blockquotes.scss +++ b/src/scopes/_blockquotes.scss @@ -1,5 +1,5 @@ @use 'sass:meta'; -@use 'iro-sass/src/iro-sass' as iro; +@use 'iro-sass/src/bem' as bem; @use 'iro-sass/src/props'; @use '../props' as *; @@ -9,7 +9,7 @@ @mixin styles { @include materialize-at-root(meta.module-variables('vars')); - @include iro.bem-scope('blockquotes') { + @include bem.scope('blockquotes') { blockquote { padding-inline-start: calc(props.get(vars.$indent) - props.get(vars.$border-width)); margin-block: props.get(vars.$margin-bs); @@ -17,7 +17,7 @@ border-inline-start: props.get(vars.$border-width) solid props.get(vars.$border-color); } - @include iro.bem-modifier('compact') { + @include bem.modifier('compact') { blockquote { padding-inline-start: calc(props.get(vars.$compact--indent) - props.get(vars.$border-width)); } diff --git a/src/scopes/_code.scss b/src/scopes/_code.scss index 5035879..367a110 100644 --- a/src/scopes/_code.scss +++ b/src/scopes/_code.scss @@ -1,5 +1,5 @@ @use 'sass:meta'; -@use 'iro-sass/src/iro-sass' as iro; +@use 'iro-sass/src/bem' as bem; @use 'iro-sass/src/props'; @use '../props' as *; @@ -9,7 +9,7 @@ @mixin styles { @include materialize-at-root(meta.module-variables('vars')); - @include iro.bem-scope('code') { + @include bem.scope('code') { code { padding-block: props.get(vars.$inline--pad-b); padding-inline: props.get(vars.$inline--pad-i); diff --git a/src/scopes/_headings.scss b/src/scopes/_headings.scss index c786a75..415fb15 100644 --- a/src/scopes/_headings.scss +++ b/src/scopes/_headings.scss @@ -1,5 +1,5 @@ @use 'sass:map'; -@use 'iro-sass/src/iro-sass' as iro; +@use 'iro-sass/src/bem' as bem; @use 'iro-sass/src/props'; @use '../objects/heading.vars' as heading; @@ -14,7 +14,7 @@ xxl: h1, ); - @include iro.bem-scope('headings') { + @include bem.scope('headings') { h1, h2, h3, @@ -32,7 +32,7 @@ transform: translateX(props.get(heading.$offset)); } - @include iro.bem-elem('highlight') { + @include bem.elem('highlight') { background-image: linear-gradient(to top, transparent .15em, props.get(heading.$bg-color) .15em, @@ -51,7 +51,7 @@ } } - @include iro.bem-modifier('display') { + @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); diff --git a/src/scopes/_implicit.scss b/src/scopes/_implicit.scss index 7b1f43b..707339e 100644 --- a/src/scopes/_implicit.scss +++ b/src/scopes/_implicit.scss @@ -1,6 +1,6 @@ @use 'sass:math'; @use 'sass:meta'; -@use 'iro-sass/src/iro-sass' as iro; +@use 'iro-sass/src/bem' as bem; @use 'iro-sass/src/props'; @use '../props' as *; @use '../core.vars' as core; diff --git a/src/scopes/_links.scss b/src/scopes/_links.scss index 41472c7..8ecf0ae 100644 --- a/src/scopes/_links.scss +++ b/src/scopes/_links.scss @@ -1,7 +1,7 @@ @use 'sass:map'; @use 'sass:meta'; @use 'sass:string'; -@use 'iro-sass/src/iro-sass' as iro; +@use 'iro-sass/src/bem' as bem; @use 'iro-sass/src/props'; @use '../props' as *; @@ -11,7 +11,7 @@ @mixin styles { @include materialize-at-root(meta.module-variables('vars')); - @include iro.bem-scope('links') { + @include bem.scope('links') { :link, :visited { color: currentColor; @@ -40,14 +40,14 @@ } } - @include iro.bem-modifier('invisible') { + @include bem.modifier('invisible') { :link, :visited { text-decoration: none; } } - @include iro.bem-modifier('colored') { + @include bem.modifier('colored') { :link { color: props.get(vars.$colored--text-color); text-decoration-color: props.get(vars.$colored--underline-color); @@ -68,7 +68,7 @@ } @each $theme in map.keys(props.get(vars.$static-themes)) { - @include iro.bem-modifier(string.slice($theme, 3)) { + @include bem.modifier(string.slice($theme, 3)) { :link, :visited { color: props.get(vars.$static-themes, $theme, --text-color); diff --git a/src/scopes/_lists.scss b/src/scopes/_lists.scss index 7f18df0..0cf8c54 100644 --- a/src/scopes/_lists.scss +++ b/src/scopes/_lists.scss @@ -1,5 +1,5 @@ @use 'sass:meta'; -@use 'iro-sass/src/iro-sass' as iro; +@use 'iro-sass/src/bem' as bem; @use 'iro-sass/src/props'; @use '../props' as *; @use '../core.vars' as core; @@ -10,7 +10,7 @@ @mixin styles { @include materialize-at-root(meta.module-variables('vars')); - @include iro.bem-scope('lists') { + @include bem.scope('lists') { ul, ol { padding-inline-start: props.get(vars.$indent); @@ -46,7 +46,7 @@ margin-inline: props.get(vars.$indent) 0; } - @include iro.bem-modifier('compact') { + @include bem.modifier('compact') { ul, ol { padding-inline-start: calc(props.get(vars.$compact--indent) - 3px); diff --git a/src/scopes/_tables.scss b/src/scopes/_tables.scss index 08df871..e50f134 100644 --- a/src/scopes/_tables.scss +++ b/src/scopes/_tables.scss @@ -1,5 +1,5 @@ @use 'sass:meta'; -@use 'iro-sass/src/iro-sass' as iro; +@use 'iro-sass/src/bem' as bem; @use 'iro-sass/src/props'; @use '../props' as *; @use '../objects/table.vars' as table; @@ -10,7 +10,7 @@ @mixin styles { @include materialize-at-root(meta.module-variables('vars')); - @include iro.bem-scope('tables') { + @include bem.scope('tables') { table { margin-block-start: props.get(vars.$margin-bs); border-spacing: 0; @@ -46,7 +46,7 @@ } } - @include iro.bem-modifier('flush') { + @include bem.modifier('flush') { th, td { &:first-child { @@ -59,7 +59,7 @@ } } - @include iro.bem-modifier('box') { + @include bem.modifier('box') { td { background-color: props.get(table.$box--bg-color); -- cgit v1.2.3-70-g09d2