summaryrefslogtreecommitdiffstats
path: root/src/scopes/_blockquotes.scss
blob: 3525cc3020e38e16e8fa553de5344f39df8cc7a4 (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
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;

@include iro.props-namespace('blockquotes') {
    @include iro.props-store((
        --dims: (
            --indent:     fn.global-dim(--list --indent),
            --margin-top: fn.global-dim(--paragraph --margin-top),
        )
    ), 'dims');

    @include iro.props-store((
        --colors: (
            --border: fn.global-color(--obj),
        )
    ), 'colors');

    @include iro.bem-scope(iro.props-namespace()) {
        blockquote {
            margin:       fn.dim(--margin-top) 0 0 1px;
            padding-left: calc(fn.dim(--indent) - 3px);
            border-left:  3px solid fn.color(--border);
        }
    }
}