summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_main.scss
blob: 447ce560a9fa5f864aae9387894baaee358cc845 (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));
        }
    }
}