summaryrefslogtreecommitdiffstats
path: root/src/scopes/_headings.scss
blob: 5b05b45abf4f08abde7b75a1527c0370e17fb21b (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
70
71
72
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;
@use '../mixins' as mx;

@include iro.props-namespace('headings') {
    @include iro.bem-scope(iro.props-namespace()) {
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            @include mx.set-font(--headline);

            display:        block;
            transform:      translateX(-.06em);
            letter-spacing: normal;
            text-transform: none;
        }


        h1 {
            @include mx.heading-strong(fn.global-dim(--heading --lg));
        }

        h2 {
            @include mx.heading-medium(fn.global-dim(--heading --md));
        }

        h3,
        h4,
        h5,
        h6 {
            @include mx.heading-faint(fn.global-dim(--heading --sm));
        }

        @include iro.bem-modifier('display') {
            h1,
            h2,
            h3,
            h4,
            h5,
            h6 {
                @include mx.set-font(--headline);
            }

            h1 {
                @include mx.heading-strong(fn.global-dim(--heading --display --xxl));
            }
    
            h2 {
                @include mx.heading-strong(fn.global-dim(--heading --display --xl));
            }
    
            h3 {
                @include mx.heading-strong(fn.global-dim(--heading --display --lg));
            }
    
            h4 {
                @include mx.heading-strong(fn.global-dim(--heading --display --md));
            }

            h5 {
                @include mx.heading-medium(fn.global-dim(--heading --display --sm));
            }

            h6 {
                @include mx.heading-faint(fn.global-dim(--heading --display --xs));
            }
        }
    }
}