summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_hnav.scss
blob: 34835e995aea77f0be74c114f2965b67ffbbe065 (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
@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:           1.5em,
            --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);
        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);
        }
    }
}