summaryrefslogtreecommitdiffstats
path: root/assets/css/scopes/_body.scss
blob: b44e08348d212b8daf58c2183a7809fe36affef7 (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
@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%;
        }

        blockquote,
        pre {
            margin:       ($line-height * 1rem) 0 0;
            padding-left: calc(#{prop(--dims --indent, $global: true)} - 3px);
            border-left:  3px solid prop(--colors --obj, $global: true);
        }

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

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