summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_hnav.scss
blob: 409737348665bda1799cefd9e50437bc6861366f (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
@use 'iro-sass/src/index' as iro;
@use 'iro-design/src/functions' as fn;

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

    @include iro.props-store((
        --dims: (
            --margin-top: fn.global-dim(--size --600),
            --gap:        2em,
            --pad-y:      .5em
        )
    ), 'dims');

    @include iro.bem-component(iro.props-namespace()) {
        display:      flex;
        gap:          fn.dim(--gap);
        align-items:  baseline;
        margin-top:   fn.dim(--margin-top);
        padding:      fn.dim(--pad-y) 0 0;
        border-width: 1px 0 0;
        border-style: solid;
        border-color: fn.color(--border);
    }
}