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

    @include layout(namespace()) {
        @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;
            padding-right:  prop(--dims --outer, $global: true);
            font-size:      1 / 16 * 15em;

            &::after {
                content:      '';
                width:        100%;
                height:       100%;
                margin-right: prop(--dims --outer-spacing, $global: true);
                margin-left:  prop(--dims --outer-spacing, $global: true);
                border-top:   1px solid prop(--colors --border);
            }
        }

        @include media('<=sm') {
            @include element('head') {
                padding-right: 0;
            }
        }
    }
}