summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_landing.scss
blob: d1169dd3cbcfa8242ec4ecd9ca0ed49582565955 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@include namespace('landing') {
    @include store((
        --dims: (
            --banner-width: 30rem,
        ),
        --colors: (
            --banner-bg: prop(--colors --bg, $global: true)
        )
    ));

    @include layout(namespace()) {
        display:        flex;
        box-sizing:     border-box;
        flex-direction: row;
        align-items:    center;
        min-height:     100%;
        margin-bottom:  calc(-1 * #{prop(--dims --outer, $global: true)});
        padding-bottom: prop(--dims --outer, $global: true);

        @include element('banner') {
            width:            70%;
            max-width:        prop(--dims --banner-width);
            background-color: prop(--colors --banner-bg);
        }

        @include element('content') {
            width: 100%;
        }

        @include iro-responsive-env(('md', 'lg')) {
            padding-right: iro-responsive-set((0, 3rem));
            padding-left:  iro-responsive-set((0, 6rem));
        }

        @include media('<=md') {
            display: block;

            @include element('side') {
                display: none;

                @include sibling-element('side') {
                    display: block;
                }
            }

            @include element('banner', 'content') {
                width:   auto;
                padding: 0;
            }

            @include element('banner') {
                max-width: none;
            }
        }
    }
}