summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_main.scss
blob: 3a64e9b7434888cd63ef88a3100f7527b7e251e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@use 'iro-sass/src/index' as iro;
@use 'iro-design/src/functions' as fn;
@use 'include-media/dist/include-media' as media;

@include iro.props-namespace('main') {
    @include iro.props-store((
        --dims: (
            --pad-top: fn.global-dim(--header --height),
        )
    ), 'dims');

    @include iro.bem-component(iro.props-namespace()) {
        margin-top: fn.dim(--pad-top);

        @include media.media('>=lg') {
            margin-top: calc(.25 * fn.dim(--pad-top));
        }
    }
}