From 365c56edcc36b5b92902bac01ce44b43d01e8685 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 18 Oct 2024 18:08:24 +0200 Subject: Refactoring --- src/scopes/_blockquotes.scss | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/scopes/_blockquotes.scss (limited to 'src/scopes/_blockquotes.scss') diff --git a/src/scopes/_blockquotes.scss b/src/scopes/_blockquotes.scss new file mode 100644 index 0000000..7f93e42 --- /dev/null +++ b/src/scopes/_blockquotes.scss @@ -0,0 +1,25 @@ +@use 'sass:meta'; +@use 'iro-sass/src/iro-sass' as iro; +@use '../props'; + +@forward 'blockquotes.vars'; +@use 'blockquotes.vars' as vars; + +@mixin styles { + @include props.materialize(meta.module-variables('vars')); + + @include iro.bem-scope('blockquotes') { + blockquote { + padding-inline-start: calc(props.get(vars.$indent) - props.get(vars.$border-width)); + margin-block: props.get(vars.$margin-bs); + margin-inline: 1px 0; + border-inline-start: props.get(vars.$border-width) solid props.get(vars.$border-color); + } + + @include iro.bem-modifier('compact') { + blockquote { + padding-inline-start: calc(props.get(vars.$compact--indent) - props.get(vars.$border-width)); + } + } + } +} -- cgit v1.2.3-70-g09d2