@lumx/core 2.1.9-alpha-thumbnail8 → 2.1.9-alpha-thumbnail12

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/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "version": "yarn version-changelog ../../CHANGELOG.md && yarn changelog-verify ../../CHANGELOG.md && git add ../../CHANGELOG.md"
43
43
  },
44
44
  "sideEffects": false,
45
- "version": "2.1.9-alpha-thumbnail8",
45
+ "version": "2.1.9-alpha-thumbnail12",
46
46
  "devDependencies": {
47
47
  "@babel/core": "^7.8.3",
48
48
  "@babel/plugin-proposal-class-properties": "^7.8.3",
@@ -82,5 +82,5 @@
82
82
  "moment": "^2.24.0",
83
83
  "moment-range": "^4.0.2"
84
84
  },
85
- "gitHead": "d5e36020889cb11c7ae798652e4583ff3b2bc8a8"
85
+ "gitHead": "ba0496d400184d28c49deb8ac70e3c1181225a45"
86
86
  }
@@ -12,14 +12,22 @@
12
12
  background: none;
13
13
  outline: none;
14
14
 
15
- &--fill-height,
16
- &--fill-height &__background,
17
- &--fill-height &__image {
18
- width: unset;
19
- max-width: unset;
20
- height: 100%;
21
- max-height: unset;
22
- flex: 1 1 auto;
15
+ &--fill-height {
16
+ &,
17
+ #{$self}__background {
18
+ display: flex;
19
+ height: fit-content;
20
+ min-height: 100%;
21
+ flex: 1 1 auto;
22
+ flex-direction: column;
23
+ justify-content: center;
24
+ }
25
+
26
+ #{$self}__image {
27
+ width: unset;
28
+ max-width: unset;
29
+ max-height: unset;
30
+ }
23
31
  }
24
32
 
25
33
  &__background {
@@ -32,16 +40,16 @@
32
40
  }
33
41
 
34
42
  &__image {
35
- font-size: 0;
43
+ display: block;
36
44
  width: fit-content;
37
45
  max-width: 100%;
38
46
  height: fit-content;
39
47
  max-height: 100%;
48
+ font-size: 0;
40
49
  }
41
50
 
42
51
  &__background,
43
52
  &__image {
44
- display: block;
45
53
  overflow: hidden;
46
54
 
47
55
  #{$self}--align-left & {
@@ -73,7 +81,7 @@
73
81
  }
74
82
  }
75
83
 
76
- .#{$lumx-base-prefix}-thumbnail[class*="#{$lumx-base-prefix}-thumbnail--size-"] {
84
+ .#{$lumx-base-prefix}-thumbnail[class*='#{$lumx-base-prefix}-thumbnail--size-'] {
77
85
  .#{$lumx-base-prefix}-thumbnail__background,
78
86
  .#{$lumx-base-prefix}-thumbnail__image {
79
87
  width: 100%;
@@ -98,7 +106,8 @@
98
106
  }
99
107
 
100
108
  @each $key, $aspect-ratio in $lumx-thumbnail-aspect-ratio {
101
- .#{$lumx-base-prefix}-thumbnail--aspect-ratio-#{$key} .#{$lumx-base-prefix}-thumbnail__background {
109
+ .#{$lumx-base-prefix}-thumbnail--aspect-ratio-#{$key}:not(.#{$lumx-base-prefix}-thumbnail--fill-height)
110
+ .#{$lumx-base-prefix}-thumbnail__background {
102
111
  padding-top: $aspect-ratio;
103
112
  }
104
113
  }