|
1 | 1 | // Headings |
2 | | -.h000-mktg, |
3 | | -.h00-mktg, |
4 | 2 | .h0-mktg, |
5 | 3 | .h1-mktg, |
6 | 4 | .h2-mktg, |
7 | 5 | .h3-mktg, |
8 | 6 | .h4-mktg, |
9 | 7 | .h5-mktg, |
10 | | -.h6-mktg, |
11 | | -.lead-mktg { |
| 8 | +.h6-mktg { |
12 | 9 | font-family: $font-mktg; |
13 | | - font-weight: $font-weight-semibold; |
14 | | -} |
15 | | - |
16 | | -@mixin h000-mktg { |
17 | | - font-size: $h000-size-mobile !important; |
18 | | - @include breakpoint(md) { font-size: $h000-size !important; } |
19 | | -} |
20 | | - |
21 | | -.h000-mktg { @include h000-mktg; } |
22 | | - |
23 | | -@mixin h00-mktg { |
24 | | - font-size: $h00-size-mobile !important; |
25 | | - @include breakpoint(md) { font-size: $h00-size !important; } |
26 | | -} |
27 | | - |
28 | | -.h00-mktg { @include h00-mktg; } |
29 | | - |
30 | | -@mixin h0-mktg { |
31 | | - font-size: $h0-size-mobile !important; |
32 | | - @include breakpoint(md) { font-size: $h0-size !important; } |
33 | | -} |
34 | | - |
35 | | -.h0-mktg { @include h0-mktg; } |
36 | | - |
37 | | -@mixin h1-mktg { |
38 | | - font-size: $h1-size-mobile !important; |
39 | | - @include breakpoint(md) { font-size: $h1-size !important; } |
40 | | -} |
41 | | - |
42 | | -.h1-mktg { @include h1-mktg; } |
43 | | - |
44 | | -@mixin h2-mktg { |
45 | | - font-size: $h2-size-mobile !important; |
46 | | - @include breakpoint(md) { font-size: $h2-size !important; } |
| 10 | + font-feature-settings: $mktg-font-feature-settings; |
| 11 | + font-weight: $mktg-header-weight-default !important; |
| 12 | + letter-spacing: $mktg-header-spacing-default !important; |
47 | 13 | } |
48 | 14 |
|
49 | | -.h2-mktg { @include h2-mktg; } |
50 | | - |
51 | | -@mixin h3-mktg { |
52 | | - font-size: $h3-size-mobile !important; |
53 | | - @include breakpoint(md) { font-size: $h3-size !important; } |
54 | | -} |
55 | | - |
56 | | -.h3-mktg { @include h3-mktg; } |
57 | | - |
58 | | -.h4-mktg { |
59 | | - font-size: $h4-size !important; |
60 | | -} |
61 | | - |
62 | | -.h5-mktg { |
63 | | - font-size: $h5-size !important; |
| 15 | +@each $header, $sizes in $mktg-headers { |
| 16 | + .h#{$header}-mktg { |
| 17 | + $pairing: map-get($mktg-header-pairings, nth($sizes, 1)); |
| 18 | + $pairing-md: map-get($mktg-header-pairings, nth($sizes, 2)); |
| 19 | + $pairing-lg: map-get($mktg-header-pairings, nth($sizes, 3)); |
| 20 | + |
| 21 | + font-size: map-get($pairing, "size") !important; |
| 22 | + line-height: map-get($pairing, "lh") !important; |
| 23 | + @if (map-get($pairing, "size") >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; } |
| 24 | + |
| 25 | + @if (nth($sizes, 1) != nth($sizes, 2)) { |
| 26 | + @include breakpoint(md) { |
| 27 | + font-size: map-get($pairing-md, "size") !important; |
| 28 | + line-height: map-get($pairing-md, "lh") !important; |
| 29 | + @if (map-get($pairing-md, "size") >= $mktg-header-spacing-threshold and map-get($pairing, "size") < $mktg-header-spacing-threshold) { |
| 30 | + letter-spacing: $mktg-header-spacing-large; |
| 31 | + } |
| 32 | + @if (map-get($pairing-md, "size") >= $mktg-header-weight-threshold and map-get($pairing, "size") < $mktg-header-weight-threshold) { |
| 33 | + font-weight: $mktg-header-weight-large !important; |
| 34 | + } |
| 35 | + } |
| 36 | + } |
| 37 | + |
| 38 | + @if (nth($sizes, 2) != nth($sizes, 3)) { |
| 39 | + @include breakpoint(lg) { |
| 40 | + font-size: map-get($pairing-lg, "size") !important; |
| 41 | + line-height: map-get($pairing-lg, "lh") !important; |
| 42 | + @if (map-get($pairing-lg, "size") >= $mktg-header-spacing-threshold and map-get($pairing-md, "size") < $mktg-header-spacing-threshold) { |
| 43 | + letter-spacing: $mktg-header-spacing-large; |
| 44 | + } |
| 45 | + @if (map-get($pairing-lg, "size") >= $mktg-header-weight-threshold and map-get($pairing-md, "size") < $mktg-header-weight-threshold) { |
| 46 | + font-weight: $mktg-header-weight-large !important; |
| 47 | + } |
| 48 | + } |
| 49 | + } |
| 50 | + } |
64 | 51 | } |
65 | 52 |
|
66 | | -.h6-mktg { |
67 | | - font-size: $h6-size !important; |
| 53 | +.f0-mktg, |
| 54 | +.f1-mktg, |
| 55 | +.f2-mktg, |
| 56 | +.f3-mktg, |
| 57 | +.f4-mktg, |
| 58 | +.f5-mktg, |
| 59 | +.f6-mktg { |
| 60 | + font-family: $font-mktg; |
| 61 | + font-feature-settings: $mktg-font-feature-settings; |
| 62 | + font-weight: $font-weight-normal !important; |
68 | 63 | } |
69 | 64 |
|
70 | | -// Big opening paragraphs |
71 | | -@mixin lead-mktg { |
72 | | - font-size: $h3-size; |
73 | | - font-weight: $font-weight-normal; |
| 65 | +@each $body, $sizes in $mktg-bodies { |
| 66 | + .f#{$body}-mktg { |
| 67 | + $pairing: map-get($mktg-body-pairings, nth($sizes, 1)); |
| 68 | + font-size: map-get($pairing, "size") !important; |
| 69 | + line-height: map-get($pairing, "lh") !important; |
| 70 | + @if (map-get($pairing, "size") >= 28px) { letter-spacing: $mktg-header-spacing-default !important; } |
| 71 | + @if (map-get($pairing, "size") >= 24px) { font-weight: $font-weight-semibold !important; } |
| 72 | + |
| 73 | + @if (nth($sizes, 1) != nth($sizes, 2)) { |
| 74 | + @include breakpoint(md) { |
| 75 | + $pairing: map-get($mktg-body-pairings, nth($sizes, 2)); |
| 76 | + font-size: map-get($pairing, "size") !important; |
| 77 | + line-height: map-get($pairing, "lh") !important; |
| 78 | + @if (map-get($pairing, "size") >= 28px) { letter-spacing: $mktg-header-spacing-default !important; } |
| 79 | + @if (map-get($pairing, "size") >= 24px) { font-weight: $font-weight-semibold !important; } |
| 80 | + } |
| 81 | + } |
| 82 | + |
| 83 | + @if (nth($sizes, 2) != nth($sizes, 3)) { |
| 84 | + @include breakpoint(lg) { |
| 85 | + $pairing: map-get($mktg-body-pairings, nth($sizes, 3)); |
| 86 | + font-size: map-get($pairing, "size") !important; |
| 87 | + line-height: map-get($pairing, "lh") !important; |
| 88 | + @if (map-get($pairing, "size") >= 28px) { letter-spacing: $mktg-header-spacing-default !important; } |
| 89 | + @if (map-get($pairing, "size") >= 24px) { font-weight: $font-weight-semibold !important; } |
| 90 | + } |
| 91 | + } |
| 92 | + } |
74 | 93 | } |
75 | 94 |
|
76 | | -.lead-mktg { @include lead-mktg; } |
77 | | - |
78 | 95 | // Pullquote |
79 | 96 |
|
80 | 97 | @mixin pullquote { |
|
0 commit comments