summaryrefslogtreecommitdiffstats
path: root/src/scopes/_blockquotes.scss
blob: 37dc565610f7a1f17845ab79e80c1a6d2f2d8f6b (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-hi),
        )
    ), '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);
        }
    }
}