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/objects/_heading.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/objects/_heading.scss')
| -rw-r--r-- | src/objects/_heading.scss | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/objects/_heading.scss b/src/objects/_heading.scss index d27b595..f5b8de6 100644 --- a/src/objects/_heading.scss +++ b/src/objects/_heading.scss | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | font-feature-settings: props.get(vars.$feature-settings); | 17 | font-feature-settings: props.get(vars.$feature-settings); |
| 18 | line-height: props.get(vars.$line-height); | 18 | line-height: props.get(vars.$line-height); |
| 19 | color: props.get(vars.$text-color); | 19 | color: props.get(vars.$text-color); |
| 20 | text-transform: none; | 20 | text-transform: props.get(vars.$text-transform); |
| 21 | letter-spacing: normal; | 21 | letter-spacing: normal; |
| 22 | 22 | ||
| 23 | & + & { | 23 | & + & { |
| @@ -32,25 +32,27 @@ | |||
| 32 | transparent .5em); | 32 | transparent .5em); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in vars.$sizes { | 35 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings, $text-transform in vars.$sizes { |
| 36 | @include bem.modifier($mod) { | 36 | @include bem.modifier($mod) { |
| 37 | font-family: props.get($font-family); | 37 | font-family: props.get($font-family); |
| 38 | font-size: props.get($font-size); | 38 | font-size: props.get($font-size); |
| 39 | font-weight: props.get($font-weight); | 39 | font-weight: props.get($font-weight); |
| 40 | font-feature-settings: props.get($feature-settings); | 40 | font-feature-settings: props.get($feature-settings); |
| 41 | line-height: props.get($line-height); | 41 | line-height: props.get($line-height); |
| 42 | text-transform: props.get($text-transform); | ||
| 42 | letter-spacing: props.get($letter-spacing); | 43 | letter-spacing: props.get($letter-spacing); |
| 43 | } | 44 | } |
| 44 | } | 45 | } |
| 45 | 46 | ||
| 46 | @include bem.modifier('display') { | 47 | @include bem.modifier('display') { |
| 47 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings in vars.$display--sizes { | 48 | @each $mod, $font-family, $line-height, $font-size, $font-weight, $letter-spacing, $feature-settings, $text-transform in vars.$display--sizes { |
| 48 | @include bem.modifier($mod) { | 49 | @include bem.modifier($mod) { |
| 49 | font-family: props.get($font-family); | 50 | font-family: props.get($font-family); |
| 50 | font-size: props.get($font-size); | 51 | font-size: props.get($font-size); |
| 51 | font-weight: props.get($font-weight); | 52 | font-weight: props.get($font-weight); |
| 52 | font-feature-settings: props.get($feature-settings); | 53 | font-feature-settings: props.get($feature-settings); |
| 53 | line-height: props.get($line-height); | 54 | line-height: props.get($line-height); |
| 55 | text-transform: props.get($text-transform); | ||
| 54 | letter-spacing: props.get($letter-spacing); | 56 | letter-spacing: props.get($letter-spacing); |
| 55 | transform: translateX(props.get(vars.$offset)); | 57 | transform: translateX(props.get(vars.$offset)); |
| 56 | } | 58 | } |
