summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_hnav.scss
blob: 4023c8216b388944c0da8c9773db2f6f650483ca (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
32
33
34
35
36
37
@use 'iro-sass/src/index' as iro;
@use 'iro-design/src/functions' as fn;

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

    @include iro.props-store((
        --dims: (
            --gap-x:         fn.global-dim(--size --300),
            --gap-y:         fn.global-dim(--size --150),
            --font-size:     .9em,
            --margin-top:    fn.global-dim(--paragraph --margin-top),
            --margin-bottom: fn.global-dim(--size --1000),
            --pad-top:       calc(fn.global-dim(--paragraph --margin-top) * .5),
        )
    ), 'dims');

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

        @include iro.bem-elem('item') {
            font-size: fn.dim(--font-size);
        }
    }
}