summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_landing.scss
blob: 500849e5c65680423b1b77f8d501b9cf7d3f6014 (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
@include namespace('landing') {
    @include store((
        --dims: (
            --banner-width: 30rem,
        ),
        --colors: (
            --banner-bg: prop(--colors --bg, $global: true)
        )
    ));

    @include layout(namespace()) {
        display:        flex;
        flex-direction: row;
        align-items:    center;

        @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;
            }
        }
    }
}