@lumx/core 3.7.0 → 3.7.1-alpha.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,7 +40,7 @@
|
|
|
40
40
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
|
-
"version": "3.7.0",
|
|
43
|
+
"version": "3.7.1-alpha.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@babel/core": "^7.18.13",
|
|
46
46
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
margin: 0;
|
|
14
14
|
border-radius: math.div(map.get($lumx-sizes, lumx-base-const("size", "XS")), 2);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
&--is-truncated {
|
|
17
|
+
max-width: 100%;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
&
|
|
21
|
-
|
|
20
|
+
&__icon {
|
|
21
|
+
margin-right: $lumx-spacing-unit-tiny;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
|
|
106
106
|
.#{$lumx-base-prefix}-thumbnail:not(.#{$lumx-base-prefix}-thumbnail--aspect-ratio-original) {
|
|
107
107
|
.#{$lumx-base-prefix}-thumbnail__image {
|
|
108
|
-
object-fit: cover;
|
|
108
|
+
object-fit: var(--lumx-thumbnail-image-object-fit, cover);
|
|
109
109
|
object-position: center;
|
|
110
110
|
width: 100%;
|
|
111
111
|
height: 100%;
|
|
@@ -143,6 +143,17 @@
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
+
/* Thumbnail object fit
|
|
147
|
+
========================================================================== */
|
|
148
|
+
|
|
149
|
+
.#{$lumx-base-prefix}-thumbnail--object-fit-cover {
|
|
150
|
+
--lumx-thumbnail-image-object-fit: cover;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.#{$lumx-base-prefix}-thumbnail--object-fit-contain {
|
|
154
|
+
--lumx-thumbnail-image-object-fit: contain;
|
|
155
|
+
}
|
|
156
|
+
|
|
146
157
|
/* Thumbnail states
|
|
147
158
|
========================================================================== */
|
|
148
159
|
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
1
3
|
@function lumx-color-variant($color, $variant) {
|
|
2
4
|
@if map-has-key($lumx-color-palette, $color) {
|
|
3
|
-
@
|
|
5
|
+
@if map.has-key(map.get($lumx-color-palette, $color), $variant) {
|
|
6
|
+
@return var(--lumx-color-#{$color}-#{$variant});
|
|
7
|
+
} @else {
|
|
8
|
+
@return var(--lumx-color-#{$color}-N);
|
|
9
|
+
}
|
|
4
10
|
} @else {
|
|
5
11
|
@return var(--lumx-color-dark-N);
|
|
6
12
|
}
|