From 0577b8d19c08e4a0d99b6da615747cf801c9cb97 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 19 Nov 2024 10:19:18 +0100 Subject: Add body scope --- src/scopes/_body.scss | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/scopes/_body.scss (limited to 'src/scopes/_body.scss') diff --git a/src/scopes/_body.scss b/src/scopes/_body.scss new file mode 100644 index 0000000..eb39e8c --- /dev/null +++ b/src/scopes/_body.scss @@ -0,0 +1,35 @@ +@use '@/styles/common' as iro; +@use 'iro-sass/src/bem'; +@use 'iro-sass/src/props'; + +@forward 'body.vars'; +@use 'body.vars' as vars; + +@mixin styles { + @include materialize-at-root(meta.module-variables('vars')); + + @include bem.scope('body') { + font-size: props.get(vars.$font-size); + + p { + margin-block-start: props.get(vars.$paragraph--margin-bs); + } + + img { + display: block; + inline-size: auto; + max-inline-size: 100%; + block-size: auto; + max-block-size: props.get(vars.$img--max-block-size); + margin-block: props.get(vars.$block--margin-b); + } + + figure { + margin-block: props.get(vars.$block--margin-b); + + img { + margin-block: 0; + } + } + } +} -- cgit v1.2.3-70-g09d2