|
| 1 | +@use "sass:math"; |
| 2 | +@import "headline.variables"; |
| 3 | + |
| 4 | +.elm-headline { |
| 5 | + margin-bottom: to-rem($pxValue: 16); |
| 6 | + |
| 7 | + // * TODO: These declarations make sense for the moment, but should get aligned with overall definitions of spacing around elements |
| 8 | + margin-top: to-rem($pxValue: 24); |
| 9 | + |
| 10 | + &[data-pulse] { |
| 11 | + &::after { |
| 12 | + background: var(--db-pulse-background, #ec0016); |
| 13 | + border-radius: calc( |
| 14 | + var(--db-logo-height, #{$db-logo-default-height}) / 7 * 0.5 |
| 15 | + ); |
| 16 | + content: ""; |
| 17 | + display: block; |
| 18 | + margin-bottom: var(--db-pulse-margin-bottom, 14px); |
| 19 | + margin-top: calc( |
| 20 | + var(--db-logo-height, #{$db-logo-default-height}) * 0.5 |
| 21 | + ); |
| 22 | + width: var(--db-logo-width, #{$db-logo-default-width}); |
| 23 | + height: calc(var(--db-logo-height, #{$db-logo-default-height}) / 7); |
| 24 | + } |
| 25 | + } |
| 26 | +} |
| 27 | + |
| 28 | +h1, |
| 29 | +h2, |
| 30 | +h3 { |
| 31 | + &.elm-headline { |
| 32 | + font-family: $db-font-family-headline; |
| 33 | + font-weight: 900; |
| 34 | + } |
| 35 | +} |
| 36 | + |
| 37 | +h1 { |
| 38 | + &.elm-headline { |
| 39 | + font-size: to-rem( |
| 40 | + $pxValue: $rea-main-h1-font-size |
| 41 | + ); // * TODO: possibly rework variable naming |
| 42 | + line-height: math.div(40, $rea-main-h1-font-size); |
| 43 | + @media screen and (max-width: 767px) { |
| 44 | + font-size: to-rem( |
| 45 | + $pxValue: $rea-main-h1-font-size-small |
| 46 | + ); // * TODO: possibly rework variable naming |
| 47 | + line-height: 1.14; |
| 48 | + } |
| 49 | + } |
| 50 | +} |
| 51 | + |
| 52 | +h2 { |
| 53 | + &.elm-headline { |
| 54 | + font-size: to-rem( |
| 55 | + $pxValue: $rea-main-h2-font-size |
| 56 | + ); // * TODO: possibly rework variable naming |
| 57 | + line-height: math.div(28, $rea-main-h2-font-size); |
| 58 | + @media screen and (max-width: 767px) { |
| 59 | + font-size: to-rem( |
| 60 | + $pxValue: $rea-main-h2-font-size-small |
| 61 | + ); // * TODO: possibly rework variable naming |
| 62 | + line-height: 1.2; |
| 63 | + } |
| 64 | + } |
| 65 | +} |
| 66 | + |
| 67 | +h3 { |
| 68 | + &.elm-headline { |
| 69 | + font-size: to-rem( |
| 70 | + $pxValue: $rea-main-h3-font-size |
| 71 | + ); // * TODO: possibly rework variable naming |
| 72 | + line-height: math.div(24, $rea-main-h3-font-size); |
| 73 | + @media screen and (max-width: 767px) { |
| 74 | + font-size: to-rem( |
| 75 | + $pxValue: $rea-main-h3-font-size-small |
| 76 | + ); // * TODO: possibly rework variable naming |
| 77 | + line-height: 1.33; |
| 78 | + } |
| 79 | + } |
| 80 | +} |
| 81 | + |
| 82 | +h4 { |
| 83 | + &.elm-headline { |
| 84 | + font-size: to-rem( |
| 85 | + $pxValue: $rea-main-h4-font-size |
| 86 | + ); // * TODO: possibly rework variable naming |
| 87 | + font-weight: 400; |
| 88 | + line-height: math.div(24, $rea-main-h4-font-size); |
| 89 | + @media screen and (max-width: 767px) { |
| 90 | + font-size: to-rem( |
| 91 | + $pxValue: $rea-main-h4-font-size-small |
| 92 | + ); // * TODO: possibly rework variable naming |
| 93 | + line-height: 1.25; |
| 94 | + } |
| 95 | + } |
| 96 | +} |
0 commit comments