summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_section.scss
blob: 1a1bc0bbf90c31acd8041d34e1795c5ffcce4eb5 (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
@include namespace('section') {
    @include store((
        --colors: (
            --border: prop(--colors --obj-hi, $global: true),
        ),
        --dims: (
            --banner-blur: .5rem,
        )
    ));

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

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

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

        @include element('head') {
            display:        flex;
            position:       sticky;
            z-index:        9000;
            top:            0;
            left:           0;
            flex-direction: row;
            justify-self:   flex-start;
            font-size:      1 / 16 * 15em;

            &::after {
                content:      '';
                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);
            }
        }
    }
}