summaryrefslogtreecommitdiffstats
path: root/src/layouts/_container.scss
blob: 521262ddae5b2a65ae92d17a18948243ba25b942 (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
@use 'iro-sass/src/index' as iro;
@use 'include-media/dist/include-media' as media;
@use '../functions' as fn;

@include iro.props-namespace('container') {
    @include iro.props-store((
        --dims: (
            --width:    iro.fn-px-to-rem(700px),
            --width-50: iro.fn-px-to-rem(360px),
        )
    ), 'dims');

    @include iro.bem-layout(iro.props-namespace()) {
        @include iro.bem-modifier('narrow') {
            max-width:    fn.dim(--width);
            margin-right: auto;
            margin-left:  auto;
        }

        @include iro.bem-modifier('narrow-50') {
            max-width:    fn.dim(--width-50);
            margin-right: auto;
            margin-left:  auto;
        }
    }
}