@get-set/gs-zoom 0.0.4 → 0.0.6
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/README.md +129 -1
- package/actions/general.ts +29 -0
- package/actions/getAdjustTransform.ts +46 -0
- package/actions/getCurrentParams.ts +42 -0
- package/actions/getTranslateCoordToPoint.ts +37 -0
- package/actions/init.ts +25 -0
- package/actions/initActionEvents.ts +102 -0
- package/actions/initAdditionals.ts +91 -0
- package/actions/initAdjust.ts +120 -0
- package/actions/initAdjustAdditionalActive.ts +31 -0
- package/actions/initArrows.ts +36 -0
- package/actions/initAutoplay.ts +91 -0
- package/actions/initChange.ts +139 -0
- package/actions/initClose.ts +29 -0
- package/actions/initDraggle.ts +258 -0
- package/actions/initDraw.ts +83 -0
- package/actions/initDrawItem.ts +77 -0
- package/actions/initFullScreen.ts +30 -0
- package/actions/initLightBox.ts +13 -0
- package/actions/initMagnifier.ts +53 -0
- package/actions/initNavigateWithKeys.ts +22 -0
- package/actions/initOpen.ts +29 -0
- package/actions/initWheel.ts +44 -0
- package/actions/setStyles.ts +28 -0
- package/components/GSZoom.tsx +178 -0
- package/{dist/components → components}/styles/GSZoom.scss +252 -254
- package/components/styles/GSZoomCSS.ts +237 -0
- package/constants/defaultParams.ts +20 -0
- package/constants/icons.ts +25 -0
- package/constants/magnifierDefaultProps.ts +9 -0
- package/constants/types.ts +6 -0
- package/dist/GSZoom.d.ts +2 -0
- package/dist/actions/general.d.ts +7 -0
- package/dist/actions/general.d.ts.map +1 -0
- package/dist/actions/general.js +26 -30
- package/dist/actions/general.js.map +1 -0
- package/dist/actions/getAdjustTransform.d.ts +3 -0
- package/dist/actions/getAdjustTransform.d.ts.map +1 -0
- package/dist/actions/getAdjustTransform.js +41 -43
- package/dist/actions/getAdjustTransform.js.map +1 -0
- package/dist/actions/getCurrentParams.d.ts +4 -0
- package/dist/actions/getCurrentParams.d.ts.map +1 -0
- package/dist/actions/getCurrentParams.js +35 -42
- package/dist/actions/getCurrentParams.js.map +1 -0
- package/dist/actions/getTranslateCoordToPoint.d.ts +3 -0
- package/dist/actions/getTranslateCoordToPoint.d.ts.map +1 -0
- package/dist/actions/getTranslateCoordToPoint.js +21 -41
- package/dist/actions/getTranslateCoordToPoint.js.map +1 -0
- package/dist/actions/init.d.ts +4 -0
- package/dist/actions/init.d.ts.map +1 -0
- package/dist/actions/init.js +21 -21
- package/dist/actions/init.js.map +1 -0
- package/dist/actions/initActionEvents.d.ts +4 -0
- package/dist/actions/initActionEvents.d.ts.map +1 -0
- package/dist/actions/initActionEvents.js +80 -127
- package/dist/actions/initActionEvents.js.map +1 -0
- package/dist/actions/initAdditionals.d.ts +4 -0
- package/dist/actions/initAdditionals.d.ts.map +1 -0
- package/dist/actions/initAdditionals.js +78 -117
- package/dist/actions/initAdditionals.js.map +1 -0
- package/dist/actions/initAdjust.d.ts +4 -0
- package/dist/actions/initAdjust.d.ts.map +1 -0
- package/dist/actions/initAdjust.js +96 -107
- package/dist/actions/initAdjust.js.map +1 -0
- package/dist/actions/initAdjustAdditionalActive.d.ts +4 -0
- package/dist/actions/initAdjustAdditionalActive.d.ts.map +1 -0
- package/dist/actions/initAdjustAdditionalActive.js +25 -33
- package/dist/actions/initAdjustAdditionalActive.js.map +1 -0
- package/dist/actions/initArrows.d.ts +4 -0
- package/dist/actions/initArrows.d.ts.map +1 -0
- package/dist/actions/initArrows.js +28 -44
- package/dist/actions/initArrows.js.map +1 -0
- package/dist/actions/initAutoplay.d.ts +6 -0
- package/dist/actions/initAutoplay.d.ts.map +1 -0
- package/dist/actions/initAutoplay.js +85 -81
- package/dist/actions/initAutoplay.js.map +1 -0
- package/dist/actions/initChange.d.ts +4 -0
- package/dist/actions/initChange.d.ts.map +1 -0
- package/dist/actions/initChange.js +116 -137
- package/dist/actions/initChange.js.map +1 -0
- package/dist/actions/initClose.d.ts +3 -0
- package/dist/actions/initClose.d.ts.map +1 -0
- package/dist/actions/initClose.js +24 -28
- package/dist/actions/initClose.js.map +1 -0
- package/dist/actions/initDraggle.d.ts +4 -0
- package/dist/actions/initDraggle.d.ts.map +1 -0
- package/dist/actions/initDraggle.js +227 -303
- package/dist/actions/initDraggle.js.map +1 -0
- package/dist/actions/initDraw.d.ts +4 -0
- package/dist/actions/initDraw.d.ts.map +1 -0
- package/dist/actions/initDraw.js +74 -90
- package/dist/actions/initDraw.js.map +1 -0
- package/dist/actions/initDrawItem.d.ts +4 -0
- package/dist/actions/initDrawItem.d.ts.map +1 -0
- package/dist/actions/initDrawItem.js +63 -79
- package/dist/actions/initDrawItem.js.map +1 -0
- package/dist/actions/initFullScreen.d.ts +4 -0
- package/dist/actions/initFullScreen.d.ts.map +1 -0
- package/dist/actions/initFullScreen.js +32 -32
- package/dist/actions/initFullScreen.js.map +1 -0
- package/dist/actions/initLightBox.d.ts +4 -0
- package/dist/actions/initLightBox.d.ts.map +1 -0
- package/dist/actions/initLightBox.js +11 -12
- package/dist/actions/initLightBox.js.map +1 -0
- package/dist/actions/initMagnifier.d.ts +4 -0
- package/dist/actions/initMagnifier.d.ts.map +1 -0
- package/dist/actions/initMagnifier.js +42 -54
- package/dist/actions/initMagnifier.js.map +1 -0
- package/dist/actions/initNavigateWithKeys.d.ts +4 -0
- package/dist/actions/initNavigateWithKeys.d.ts.map +1 -0
- package/dist/actions/initNavigateWithKeys.js +18 -27
- package/dist/actions/initNavigateWithKeys.js.map +1 -0
- package/dist/actions/initOpen.d.ts +4 -0
- package/dist/actions/initOpen.d.ts.map +1 -0
- package/dist/actions/initOpen.js +27 -28
- package/dist/actions/initOpen.js.map +1 -0
- package/dist/actions/initWheel.d.ts +4 -0
- package/dist/actions/initWheel.d.ts.map +1 -0
- package/dist/actions/initWheel.js +27 -49
- package/dist/actions/initWheel.js.map +1 -0
- package/dist/actions/setStyles.d.ts +4 -0
- package/dist/actions/setStyles.d.ts.map +1 -0
- package/dist/actions/setStyles.js +23 -24
- package/dist/actions/setStyles.js.map +1 -0
- package/dist/components/GSZoom.d.ts +23 -0
- package/dist/components/GSZoom.d.ts.map +1 -0
- package/dist/components/GSZoom.js +122 -177
- package/dist/components/GSZoom.js.map +1 -0
- package/dist/components/styles/GSZoomCSS.d.ts +3 -0
- package/dist/components/styles/GSZoomCSS.d.ts.map +1 -0
- package/dist/components/styles/GSZoomCSS.js +238 -0
- package/dist/components/styles/GSZoomCSS.js.map +1 -0
- package/dist/constants/defaultParams.d.ts +4 -0
- package/dist/constants/defaultParams.d.ts.map +1 -0
- package/dist/constants/defaultParams.js +18 -19
- package/dist/constants/defaultParams.js.map +1 -0
- package/dist/constants/icons.d.ts +13 -0
- package/dist/constants/icons.d.ts.map +1 -0
- package/dist/constants/icons.js +16 -25
- package/dist/constants/icons.js.map +1 -0
- package/dist/constants/magnifierDefaultProps.d.ts +4 -0
- package/dist/constants/magnifierDefaultProps.d.ts.map +1 -0
- package/dist/constants/magnifierDefaultProps.js +7 -7
- package/dist/constants/magnifierDefaultProps.js.map +1 -0
- package/dist/constants/types.d.ts +6 -0
- package/dist/constants/types.d.ts.map +1 -0
- package/dist/constants/types.js +6 -6
- package/dist/constants/types.js.map +1 -0
- package/dist/helpers/uihelpers.d.ts +2 -0
- package/dist/helpers/uihelpers.d.ts.map +1 -0
- package/dist/helpers/uihelpers.js +8 -9
- package/dist/helpers/uihelpers.js.map +1 -0
- package/dist/types/params.d.ts +35 -0
- package/dist/types/params.d.ts.map +1 -0
- package/dist/types/params.js +2 -0
- package/dist/types/params.js.map +1 -0
- package/dist/types/ref.d.ts +23 -0
- package/dist/types/ref.d.ts.map +1 -0
- package/dist/types/ref.js +2 -0
- package/dist/types/ref.js.map +1 -0
- package/dist-js/bundle.js +1689 -0
- package/helpers/uihelpers.ts +7 -0
- package/package.json +74 -43
- package/styles/GSZoom.scss +252 -0
- package/types/global.d.ts +33 -0
- package/types/params.ts +36 -0
- package/types/ref.ts +23 -0
- package/dist/components/styles/GSZoom.css.map +0 -1
- package/index.js +0 -3
- /package/{dist → components/styles}/GSZoom.css +0 -0
- /package/{dist/components/styles → styles}/GSZoom.css +0 -0
|
@@ -1,254 +1,252 @@
|
|
|
1
|
-
html.gs-zoom-opened {
|
|
2
|
-
overflow: hidden !important;
|
|
3
|
-
touch-action: pan-x pan-y;
|
|
4
|
-
body {
|
|
5
|
-
touch-action: pan-x pan-y;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
.gs-zoom-magnifier-instance {
|
|
9
|
-
&:hover {
|
|
10
|
-
cursor: none;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.gs-zoom-magnifier {
|
|
14
|
-
pointer-events: none;
|
|
15
|
-
position: fixed;
|
|
16
|
-
z-index: 9999;
|
|
17
|
-
border: 4px solid #fff;
|
|
18
|
-
aspect-ratio: 1;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
&[data-type="circle"] {
|
|
21
|
-
border-radius: 50%;
|
|
22
|
-
}
|
|
23
|
-
img {
|
|
24
|
-
position: absolute;
|
|
25
|
-
transform-origin: top left;
|
|
26
|
-
max-width: unset !important;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
.gs-zoom-container {
|
|
30
|
-
position: fixed;
|
|
31
|
-
z-index: 9999999999;
|
|
32
|
-
width: 100vw;
|
|
33
|
-
height: 100dvh;
|
|
34
|
-
top: 0;
|
|
35
|
-
left: 0;
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
backdrop-filter: blur(50px);
|
|
38
|
-
|
|
39
|
-
.gs-zoom-autoplayline {
|
|
40
|
-
position: fixed;
|
|
41
|
-
height: 4px;
|
|
42
|
-
top: 0;
|
|
43
|
-
left: 0;
|
|
44
|
-
z-index: 999;
|
|
45
|
-
background-color: red;
|
|
46
|
-
}
|
|
47
|
-
button {
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
outline: none !important;
|
|
50
|
-
}
|
|
51
|
-
* {
|
|
52
|
-
-webkit-user-drag: none;
|
|
53
|
-
-moz-user-select: none;
|
|
54
|
-
-webkit-user-select: none;
|
|
55
|
-
-ms-user-select: none;
|
|
56
|
-
user-select: none;
|
|
57
|
-
}
|
|
58
|
-
.gs-zoom-header {
|
|
59
|
-
position: fixed;
|
|
60
|
-
right: 10px;
|
|
61
|
-
top: 10px;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
max-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
}
|
|
1
|
+
html.gs-zoom-opened {
|
|
2
|
+
overflow: hidden !important;
|
|
3
|
+
touch-action: pan-x pan-y;
|
|
4
|
+
body {
|
|
5
|
+
touch-action: pan-x pan-y;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
.gs-zoom-magnifier-instance {
|
|
9
|
+
&:hover {
|
|
10
|
+
cursor: none;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.gs-zoom-magnifier {
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
position: fixed;
|
|
16
|
+
z-index: 9999;
|
|
17
|
+
border: 4px solid #fff;
|
|
18
|
+
aspect-ratio: 1;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
&[data-type="circle"] {
|
|
21
|
+
border-radius: 50%;
|
|
22
|
+
}
|
|
23
|
+
img {
|
|
24
|
+
position: absolute;
|
|
25
|
+
transform-origin: top left;
|
|
26
|
+
max-width: unset !important;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.gs-zoom-container {
|
|
30
|
+
position: fixed;
|
|
31
|
+
z-index: 9999999999;
|
|
32
|
+
width: 100vw;
|
|
33
|
+
height: 100dvh;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
backdrop-filter: blur(50px);
|
|
38
|
+
|
|
39
|
+
.gs-zoom-autoplayline {
|
|
40
|
+
position: fixed;
|
|
41
|
+
height: 4px;
|
|
42
|
+
top: 0;
|
|
43
|
+
left: 0;
|
|
44
|
+
z-index: 999;
|
|
45
|
+
background-color: red;
|
|
46
|
+
}
|
|
47
|
+
button {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
outline: none !important;
|
|
50
|
+
}
|
|
51
|
+
* {
|
|
52
|
+
-webkit-user-drag: none;
|
|
53
|
+
-moz-user-select: none;
|
|
54
|
+
-webkit-user-select: none;
|
|
55
|
+
-ms-user-select: none;
|
|
56
|
+
user-select: none;
|
|
57
|
+
}
|
|
58
|
+
.gs-zoom-header {
|
|
59
|
+
position: fixed;
|
|
60
|
+
right: 10px;
|
|
61
|
+
top: 10px;
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: flex-end;
|
|
64
|
+
align-items: center;
|
|
65
|
+
z-index: 99;
|
|
66
|
+
|
|
67
|
+
.gs-zoom-actions {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
.gs-zoom-action {
|
|
71
|
+
width: 40px;
|
|
72
|
+
height: 40px;
|
|
73
|
+
background-color: rgba(35, 35, 35, 0.65);
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
border: none;
|
|
78
|
+
|
|
79
|
+
svg {
|
|
80
|
+
fill: #fff;
|
|
81
|
+
width: 18px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.gs-zoom-img-list {
|
|
87
|
+
position: relative;
|
|
88
|
+
z-index: 2;
|
|
89
|
+
display: flex;
|
|
90
|
+
width: max-content;
|
|
91
|
+
.gs-zoom-main-img {
|
|
92
|
+
width: 100vw;
|
|
93
|
+
height: 100dvh;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
position: relative;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
|
|
100
|
+
.gs-zoom-img-touch {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 0;
|
|
103
|
+
left: 0;
|
|
104
|
+
right: 0;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
z-index: 2;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.gz-zoom-loading-container {
|
|
110
|
+
display: none;
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 50%;
|
|
113
|
+
left: 50%;
|
|
114
|
+
transform: translate(-50%, -50%);
|
|
115
|
+
}
|
|
116
|
+
.gs-zoom-img {
|
|
117
|
+
max-width: 100%;
|
|
118
|
+
max-height: 100%;
|
|
119
|
+
&.gs-zoom-is-adjusting {
|
|
120
|
+
transition: 0.4s ease-in-out !important;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
&.gz-zoom-is-loading {
|
|
124
|
+
.gz-zoom-loading-container {
|
|
125
|
+
display: block;
|
|
126
|
+
}
|
|
127
|
+
.gs-zoom-img {
|
|
128
|
+
visibility: hidden;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.gs-zoom-info-data {
|
|
132
|
+
position: absolute;
|
|
133
|
+
left: 0;
|
|
134
|
+
bottom: 0;
|
|
135
|
+
right: 0;
|
|
136
|
+
padding: 20px 20px 90px;
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
align-items: center;
|
|
140
|
+
color: #fff;
|
|
141
|
+
background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.gs-zoom-additionals {
|
|
146
|
+
position: fixed;
|
|
147
|
+
bottom: 0;
|
|
148
|
+
left: 0;
|
|
149
|
+
width: 100%;
|
|
150
|
+
overflow-x: hidden;
|
|
151
|
+
padding: 5px 0;
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
|
|
155
|
+
transform-origin: bottom;
|
|
156
|
+
.gs-add-list-container {
|
|
157
|
+
overflow-x: hidden;
|
|
158
|
+
max-width: 100%;
|
|
159
|
+
.gs-add-list {
|
|
160
|
+
display: flex;
|
|
161
|
+
gap: 5px;
|
|
162
|
+
width: max-content;
|
|
163
|
+
justify-content: center;
|
|
164
|
+
flex-wrap: nowrap;
|
|
165
|
+
|
|
166
|
+
.gs-add-item {
|
|
167
|
+
width: 80px;
|
|
168
|
+
aspect-ratio: 1;
|
|
169
|
+
display: flex;
|
|
170
|
+
align-items: center;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
border: 1px solid #000;
|
|
173
|
+
opacity: 0.5;
|
|
174
|
+
transition: 0.2s ease-out;
|
|
175
|
+
transform: scale(0.8);
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
&:hover,
|
|
178
|
+
&.active {
|
|
179
|
+
transform: scale(1);
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
img {
|
|
183
|
+
max-width: 100%;
|
|
184
|
+
max-height: 100%;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
&.gs-zoom-hidden {
|
|
190
|
+
z-index: 1;
|
|
191
|
+
opacity: 0;
|
|
192
|
+
.gs-add-list {
|
|
193
|
+
transform: scale(0.9);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
&:not(.gs-additional-isdragging) {
|
|
198
|
+
.gs-zoom-additionals {
|
|
199
|
+
.gs-add-list-container {
|
|
200
|
+
.gs-add-list {
|
|
201
|
+
transition: 0.3s transform ease-in-out;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
.gs-zoom-navigations {
|
|
207
|
+
button {
|
|
208
|
+
border: none;
|
|
209
|
+
position: fixed;
|
|
210
|
+
top: 50%;
|
|
211
|
+
width: 50px;
|
|
212
|
+
background-color: rgba(35, 35, 35, 0.65);
|
|
213
|
+
aspect-ratio: 1;
|
|
214
|
+
display: inline-flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
font-size: 28px;
|
|
218
|
+
color: #fff;
|
|
219
|
+
transform: translateY(-50%);
|
|
220
|
+
|
|
221
|
+
svg {
|
|
222
|
+
fill: #fff;
|
|
223
|
+
width: 18px;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
.gs-zoom-next {
|
|
227
|
+
right: 10px;
|
|
228
|
+
}
|
|
229
|
+
.gs-zoom-prev {
|
|
230
|
+
left: 10px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
.gs-zoom-hide-inzoomed {
|
|
234
|
+
z-index: 3;
|
|
235
|
+
opacity: 1;
|
|
236
|
+
transform: scale(1);
|
|
237
|
+
transition: 0.3s ease-in-out;
|
|
238
|
+
}
|
|
239
|
+
&.gs-zoom-is-zoomed {
|
|
240
|
+
.gs-zoom-hide-inzoomed {
|
|
241
|
+
z-index: 1;
|
|
242
|
+
opacity: 0;
|
|
243
|
+
transform: scale(0.9);
|
|
244
|
+
&.gs-zoom-additionals {
|
|
245
|
+
transform: scale(1);
|
|
246
|
+
.gs-add-list {
|
|
247
|
+
transform: scale(0.9);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|