summaryrefslogtreecommitdiffstats
path: root/src/scopes/_blockquotes.scss
blob: 91a778586e625d6b3db2920076fe6c1380e78a19 (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
@use 'sass:meta';
@use 'iro-sass/src/bem';
@use 'iro-sass/src/props';
@use '../props' as *;

@forward 'blockquotes.vars';
@use 'blockquotes.vars' as vars;

@mixin styles {
    @include materialize-at-root(meta.module-variables('vars'));

    @include bem.scope('blockquotes') {
        blockquote {
            padding-inline-start: calc(props.get(vars.$indent) - props.get(vars.$border-width));
            margin-block:         props.get(vars.$margin-bs) 0;
            margin-inline:        1px 0;
            border-inline-start:  props.get(vars.$border-width) solid props.get(vars.$border-color);
        }

        @include bem.modifier('compact') {
            blockquote {
                padding-inline-start: calc(props.get(vars.$compact--indent) - props.get(vars.$border-width));
            }
        }
    }
}