summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_section-heading.scss
blob: e904943b98be6af49b984857a133ea3302e4c61c (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
@include namespace('section-heading') {
    @include store((
        --dims: (
            --pad-y: $line-height * 1rem
        ),
        --colors: (
            --line: prop(--colors --accent --color, $global: true),
        )
    ));

    @include component(namespace()) {
        margin:         0 0 prop(--dims --pad-y);
        font-size:      1 / 16 * 12em;
        font-weight:    550;
        letter-spacing: .2em;
        text-transform: uppercase;

        &::before {
            content:          '';
            display:          inline-block;
            width:            3em;
            height:           2px;
            margin-right:     1.3em;
            background-color: prop(--colors --line);
            vertical-align:   middle;
        }
    }
}