|
| 1 | +@use "sass:math"; |
1 | 2 | @import "headline.variables";
|
2 | 3 |
|
3 |
| -h1, |
4 |
| -h2, |
5 |
| -h3 { |
6 |
| - &.elm-headline { |
7 |
| - font-family: $db-font-family-headline; |
8 |
| - } |
9 |
| -} |
10 |
| - |
11 | 4 | .elm-headline {
|
12 | 5 | margin-bottom: to-rem($pxValue: 16);
|
13 | 6 |
|
|
19 | 12 | h2,
|
20 | 13 | h3 {
|
21 | 14 | &.elm-headline {
|
22 |
| - font-weight: 700; |
| 15 | + font-family: $db-font-family-headline; |
| 16 | + font-weight: 900; |
23 | 17 | }
|
24 | 18 | }
|
25 | 19 |
|
26 |
| -h4 { |
| 20 | +h1 { |
27 | 21 | &.elm-headline {
|
28 |
| - font-size: $rea-main-h4-font-size; // * TODO: possibly rework variable naming |
29 |
| - font-weight: 400; |
| 22 | + font-size: to-rem( |
| 23 | + $pxValue: $rea-main-h1-font-size |
| 24 | + ); // * TODO: possibly rework variable naming |
| 25 | + line-height: math.div(40, $rea-main-h1-font-size); |
| 26 | + @media screen and (max-width: 767px) { |
| 27 | + font-size: to-rem( |
| 28 | + $pxValue: $rea-main-h1-font-size-small |
| 29 | + ); // * TODO: possibly rework variable naming |
| 30 | + line-height: 1.14; |
| 31 | + } |
30 | 32 | }
|
31 | 33 | }
|
32 | 34 |
|
33 |
| -h1 { |
| 35 | +h2 { |
34 | 36 | &.elm-headline {
|
35 |
| - font-size: $rea-main-h1-font-size; // * TODO: possibly rework variable naming |
| 37 | + font-size: to-rem( |
| 38 | + $pxValue: $rea-main-h2-font-size |
| 39 | + ); // * TODO: possibly rework variable naming |
| 40 | + line-height: math.div(28, $rea-main-h2-font-size); |
| 41 | + @media screen and (max-width: 767px) { |
| 42 | + font-size: to-rem( |
| 43 | + $pxValue: $rea-main-h2-font-size-small |
| 44 | + ); // * TODO: possibly rework variable naming |
| 45 | + line-height: 1.2; |
| 46 | + } |
36 | 47 | }
|
37 | 48 | }
|
38 | 49 |
|
39 |
| -h2 { |
| 50 | +h3 { |
40 | 51 | &.elm-headline {
|
41 |
| - font-size: $rea-main-h2-font-size; // * TODO: possibly rework variable naming |
| 52 | + font-size: to-rem( |
| 53 | + $pxValue: $rea-main-h3-font-size |
| 54 | + ); // * TODO: possibly rework variable naming |
| 55 | + line-height: math.div(24, $rea-main-h3-font-size); |
| 56 | + @media screen and (max-width: 767px) { |
| 57 | + font-size: to-rem( |
| 58 | + $pxValue: $rea-main-h3-font-size-small |
| 59 | + ); // * TODO: possibly rework variable naming |
| 60 | + line-height: 1.33; |
| 61 | + } |
42 | 62 | }
|
43 | 63 | }
|
44 | 64 |
|
45 |
| -h3 { |
| 65 | +h4 { |
46 | 66 | &.elm-headline {
|
47 |
| - font-size: $rea-main-h3-font-size; // * TODO: possibly rework variable naming |
| 67 | + font-size: to-rem( |
| 68 | + $pxValue: $rea-main-h4-font-size |
| 69 | + ); // * TODO: possibly rework variable naming |
| 70 | + font-weight: 400; |
| 71 | + line-height: math.div(24, $rea-main-h4-font-size); |
| 72 | + @media screen and (max-width: 767px) { |
| 73 | + font-size: to-rem( |
| 74 | + $pxValue: $rea-main-h4-font-size-small |
| 75 | + ); // * TODO: possibly rework variable naming |
| 76 | + line-height: 1.25; |
| 77 | + } |
48 | 78 | }
|
49 | 79 | }
|
0 commit comments