summaryrefslogtreecommitdiffstats
path: root/src/objects/_header.scss
blob: 773d58474bab65416d4ceae5f90c07d46f93c425 (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
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;

@include iro.props-namespace('header') {
    @include iro.props-store((
        --dims: (
            --pad-x: fn.global-dim(--size --75),
            --pad-y: fn.global-dim(--size --75)
        ),
    ), 'dims');

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

    @include iro.bem-object(iro.props-namespace()) {
        border-bottom: 1px solid fn.color(--border);

        @include iro.bem-elem('content') {
            display:          flex;
            box-sizing:       border-box;
            align-items:      center;
            height:           100%;
            padding:          fn.dim(--pad-y) fn.dim(--pad-x);
            background-color: fn.global-color(--bg);
            color:            fn.global-color(--fg);
        }
    }
}