summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_section.scss
blob: 80b8ca96f84bac7de68765ae4c619f05c30daa1b (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@include namespace('section') {
    @include store((
        --colors: (
            --border:  prop(--colors --obj-hi, $global: true),
            --body-bg: transparent,
        )
    ));

    @include store((
        --colors: (
            --body-bg: prop(--colors --bg-hi, $global: true),
        )
    ), 'light');

    @include layout(namespace()) {
        position: relative;

        @include modifier('flex') {
            display:         flex;
            flex-direction:  column;
            align-items:     stretch;
            justify-content: flex-start;
        }

        @include modifier('fullscreen') {
            box-sizing:     border-box;
            min-height:     100vh;
            margin-bottom:  calc(-1 * #{prop(--dims --outer, $global: true)});
            padding-bottom: prop(--dims --outer, $global: true);
        }

        @include modifier('body') {
            background-color: prop(--colors --body-bg);
        }

        @include modifier('no-header') {
            padding-top: prop(--dims --outer, $global: true);
        }

        @include element('header') {
            display:        flex;
            flex-direction: row;
            align-items:    center;
            height:         prop(--dims --outer, $global: true);
            font-size:      1 / 16 * 15em;

            @include modifier('sticky') {
                position: sticky;
                z-index:  9000;
                top:      0;
                left:     0;
            }
        }

        /*@include element('footer') {
            position:  absolute;
            z-index:   10000;
            right:     0;
            bottom:    0;
            height:    prop(--dims --outer, $global: true);
            font-size: 1 / 16 * 15em;
        }*/

        @include element('header-separator') {
            flex:         1 1 auto;
            width:        100%;
            height:       100%;
            margin-top:   -1px;
            margin-right: prop(--container --dims --pad-x, $global: true);
            margin-left:  prop(--container --dims --pad-x, $global: true);
            border-top:   1px solid prop(--colors --border);
        }
    }
}