summaryrefslogtreecommitdiffstats
path: root/src/scopes/_body.scss
blob: 6742a2a649148c4493f8d9007bb2ed1098b18026 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@use 'sass:meta';
@use 'iro-sass/src/bem';
@use 'iro-sass/src/props';
@use '../props' as *;

@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;
            }
        }

        ul,
        ol,
        table,
        pre,
        blockquote {
            margin-block: props.get(vars.$block--margin-b);
        }
    } 
}