summaryrefslogtreecommitdiffstats
path: root/assets/css/scopes/_body.scss
blob: 96231ada4a1b51206ae2e5e39765ebea51344b94 (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
@include namespace('body') {
    @include store((
        --colors: (
            --meta: (
                --fg: prop(--colors --fg-hi, $global: true),
            )
        )
    ));

    @include scope(namespace()) {
        font-size: 1 / 16 * 19em;

        @include element('meta') {
            color:     prop(--colors --meta --fg);
            font-size: 1 / 16 * 15rem;

            + h1 {
                margin-top: $line-height * .5rem;
            }
        }

        img {
            max-width: 100%;
        }

        @include media('<=sm') {
            font-size: 1 / 16 * 17em;
        }

        @include media('<=xs') {
            font-size: 1em;
        }
    }
}