@lumx/core 3.8.1 → 3.8.2-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/lumx.css +1 -1
- package/lumx.min.css +1 -1
- package/package.json +1 -1
- package/scss/components/image-lightbox/_index.scss +68 -0
- package/scss/lumx.scss +1 -0
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.8.
|
|
43
|
+
"version": "3.8.2-alpha.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@babel/core": "^7.18.13",
|
|
46
46
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
/* ==========================================================================
|
|
4
|
+
Image Lightbox
|
|
5
|
+
========================================================================== */
|
|
6
|
+
|
|
7
|
+
.#{$lumx-base-prefix}-image-lightbox {
|
|
8
|
+
// Remove lightbox animation & transition (use view transition instead)
|
|
9
|
+
@supports (view-transition-name: name) {
|
|
10
|
+
&.#{$lumx-base-prefix}-lightbox {
|
|
11
|
+
transition: none;
|
|
12
|
+
animation: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.#{$lumx-base-prefix}-lightbox__wrapper {
|
|
17
|
+
inset: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.lumx-slideshow-item-group,
|
|
21
|
+
.lumx-slideshow-item {
|
|
22
|
+
display: flex;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__image-slide {
|
|
28
|
+
overflow: auto;
|
|
29
|
+
|
|
30
|
+
// Do not scroll parents when reaching the end of the current scroll area
|
|
31
|
+
overscroll-behavior: contain;
|
|
32
|
+
|
|
33
|
+
// Need to disable native touch actions to implement pinch to zoom
|
|
34
|
+
touch-action: none;
|
|
35
|
+
|
|
36
|
+
// Apply OS dark scheme (for the scrollbar)
|
|
37
|
+
color-scheme: dark;
|
|
38
|
+
|
|
39
|
+
// Transparent scrollbar (fallback to OS dark scheme)
|
|
40
|
+
scrollbar-color: $lumx-color-light-L4 transparent;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__thumbnail {
|
|
44
|
+
margin: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__footer {
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
padding: $lumx-spacing-unit-huge $lumx-spacing-unit;
|
|
50
|
+
background: $lumx-color-dark-L1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Crop & scale transitioning pair of trigger image + opening image
|
|
55
|
+
::view-transition-image-pair(#{$lumx-base-prefix}-image-lightbox) {
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
}
|
|
58
|
+
::view-transition-old(#{$lumx-base-prefix}-image-lightbox),
|
|
59
|
+
::view-transition-new(#{$lumx-base-prefix}-image-lightbox) {
|
|
60
|
+
height: 100%;
|
|
61
|
+
}
|
|
62
|
+
::view-transition-group(#{$lumx-base-prefix}-image-lightbox) {
|
|
63
|
+
animation-duration: $lumx-lightbox-transition-duration;
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
animation: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
package/scss/lumx.scss
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
@import "./components/grid-column/index";
|
|
37
37
|
@import "./components/icon/index";
|
|
38
38
|
@import "./components/image-block/index";
|
|
39
|
+
@import "./components/image-lightbox/index";
|
|
39
40
|
@import "./components/inline-list/index";
|
|
40
41
|
@import "./components/input-helper/index";
|
|
41
42
|
@import "./components/input-label/index";
|