summaryrefslogtreecommitdiffstats
path: root/assets/css/scopes/_headlines.scss
blob: 367e093a01a42b4f6978fb9f3f4c87aaa46cb8e7 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@include namespace('headlines') {
    @include store((
        --colors: (
            --emph: (
                --bg: prop(--colors --bg-hi, $global: true),
            )
        )
    ));

    @include scope(namespace()) {
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family:           $font-fam--large;
            font-weight:           600;
            line-height:           1.4;
            font-feature-settings: 'ss02' 1;
        }

        h1,
        h2,
        h3,
        h4 {
            transform: translateX(-.06em);
        }

        h1 {
            @include iro-responsive-modular-scale(font-size, 3, $responsive-mod-scale);
        }

        h2 {
            @include iro-responsive-modular-scale(font-size, 2, $responsive-mod-scale);
        }

        h3 {
            @include iro-responsive-modular-scale(font-size, 1, $responsive-mod-scale);

            text-transform: uppercase;
        }

        h4,
        h5,
        h6 {
            @include iro-responsive-modular-scale(font-size, 0, $responsive-mod-scale);

            letter-spacing: .5px;
            text-transform: uppercase;
        }

        h5,
        h6 {
            color:       currentColor;
            font-weight: 400;
        }

        @include element('title-inner') {
            background-image: linear-gradient(
                to top,
                transparent .15em,
                #{prop(--colors --emph --bg)} .15em,
                #{prop(--colors --emph --bg)} .6em,
                transparent .6em
            );
        }
    }
}