diff options
Diffstat (limited to 'src/scopes/_headings.scss')
| -rw-r--r-- | src/scopes/_headings.scss | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/src/scopes/_headings.scss b/src/scopes/_headings.scss new file mode 100644 index 0000000..e97e9f2 --- /dev/null +++ b/src/scopes/_headings.scss | |||
| @@ -0,0 +1,115 @@ | |||
| 1 | @use 'include-media/dist/include-media' as media; | ||
| 2 | @use 'iro-sass/src/iro-sass' as iro; | ||
| 3 | @use '../mixins' as mx; | ||
| 4 | @use '../props'; | ||
| 5 | @use '../vars'; | ||
| 6 | |||
| 7 | @mixin styles { | ||
| 8 | @include iro.bem-scope('headings') { | ||
| 9 | h1, | ||
| 10 | h2, | ||
| 11 | h3, | ||
| 12 | h4, | ||
| 13 | h5, | ||
| 14 | h6 { | ||
| 15 | @include mx.set-font(--headline); | ||
| 16 | |||
| 17 | display: block; | ||
| 18 | text-transform: none; | ||
| 19 | letter-spacing: normal; | ||
| 20 | transform: translateX(-.06em); | ||
| 21 | } | ||
| 22 | |||
| 23 | |||
| 24 | h1 { | ||
| 25 | @include mx.heading-strong(--xxl); | ||
| 26 | } | ||
| 27 | |||
| 28 | h2 { | ||
| 29 | @include mx.heading-strong(--xl); | ||
| 30 | } | ||
| 31 | |||
| 32 | h3 { | ||
| 33 | @include mx.heading-medium(--lg); | ||
| 34 | } | ||
| 35 | |||
| 36 | h4 { | ||
| 37 | @include mx.heading-medium(--md); | ||
| 38 | } | ||
| 39 | |||
| 40 | h5 { | ||
| 41 | @include mx.heading-faint(--sm); | ||
| 42 | } | ||
| 43 | |||
| 44 | h6 { | ||
| 45 | @include mx.heading-faint(--xs); | ||
| 46 | } | ||
| 47 | |||
| 48 | @include iro.bem-elem('highlight') { | ||
| 49 | background-image: linear-gradient(to top, | ||
| 50 | transparent .15em, | ||
| 51 | fn.foreign-color(--heading, --bg) .15em, | ||
| 52 | fn.foreign-color(--heading, --bg) .6em, | ||
| 53 | transparent .6em); | ||
| 54 | } | ||
| 55 | |||
| 56 | @include iro.bem-modifier('display') { | ||
| 57 | h1, | ||
| 58 | h2, | ||
| 59 | h3, | ||
| 60 | h4, | ||
| 61 | h5, | ||
| 62 | h6 { | ||
| 63 | @include mx.set-font(--headline); | ||
| 64 | } | ||
| 65 | |||
| 66 | h1 { | ||
| 67 | @include mx.heading-strong(--display --xxl); | ||
| 68 | |||
| 69 | @include media.media('<=md') { | ||
| 70 | @include mx.heading-strong(--display-sm --xxl); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | |||
| 74 | h2 { | ||
| 75 | @include mx.heading-strong(--display --xl); | ||
| 76 | |||
| 77 | @include media.media('<=md') { | ||
| 78 | @include mx.heading-strong(--display-sm --xl); | ||
| 79 | } | ||
| 80 | } | ||
| 81 | |||
| 82 | h3 { | ||
| 83 | @include mx.heading-strong(--display --lg); | ||
| 84 | |||
| 85 | @include media.media('<=md') { | ||
| 86 | @include mx.heading-strong(--display-sm --lg); | ||
| 87 | } | ||
| 88 | } | ||
| 89 | |||
| 90 | h4 { | ||
| 91 | @include mx.heading-strong(--display --md); | ||
| 92 | |||
| 93 | @include media.media('<=md') { | ||
| 94 | @include mx.heading-strong(--display-sm --md); | ||
| 95 | } | ||
| 96 | } | ||
| 97 | |||
| 98 | h5 { | ||
| 99 | @include mx.heading-medium(--display --sm); | ||
| 100 | |||
| 101 | @include media.media('<=md') { | ||
| 102 | @include mx.heading-medium(--display-sm --sm); | ||
| 103 | } | ||
| 104 | } | ||
| 105 | |||
| 106 | h6 { | ||
| 107 | @include mx.heading-faint(--display --xs); | ||
| 108 | |||
| 109 | @include media.media('<=md') { | ||
| 110 | @include mx.heading-faint(--display-sm --xs); | ||
| 111 | } | ||
| 112 | } | ||
| 113 | } | ||
| 114 | } | ||
| 115 | } | ||
