summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_container.scss
blob: 0f569e4505dd33c5d6f613c2eaae6a89ad0ae783 (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
37
@include namespace('container') {
    @include store((
        --dims: (
            --pad-x: 3rem
        )
    ));

    @include store((
        --dims: (
            --pad-x: 2rem
        )
    ), 'md');

    @include store((
        --dims: (
            --pad-x: 4%
        )
    ), '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 --spacing-y, $global: true);
            padding-bottom: prop(--dims --spacing-y, $global: true);
        }
    }
}