|
40 | 40 | } |
41 | 41 |
|
42 | 42 | // Responsive heading mixins |
43 | | -// There are no responsive mixins for h5 and h6 because they are small |
| 43 | +// There are no responsive mixins for h4—h6 because they are small |
44 | 44 | // and don't need to be smaller on mobile. |
45 | | -@mixin h1-reponsive { |
46 | | - font-size: 26px; |
47 | | - font-weight: $font-weight-bold; |
| 45 | +@mixin f1-responsive { |
| 46 | + font-size: $h1-size-mobile; |
48 | 47 |
|
49 | | - // Up to 32px in future |
50 | | - @include breakpoint(md) { font-size: 30px; } |
| 48 | + // 32px on desktop |
| 49 | + @include breakpoint(md) { font-size: $h1-size; } |
51 | 50 |
|
52 | 51 | } |
53 | 52 |
|
54 | | -@mixin h2-responsive { |
55 | | - font-size: 20px; |
56 | | - font-weight: $font-weight-bold; |
| 53 | +@mixin f2-responsive { |
| 54 | + font-size: $h2-size-mobile; |
57 | 55 |
|
58 | | - // Up to 22px or 24px in future |
59 | | - @include breakpoint(md) { font-size: 21px; } |
| 56 | + // 24px on desktop |
| 57 | + @include breakpoint(md) { font-size: $h2-size; } |
60 | 58 | } |
61 | 59 |
|
62 | | -@mixin h3-responsive { |
63 | | - font-size: 14px; |
64 | | - font-weight: $font-weight-bold; |
| 60 | +@mixin f3-responsive { |
| 61 | + font-size: $h3-size-mobile; |
65 | 62 |
|
66 | | - @include breakpoint(md) { font-size: 16px; } |
| 63 | + // 20px on desktop |
| 64 | + @include breakpoint(md) { font-size: $h3-size; } |
67 | 65 |
|
68 | 66 | } |
69 | 67 |
|
70 | | -@mixin h4-responsive { |
71 | | - font-size: 13px; |
| 68 | +// These use the mixins from above for responsive heading sizes. |
| 69 | +// The following mixins can be used where it's convenient or necessary to |
| 70 | +// couple the responsive font-size with the font-weight. |
| 71 | +@mixin h1-responsive { |
| 72 | + @include f1-responsive; |
72 | 73 | font-weight: $font-weight-bold; |
| 74 | +} |
73 | 75 |
|
74 | | - @include breakpoint(md) { font-size: 14px; } |
| 76 | +@mixin h2-responsive { |
| 77 | + @include f2-responsive; |
| 78 | + font-weight: $font-weight-bold; |
| 79 | +} |
75 | 80 |
|
| 81 | +@mixin h3-responsive { |
| 82 | + @include f3-responsive; |
| 83 | + font-weight: $font-weight-bold; |
76 | 84 | } |
0 commit comments