@odx/ui 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8d72579: Added headline classes styling
8
+
3
9
  ## 3.6.0
4
10
 
5
11
  ### Minor Changes
package/core-theme.css CHANGED
@@ -676,6 +676,69 @@ html body {
676
676
  font-size: calc(var(--odx-typography-base-size) * (1*1/var(--odx-typography-negative-font-scaling-factor)*1/var(--odx-typography-negative-font-scaling-factor)));
677
677
  }
678
678
 
679
+ .odx-headline,
680
+ [class*=odx-headline-] {
681
+ color: var(--odx-c-headline);
682
+ font-weight: var(--odx-typography-font-weight-normal);
683
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
684
+ }
685
+
686
+ .odx-headline-sm {
687
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
688
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
689
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 1.6667);
690
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
691
+ }
692
+ @media (min-width: 480px) {
693
+ .odx-headline-sm {
694
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
695
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
696
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 2.6667);
697
+ }
698
+ }
699
+
700
+ .odx-headline-md {
701
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.125);
702
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.125);
703
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 1.75);
704
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
705
+ }
706
+ @media (min-width: 480px) {
707
+ .odx-headline-md {
708
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
709
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
710
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 3.3334);
711
+ }
712
+ }
713
+
714
+ .odx-headline-lg {
715
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0417);
716
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0417);
717
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 1.9167);
718
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
719
+ }
720
+ @media (min-width: 480px) {
721
+ .odx-headline-lg {
722
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
723
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
724
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 4.0834);
725
+ }
726
+ }
727
+
728
+ .odx-headline-xl {
729
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
730
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
731
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 2);
732
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
733
+ }
734
+ @media (min-width: 480px) {
735
+ .odx-headline-xl {
736
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
737
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
738
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 4.0834);
739
+ }
740
+ }
741
+
679
742
  .odx-text-list, .odx-content ol,
680
743
  .odx-content ul,
681
744
  .odx-text-list ol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -112,3 +112,46 @@ html body {
112
112
  @include typography.font-size(-2);
113
113
  }
114
114
  }
115
+
116
+ .odx-headline,
117
+ [class*='odx-headline-'] {
118
+ color: var(--odx-c-headline);
119
+
120
+ @include typography.font-weight(normal);
121
+ }
122
+
123
+ .odx-headline-sm {
124
+ @include dimensions.line-height(2, math.div(40, 24));
125
+ @include typography.font-size(5);
126
+
127
+ @include breakpoints.up(phone) {
128
+ @include dimensions.line-height(3, math.div(64, 24));
129
+ }
130
+ }
131
+
132
+ .odx-headline-md {
133
+ @include dimensions.line-height(2, math.div(42, 24));
134
+ @include typography.font-size(6);
135
+
136
+ @include breakpoints.up(phone) {
137
+ @include dimensions.line-height(4, math.div(80, 24));
138
+ }
139
+ }
140
+
141
+ .odx-headline-lg {
142
+ @include dimensions.line-height(2, math.div(46, 24));
143
+ @include typography.font-size(7);
144
+
145
+ @include breakpoints.up(phone) {
146
+ @include dimensions.line-height(5, math.div(98, 24));
147
+ }
148
+ }
149
+
150
+ .odx-headline-xl {
151
+ @include dimensions.line-height(2);
152
+ @include typography.font-size(8);
153
+
154
+ @include breakpoints.up(phone) {
155
+ @include dimensions.line-height(5, math.div(98, 24));
156
+ }
157
+ }