diff options
| author | Volpeon <git@volpeon.ink> | 2025-11-07 18:13:11 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2025-11-07 18:13:11 +0100 |
| commit | c1b24fc8d1786ec8963c50d82320dcdc0367934e (patch) | |
| tree | 228264d7668ae1b2af84aae71ef4ce7fe12b5c9c /src/scopes/_headings.scss | |
| parent | Headline font family adjusted (diff) | |
| download | iro-design-c1b24fc8d1786ec8963c50d82320dcdc0367934e.tar.gz iro-design-c1b24fc8d1786ec8963c50d82320dcdc0367934e.tar.bz2 iro-design-c1b24fc8d1786ec8963c50d82320dcdc0367934e.zip | |
Add text-transform variable for headings
Diffstat (limited to 'src/scopes/_headings.scss')
| -rw-r--r-- | src/scopes/_headings.scss | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/scopes/_headings.scss b/src/scopes/_headings.scss index f8a7854..7a9f088 100644 --- a/src/scopes/_headings.scss +++ b/src/scopes/_headings.scss | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | font-weight: props.get(heading.$font-weight); | 27 | font-weight: props.get(heading.$font-weight); |
| 28 | font-feature-settings: props.get(heading.$feature-settings); | 28 | font-feature-settings: props.get(heading.$feature-settings); |
| 29 | line-height: props.get(heading.$line-height); | 29 | line-height: props.get(heading.$line-height); |
| 30 | text-transform: none; | 30 | text-transform: props.get(heading.$text-transform); |
| 31 | letter-spacing: normal; | 31 | letter-spacing: normal; |
| 32 | transform: translateX(props.get(heading.$offset)); | 32 | transform: translateX(props.get(heading.$offset)); |
| 33 | } | 33 | } |
| @@ -40,25 +40,27 @@ | |||
| 40 | transparent .6em); | 40 | transparent .6em); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in heading.$sizes { | 43 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings, $text-transform in heading.$sizes { |
| 44 | #{map.get($-size-map, $mod)} { | 44 | #{map.get($-size-map, $mod)} { |
| 45 | font-family: props.get($font-family); | 45 | font-family: props.get($font-family); |
| 46 | font-size: props.get($font-size); | 46 | font-size: props.get($font-size); |
| 47 | font-weight: props.get($font-weight); | 47 | font-weight: props.get($font-weight); |
| 48 | font-feature-settings: props.get($feature-settings); | 48 | font-feature-settings: props.get($feature-settings); |
| 49 | line-height: props.get($line-height); | 49 | line-height: props.get($line-height); |
| 50 | text-transform: props.get($text-transform); | ||
| 50 | letter-spacing: props.get($letter-spacing); | 51 | letter-spacing: props.get($letter-spacing); |
| 51 | } | 52 | } |
| 52 | } | 53 | } |
| 53 | 54 | ||
| 54 | @include bem.modifier('display') { | 55 | @include bem.modifier('display') { |
| 55 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in heading.$display--sizes { | 56 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings, $text-transform in heading.$display--sizes { |
| 56 | #{map.get($-size-map, $mod)} { | 57 | #{map.get($-size-map, $mod)} { |
| 57 | font-family: props.get($font-family); | 58 | font-family: props.get($font-family); |
| 58 | font-size: props.get($font-size); | 59 | font-size: props.get($font-size); |
| 59 | font-weight: props.get($font-weight); | 60 | font-weight: props.get($font-weight); |
| 60 | font-feature-settings: props.get($feature-settings); | 61 | font-feature-settings: props.get($feature-settings); |
| 61 | line-height: props.get($line-height); | 62 | line-height: props.get($line-height); |
| 63 | text-transform: props.get($text-transform); | ||
| 62 | letter-spacing: props.get($letter-spacing); | 64 | letter-spacing: props.get($letter-spacing); |
| 63 | } | 65 | } |
| 64 | } | 66 | } |
