@meduza/ui-kit-2 0.9.3 → 0.9.4

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.
@@ -759,6 +759,12 @@
759
759
  height: 100%;
760
760
  }
761
761
 
762
+ .Image-module_root__H5wAh.Image-module_fullRatio__q7QPa img {
763
+ position: static;
764
+ width: 100%;
765
+ height: 100%;
766
+ }
767
+
762
768
  .Image-module_isStatic__TmQ1V img {
763
769
  position: relative;
764
770
  max-height: 160px;
@@ -3273,9 +3279,15 @@
3273
3279
  }
3274
3280
  }
3275
3281
 
3282
+ .RichTitle-module_root__U5XQu.RichTitle-module_isInPodcastPlayer__kvEPH {
3283
+ font-size: 19px;
3284
+ line-height: 23px;
3285
+ margin: 0 0 20px;
3286
+ }
3287
+
3276
3288
  @media only screen and (min-width: 40.625em) {
3277
3289
 
3278
- .RichTitle-module_root__U5XQu.RichTitle-module_episodeInMaterial__pp-Wt {
3290
+ .RichTitle-module_root__U5XQu.RichTitle-module_large__n2URP {
3279
3291
  font-size: 37px;
3280
3292
  line-height: 42px;
3281
3293
  }
@@ -3283,18 +3295,12 @@
3283
3295
 
3284
3296
  @media only screen and (min-width: 40.625em) {
3285
3297
 
3286
- .RichTitle-module_root__U5XQu.RichTitle-module_episodeInEmbed__gJpJL {
3298
+ .RichTitle-module_root__U5XQu.RichTitle-module_medium__KkBLJ {
3287
3299
  font-size: 1.3rem;
3288
3300
  line-height: 1.6rem;
3289
3301
  }
3290
3302
  }
3291
3303
 
3292
- .RichTitle-module_root__U5XQu.RichTitle-module_isInPodcastPlayer__kvEPH {
3293
- font-size: 19px;
3294
- line-height: 23px;
3295
- margin: 0 0 20px;
3296
- }
3297
-
3298
3304
  @media only screen and (min-width: 32em) {
3299
3305
 
3300
3306
  .RichTitle-module_mobile__W5L9E {
package/dist/ui-kit.css CHANGED
@@ -759,6 +759,12 @@
759
759
  height: 100%;
760
760
  }
761
761
 
762
+ .Image-module_root__H5wAh.Image-module_fullRatio__q7QPa img {
763
+ position: static;
764
+ width: 100%;
765
+ height: 100%;
766
+ }
767
+
762
768
  .Image-module_isStatic__TmQ1V img {
763
769
  position: relative;
764
770
  max-height: 160px;
@@ -3273,9 +3279,15 @@
3273
3279
  }
3274
3280
  }
3275
3281
 
3282
+ .RichTitle-module_root__U5XQu.RichTitle-module_isInPodcastPlayer__kvEPH {
3283
+ font-size: 19px;
3284
+ line-height: 23px;
3285
+ margin: 0 0 20px;
3286
+ }
3287
+
3276
3288
  @media only screen and (min-width: 48em) {
3277
3289
 
3278
- .RichTitle-module_root__U5XQu.RichTitle-module_episodeInMaterial__pp-Wt {
3290
+ .RichTitle-module_root__U5XQu.RichTitle-module_large__n2URP {
3279
3291
  font-size: 37px;
3280
3292
  line-height: 42px;
3281
3293
  }
@@ -3283,18 +3295,12 @@
3283
3295
 
3284
3296
  @media only screen and (min-width: 64em) {
3285
3297
 
3286
- .RichTitle-module_root__U5XQu.RichTitle-module_episodeInEmbed__gJpJL {
3298
+ .RichTitle-module_root__U5XQu.RichTitle-module_medium__KkBLJ {
3287
3299
  font-size: 1.3rem;
3288
3300
  line-height: 1.6rem;
3289
3301
  }
3290
3302
  }
3291
3303
 
3292
- .RichTitle-module_root__U5XQu.RichTitle-module_isInPodcastPlayer__kvEPH {
3293
- font-size: 19px;
3294
- line-height: 23px;
3295
- margin: 0 0 20px;
3296
- }
3297
-
3298
3304
  @media only screen and (min-width: 32em) {
3299
3305
 
3300
3306
  .RichTitle-module_mobile__W5L9E {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.9.3",
2
+ "version": "0.9.4",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -22,6 +22,12 @@
22
22
  height: 100%;
23
23
  }
24
24
 
25
+ .root.fullRatio img {
26
+ position: static;
27
+ width: 100%;
28
+ height: 100%;
29
+ }
30
+
25
31
  .isStatic img {
26
32
  position: relative;
27
33
  max-height: 160px;
@@ -39,9 +39,7 @@ export const Image: React.FC<ImageProps> = ({
39
39
 
40
40
  const pictureStyles = {
41
41
  paddingBottom:
42
- styleContext === 'isInDynamicBlock'
43
- ? '100%'
44
- : `${100 / (ratio || width / height)}%`
42
+ ratio === null ? 'unset' : `${100 / (ratio || width / height)}%`
45
43
  }
46
44
 
47
45
  /* fallback w325 url until w6 was released */
@@ -56,7 +54,8 @@ export const Image: React.FC<ImageProps> = ({
56
54
  [
57
55
  styles.fullscreen,
58
56
  lightBox && optimized && optimized.original && fullscreen
59
- ]
57
+ ],
58
+ [styles.fullRatio, ratio === null]
60
59
  ]
61
60
 
62
61
  if (styleContext) {
@@ -122,26 +122,26 @@
122
122
  }
123
123
  }
124
124
 
125
- .root.episodeInMaterial {
125
+ .root.isInPodcastPlayer {
126
+ font-size: 19px;
127
+ line-height: 23px;
128
+ margin: 0 0 20px;
129
+ }
130
+
131
+ .root.large {
126
132
  @media $portraitTablet {
127
133
  font-size: 37px;
128
134
  line-height: 42px;
129
135
  }
130
136
  }
131
137
 
132
- .root.episodeInEmbed {
138
+ .root.medium {
133
139
  @media $landscapeTablet {
134
140
  font-size: 1.3rem;
135
141
  line-height: 1.6rem;
136
142
  }
137
143
  }
138
144
 
139
- .root.isInPodcastPlayer {
140
- font-size: 19px;
141
- line-height: 23px;
142
- margin: 0 0 20px;
143
- }
144
-
145
145
  .mobile {
146
146
  @media $mobile {
147
147
  display: none;
@@ -9,5 +9,5 @@ export interface RichTitleProps {
9
9
  }
10
10
  }
11
11
  styleContext?: string[] | string
12
- type?: string
12
+ size?: string
13
13
  }
@@ -11,14 +11,13 @@ export const RichTitle: React.FC<RichTitleProps> = ({
11
11
  data: { featured, first, second, as: TagName = 'h1' }
12
12
  },
13
13
  styleContext,
14
- type
14
+ size = 'default'
15
15
  }) => {
16
16
  let classNames: ClassNames = [
17
17
  [styles.root, true],
18
18
  [styles[onlyOn], true],
19
19
  [styles.featured, !!featured],
20
- [styles.episodeInMaterial, type === 'isInMaterial'],
21
- [styles.episodeInEmbed, type === 'isEmbeded']
20
+ [styles[size], !!size]
22
21
  ]
23
22
 
24
23
  if (styleContext) {