|
65 | 65 | @each $body, $sizes in $mktg-bodies { |
66 | 66 | .f#{$body}-mktg { |
67 | 67 | $pairing: map-get($mktg-body-pairings, nth($sizes, 1)); |
| 68 | + $pairing-md: map-get($mktg-body-pairings, nth($sizes, 2)); |
| 69 | + $pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3)); |
| 70 | + |
68 | 71 | font-size: map-get($pairing, "size") !important; |
69 | 72 | 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; } |
| 73 | + @if (map-get($pairing, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; } |
| 74 | + @if (map-get($pairing, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold !important; } |
72 | 75 |
|
73 | 76 | @if (nth($sizes, 1) != nth($sizes, 2)) { |
74 | 77 | @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; } |
| 78 | + font-size: map-get($pairing-md, "size") !important; |
| 79 | + line-height: map-get($pairing-md, "lh") !important; |
| 80 | + @if (map-get($pairing-md, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; } |
| 81 | + @if (map-get($pairing-md, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold !important; } |
80 | 82 | } |
81 | 83 | } |
82 | 84 |
|
83 | 85 | @if (nth($sizes, 2) != nth($sizes, 3)) { |
84 | 86 | @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; } |
| 87 | + font-size: map-get($pairing-lg, "size") !important; |
| 88 | + line-height: map-get($pairing-lg, "lh") !important; |
| 89 | + @if (map-get($pairing-lg, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; } |
| 90 | + @if (map-get($pairing-lg, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold !important; } |
90 | 91 | } |
91 | 92 | } |
92 | 93 | } |
|
0 commit comments