summaryrefslogtreecommitdiffstats
path: root/src/scopes/_blockquotes.scss
blob: 8f25df9df2faf1d3bf235707fe2f2596ac4bf9c4 (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: (
            --pad-x:      fn.global-dim(--size --250),
            --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(--pad-x) - 3px);
            border-left:  3px solid fn.color(--border);
        }
    }
}