@lumx/core 3.3.1-alpha.0 → 3.3.2-alpha-thumbnail-aspect-ratio.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/package.json CHANGED
@@ -40,16 +40,16 @@
40
40
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
41
41
  },
42
42
  "sideEffects": false,
43
- "version": "3.3.1-alpha.0",
43
+ "version": "3.3.2-alpha-thumbnail-aspect-ratio.0",
44
44
  "devDependencies": {
45
- "@babel/core": "^7.20.2",
45
+ "@babel/core": "^7.18.13",
46
46
  "@babel/plugin-proposal-class-properties": "^7.18.6",
47
47
  "@babel/plugin-proposal-export-default-from": "^7.18.10",
48
48
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
49
- "@babel/plugin-proposal-object-rest-spread": "^7.20.2",
49
+ "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
50
50
  "@babel/plugin-proposal-optional-chaining": "^7.18.9",
51
51
  "@babel/plugin-proposal-private-property-in-object": "^7.18.6",
52
- "@babel/preset-env": "^7.20.2",
52
+ "@babel/preset-env": "^7.18.10",
53
53
  "@babel/preset-typescript": "^7.18.6",
54
54
  "autoprefixer": "^9.7.4",
55
55
  "clean-webpack-plugin": "^3.0.0",
@@ -23,7 +23,7 @@
23
23
  flex: 1 1 auto;
24
24
  flex-direction: column;
25
25
  justify-content: center;
26
- height: fit-content;
26
+ height: 100%;
27
27
  min-height: 100%;
28
28
  }
29
29
 
@@ -91,23 +91,15 @@
91
91
 
92
92
  .#{$lumx-base-prefix}-thumbnail:not(.#{$lumx-base-prefix}-thumbnail--aspect-ratio-original) {
93
93
  .#{$lumx-base-prefix}-thumbnail__image {
94
+ position: absolute;
95
+ top: 0;
96
+ right: 0;
97
+ bottom: 0;
98
+ left: 0;
99
+ width: 100%;
100
+ height: 100%;
94
101
  object-fit: cover;
95
102
  object-position: center;
96
-
97
- @supports (aspect-ratio: 1 / 1) {
98
- width: 100%;
99
- height: 100%;
100
- }
101
-
102
- @supports not (aspect-ratio: 1 / 1) {
103
- position: absolute;
104
- top: 0;
105
- right: 0;
106
- bottom: 0;
107
- left: 0;
108
- width: 100%;
109
- height: 100%;
110
- }
111
103
  }
112
104
  }
113
105
 
package/scss/lumx.scss CHANGED
@@ -1,6 +1,6 @@
1
1
  /** LUMX THEME */
2
2
 
3
- @import "~sass-mq";
3
+ @import "sass-mq";
4
4
  @import "../css/design-tokens";
5
5
 
6
6
  // TODO: remove in next major version