summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_container.scss
blob: ae23042fef7e3a86db835445b72d85365684c4c7 (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
@include namespace('container') {
    @include store((
        --dims: (
            --pad-x: 2rem,
            --pad-y: 4rem,
        )
    ));

    @include store((
        --dims: (
            --pad-x: 1rem,
            --pad-y: 3rem,
        )
    ), 'sm');

    @include layout(namespace()) {
        @include modifier('content') {
            max-width:    $content--width;
            margin-right: auto;
            margin-left:  auto;
        }

        @include modifier('pad-x') {
            padding-right: prop(--dims --pad-x);
            padding-left:  prop(--dims --pad-x);
        }

        @include modifier('pad-y') {
            padding-top:    prop(--dims --pad-y);
            padding-bottom: prop(--dims --pad-y);
        }
    }
}