diff options
Diffstat (limited to 'src/scopes/_body.scss')
-rw-r--r-- | src/scopes/_body.scss | 35 |
1 files changed, 35 insertions, 0 deletions
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 @@ | |||
1 | @use '@/styles/common' as iro; | ||
2 | @use 'iro-sass/src/bem'; | ||
3 | @use 'iro-sass/src/props'; | ||
4 | |||
5 | @forward 'body.vars'; | ||
6 | @use 'body.vars' as vars; | ||
7 | |||
8 | @mixin styles { | ||
9 | @include materialize-at-root(meta.module-variables('vars')); | ||
10 | |||
11 | @include bem.scope('body') { | ||
12 | font-size: props.get(vars.$font-size); | ||
13 | |||
14 | p { | ||
15 | margin-block-start: props.get(vars.$paragraph--margin-bs); | ||
16 | } | ||
17 | |||
18 | img { | ||
19 | display: block; | ||
20 | inline-size: auto; | ||
21 | max-inline-size: 100%; | ||
22 | block-size: auto; | ||
23 | max-block-size: props.get(vars.$img--max-block-size); | ||
24 | margin-block: props.get(vars.$block--margin-b); | ||
25 | } | ||
26 | |||
27 | figure { | ||
28 | margin-block: props.get(vars.$block--margin-b); | ||
29 | |||
30 | img { | ||
31 | margin-block: 0; | ||
32 | } | ||
33 | } | ||
34 | } | ||
35 | } | ||