summaryrefslogtreecommitdiffstats
path: root/src/scopes/_body.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-11-19 10:19:18 +0100
committerVolpeon <git@volpeon.ink>2024-11-19 10:19:18 +0100
commit0577b8d19c08e4a0d99b6da615747cf801c9cb97 (patch)
treede9749e737d6a3877c9c6e1b723b868227b5fb91 /src/scopes/_body.scss
parentNavbar: Better icon integration (diff)
downloadiro-design-0577b8d19c08e4a0d99b6da615747cf801c9cb97.tar.gz
iro-design-0577b8d19c08e4a0d99b6da615747cf801c9cb97.tar.bz2
iro-design-0577b8d19c08e4a0d99b6da615747cf801c9cb97.zip
Add body scope
Diffstat (limited to 'src/scopes/_body.scss')
-rw-r--r--src/scopes/_body.scss35
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}