smartphoto 1.6.4 → 2.0.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/README.md +401 -0
- package/css/smartphoto.css +78 -81
- package/css/smartphoto.css.map +1 -0
- package/css/smartphoto.min.css +1 -1
- package/js/jquery-smartphoto.js +1706 -3809
- package/js/jquery-smartphoto.min.js +5 -55
- package/js/smartphoto.js +1722 -3794
- package/js/smartphoto.min.js +6 -55
- package/lib/smartphoto.js +1823 -0
- package/lib/smartphoto.mjs +1799 -0
- package/lib/types/adaptor/jquery.d.ts +5 -0
- package/lib/types/core/gestures.d.ts +12 -0
- package/lib/types/core/index.d.ts +68 -0
- package/lib/types/core/state.d.ts +20 -0
- package/lib/types/core/types.d.ts +147 -0
- package/lib/types/core/view.d.ts +48 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/lib/util.d.ts +11 -0
- package/package.json +60 -52
- package/.babelrc +0 -9
- package/.csscomb.json +0 -314
- package/.editorconfig +0 -24
- package/.eslintrc +0 -24
- package/.git +0 -1
- package/.node-version +0 -1
- package/circle.yml +0 -15
- package/examples/assets/bear.jpg +0 -0
- package/examples/assets/camel.jpg +0 -0
- package/examples/assets/castle.jpg +0 -0
- package/examples/assets/hippo.jpg +0 -0
- package/examples/assets/koala.jpg +0 -0
- package/examples/assets/large-bear.jpg +0 -0
- package/examples/assets/large-camel.jpg +0 -0
- package/examples/assets/large-hippo.jpg +0 -0
- package/examples/assets/large-koala.jpg +0 -0
- package/examples/assets/large-lion.jpg +0 -0
- package/examples/assets/large-rhino.jpg +0 -0
- package/examples/assets/lion.jpg +0 -0
- package/examples/assets/rhino.jpg +0 -0
- package/examples/assets/sample.png +0 -0
- package/examples/assets/style.css +0 -98
- package/examples/assets/test.png +0 -0
- package/examples/event.html +0 -78
- package/examples/jquery.html +0 -80
- package/examples/lazy.html +0 -81
- package/examples/multiple.html +0 -91
- package/examples/noimage.html +0 -22
- package/examples/resizeFit.html +0 -56
- package/examples/vanilla.html +0 -57
- package/images/icon_arrow_next.svg +0 -1
- package/images/icon_arrow_prev.svg +0 -1
- package/images/icon_close.svg +0 -1
- package/index.d.ts +0 -64
- package/lib/adaptor/jquery.js +0 -25
- package/lib/core/index.js +0 -1573
- package/lib/index.js +0 -3
- package/lib/lib/util.js +0 -183
- package/readme.md +0 -210
- package/scss/smartphoto.scss +0 -442
- package/src/adaptor/jquery.js +0 -24
- package/src/core/index.js +0 -1202
- package/src/core/viwer.html +0 -49
- package/src/index.js +0 -3
- package/src/lib/util.js +0 -141
- package/test/preload.js +0 -47
- package/test/test.js +0 -49
- package/tools/index.js +0 -34
package/css/smartphoto.css
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
opacity: 1;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
@keyframes smartphoto-img-wrap {
|
|
11
10
|
from {
|
|
12
11
|
opacity: 0;
|
|
@@ -15,7 +14,6 @@
|
|
|
15
14
|
opacity: 1;
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
@keyframes smartphoto-inner {
|
|
20
18
|
from {
|
|
21
19
|
transform: translate(0, 100px);
|
|
@@ -24,10 +22,9 @@
|
|
|
24
22
|
transform: translate(0, 0);
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
|
-
|
|
28
25
|
@keyframes smartphoto-loader {
|
|
29
26
|
0% {
|
|
30
|
-
opacity: .4;
|
|
27
|
+
opacity: 0.4;
|
|
31
28
|
transform: rotate(0deg);
|
|
32
29
|
}
|
|
33
30
|
50% {
|
|
@@ -35,66 +32,56 @@
|
|
|
35
32
|
transform: rotate(180deg);
|
|
36
33
|
}
|
|
37
34
|
100% {
|
|
38
|
-
opacity: .4;
|
|
35
|
+
opacity: 0.4;
|
|
39
36
|
transform: rotate(360deg);
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
|
|
43
39
|
@keyframes smartphoto-appear {
|
|
44
40
|
0% {
|
|
45
|
-
display: none;
|
|
46
|
-
opacity: 0;
|
|
47
|
-
}
|
|
48
|
-
1% {
|
|
49
|
-
display: block;
|
|
50
41
|
opacity: 0;
|
|
51
42
|
}
|
|
52
43
|
100% {
|
|
53
|
-
display: block;
|
|
54
44
|
opacity: 1;
|
|
55
45
|
}
|
|
56
46
|
}
|
|
57
|
-
|
|
58
47
|
@keyframes smartphoto-hide {
|
|
59
48
|
0% {
|
|
60
|
-
display: block;
|
|
61
49
|
opacity: 1;
|
|
62
50
|
}
|
|
63
|
-
99% {
|
|
64
|
-
display: block;
|
|
65
|
-
opacity: 0;
|
|
66
|
-
}
|
|
67
51
|
100% {
|
|
68
|
-
display: none;
|
|
69
52
|
opacity: 0;
|
|
70
53
|
}
|
|
71
54
|
}
|
|
55
|
+
:root:has(dialog.smartphoto[open]) {
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
}
|
|
72
58
|
|
|
73
59
|
.smartphoto {
|
|
60
|
+
border: none;
|
|
61
|
+
background: transparent;
|
|
62
|
+
padding: 0;
|
|
63
|
+
margin: 0;
|
|
64
|
+
outline: none;
|
|
74
65
|
position: fixed;
|
|
75
|
-
|
|
76
|
-
top: 0;
|
|
77
|
-
left: 0;
|
|
66
|
+
inset: 0;
|
|
78
67
|
width: 100%;
|
|
79
68
|
height: 100%;
|
|
69
|
+
max-width: 100%;
|
|
70
|
+
max-height: 100%;
|
|
80
71
|
overflow: hidden;
|
|
81
|
-
|
|
72
|
+
height: 100dvh;
|
|
73
|
+
max-height: 100dvh;
|
|
74
|
+
background-color: var(--smartphoto-backdrop-color, rgb(0, 0, 0));
|
|
82
75
|
opacity: 1;
|
|
83
76
|
font-family: sans-serif;
|
|
84
77
|
cursor: pointer;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
animation-duration: 0.3s;
|
|
93
|
-
animation-timing-function: ease-out;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.smartphoto[aria-hidden="true"] {
|
|
97
|
-
display: none;
|
|
78
|
+
transition: opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out), display var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out) allow-discrete, overlay var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out) allow-discrete;
|
|
79
|
+
}
|
|
80
|
+
.smartphoto:not([open]) {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
.smartphoto::backdrop {
|
|
84
|
+
background-color: var(--smartphoto-backdrop-color, rgb(0, 0, 0));
|
|
98
85
|
}
|
|
99
86
|
|
|
100
87
|
.smartphoto-close {
|
|
@@ -103,7 +90,7 @@
|
|
|
103
90
|
|
|
104
91
|
.smartphoto-count {
|
|
105
92
|
display: inline-block;
|
|
106
|
-
color: #
|
|
93
|
+
color: #fff;
|
|
107
94
|
font-size: 16px;
|
|
108
95
|
}
|
|
109
96
|
|
|
@@ -117,7 +104,7 @@
|
|
|
117
104
|
width: 100%;
|
|
118
105
|
height: 50px;
|
|
119
106
|
padding: 15px;
|
|
120
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
107
|
+
background-color: var(--smartphoto-header-color, rgba(0, 0, 0, 0.2));
|
|
121
108
|
}
|
|
122
109
|
|
|
123
110
|
.smartphoto-content {
|
|
@@ -127,6 +114,7 @@
|
|
|
127
114
|
left: 0;
|
|
128
115
|
width: 100%;
|
|
129
116
|
height: 100%;
|
|
117
|
+
touch-action: none;
|
|
130
118
|
}
|
|
131
119
|
|
|
132
120
|
.smartphoto-dismiss {
|
|
@@ -140,8 +128,8 @@
|
|
|
140
128
|
border: none;
|
|
141
129
|
background-color: transparent;
|
|
142
130
|
background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0i44Os44Kk44Ok44O8XzEiIGRhdGEtbmFtZT0i44Os44Kk44Ok44O8IDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI4MzQuNjUgMjgzNC42NSIgZmlsbD0iI0ZGRiI+PHRpdGxlPmljb248L3RpdGxlPjxwYXRoIGQ9Ik0xNTc2LjQyLDE0MDYuNzYsMjc4NCwxOTkuMTlhNTYuODYsNTYuODYsMCwwLDAsMC04MC4xOGwtNzguOTItNzguOTJhNTYuODYsNTYuODYsMCwwLDAtODAuMTgsMEwxNDE3LjMyLDEyNDcuNjYsMjA5Ljc1LDQwLjA5YTU2Ljg2LDU2Ljg2LDAsMCwwLTgwLjE4LDBMNTAuNjUsMTE5YTU2Ljg2LDU2Ljg2LDAsMCwwLDAsODAuMThMMTI1OC4yMywxNDA2Ljc2LDUwLjY1LDI2MTQuMzRhNTYuODYsNTYuODYsMCwwLDAsMCw4MC4xOGw3OC45Miw3OC45MmE1Ni44Niw1Ni44NiwwLDAsMCw4MC4xOCwwTDE0MTcuMzIsMTU2NS44NiwyNjI0LjksMjc3My40NGE1Ni44Niw1Ni44NiwwLDAsMCw4MC4xOCwwbDc4LjkyLTc4LjkyYTU2Ljg2LDU2Ljg2LDAsMCwwLDAtODAuMThaIi8+PC9zdmc+);
|
|
143
|
-
text-shadow: 0 1px 0 #
|
|
144
|
-
color: #
|
|
131
|
+
text-shadow: 0 1px 0 #fff;
|
|
132
|
+
color: #fff;
|
|
145
133
|
font-size: 30px;
|
|
146
134
|
text-decoration: none;
|
|
147
135
|
cursor: pointer;
|
|
@@ -173,7 +161,7 @@
|
|
|
173
161
|
-moz-user-select: none;
|
|
174
162
|
-ms-user-select: none;
|
|
175
163
|
user-select: none;
|
|
176
|
-
transition: transform 0.3s ease-out;
|
|
164
|
+
transition: transform var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
177
165
|
-webkit-user-drag: none;
|
|
178
166
|
}
|
|
179
167
|
|
|
@@ -188,20 +176,21 @@
|
|
|
188
176
|
}
|
|
189
177
|
|
|
190
178
|
.smartphoto-img-elasticmove {
|
|
191
|
-
transition: transform 0.3s ease-out;
|
|
179
|
+
transition: transform var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
192
180
|
}
|
|
193
181
|
|
|
194
182
|
.smartphoto-img-wrap {
|
|
195
183
|
display: inline-block;
|
|
196
184
|
opacity: 1;
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
200
|
-
-
|
|
201
|
-
transition: opacity 0.3s ease-out;
|
|
185
|
+
touch-action: none;
|
|
186
|
+
-webkit-transition: opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
187
|
+
-moz-transition: opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
188
|
+
-ms-transition: opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
189
|
+
-o-transition: opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
190
|
+
transition: opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
202
191
|
animation-name: smartphoto-img-wrap;
|
|
203
|
-
animation-duration: 0.3s;
|
|
204
|
-
animation-timing-function: ease-out;
|
|
192
|
+
animation-duration: var(--smartphoto-animation-speed, 0.3s);
|
|
193
|
+
animation-timing-function: var(--smartphoto-animation-function, ease-out);
|
|
205
194
|
}
|
|
206
195
|
|
|
207
196
|
.smartphoto-img-left {
|
|
@@ -222,11 +211,11 @@
|
|
|
222
211
|
left: 0;
|
|
223
212
|
opacity: 1;
|
|
224
213
|
animation-name: smartphoto-appear;
|
|
225
|
-
animation-duration: 0.3s;
|
|
226
|
-
animation-timing-function: ease-out;
|
|
214
|
+
animation-duration: var(--smartphoto-animation-speed, 0.3s);
|
|
215
|
+
animation-timing-function: var(--smartphoto-animation-function, ease-out);
|
|
227
216
|
}
|
|
228
217
|
|
|
229
|
-
.smartphoto-arrows[aria-hidden=
|
|
218
|
+
.smartphoto-arrows[aria-hidden=true] {
|
|
230
219
|
animation-name: smartphoto-hide;
|
|
231
220
|
display: none;
|
|
232
221
|
}
|
|
@@ -239,25 +228,29 @@
|
|
|
239
228
|
height: 30px;
|
|
240
229
|
margin-top: -20px;
|
|
241
230
|
box-sizing: content-box;
|
|
242
|
-
animation-duration: 0.3s;
|
|
243
|
-
animation-timing-function: ease-out;
|
|
231
|
+
animation-duration: var(--smartphoto-animation-speed, 0.3s);
|
|
232
|
+
animation-timing-function: var(--smartphoto-animation-function, ease-out);
|
|
244
233
|
animation-name: smartphoto-appear;
|
|
245
234
|
}
|
|
246
|
-
|
|
247
235
|
.smartphoto-arrows li:focus {
|
|
248
236
|
outline: none;
|
|
249
237
|
}
|
|
250
238
|
|
|
251
|
-
.smartphoto-arrows [aria-hidden=
|
|
239
|
+
.smartphoto-arrows [aria-hidden=true] {
|
|
252
240
|
animation-name: smartphoto-hide;
|
|
253
241
|
display: none;
|
|
254
242
|
}
|
|
255
243
|
|
|
256
|
-
.smartphoto-arrows
|
|
244
|
+
.smartphoto-arrows button {
|
|
245
|
+
appearance: none;
|
|
257
246
|
display: block;
|
|
258
247
|
width: 100%;
|
|
259
248
|
height: 100%;
|
|
260
|
-
|
|
249
|
+
margin: 0;
|
|
250
|
+
padding: 0;
|
|
251
|
+
border: none;
|
|
252
|
+
background-color: transparent;
|
|
253
|
+
cursor: pointer;
|
|
261
254
|
}
|
|
262
255
|
|
|
263
256
|
.smartphoto-arrow-right {
|
|
@@ -265,8 +258,7 @@
|
|
|
265
258
|
padding: 5px 0;
|
|
266
259
|
background-color: rgba(0, 0, 0, 0.5);
|
|
267
260
|
}
|
|
268
|
-
|
|
269
|
-
.smartphoto-arrow-right a {
|
|
261
|
+
.smartphoto-arrow-right button {
|
|
270
262
|
background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0i44Os44Kk44Ok44O8XzEiIGRhdGEtbmFtZT0i44Os44Kk44Ok44O8IDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI4MzQuNjUgMjgzNC42NSIgZmlsbD0iI0ZGRiAiPjx0aXRsZT5pY29uPC90aXRsZT48cGF0aCBkPSJNMTgzNy44OCwxNDE3LjMyLDY0My41OSwyMjNhNzIuMjEsNzIuMjEsMCwwLDEsMC0xMDEuODJMNzQzLjgyLDIxYTcyLjIxLDcyLjIxLDAsMCwxLDEwMS44MiwwTDIwOTAuODMsMTI2Ni4xOWwxMDAuMjMsMTAwLjIzYTcyLjIxLDcyLjIxLDAsMCwxLDAsMTAxLjgyTDg0NS42NCwyODEzLjY1YTcyLjIxLDcyLjIxLDAsMCwxLTEwMS44MiwwTDY0My41OSwyNzEzLjQyYTcyLjIxLDcyLjIxLDAsMCwxLDAtMTAxLjgyWiIvPjwvc3ZnPg==);
|
|
271
263
|
}
|
|
272
264
|
|
|
@@ -275,8 +267,7 @@
|
|
|
275
267
|
padding: 5px 0;
|
|
276
268
|
background-color: rgba(0, 0, 0, 0.5);
|
|
277
269
|
}
|
|
278
|
-
|
|
279
|
-
.smartphoto-arrow-left a {
|
|
270
|
+
.smartphoto-arrow-left button {
|
|
280
271
|
background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0i44Os44Kk44Ok44O8XzEiIGRhdGEtbmFtZT0i44Os44Kk44Ok44O8IDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI4MzQuNjUgMjgzNC42NSIgZmlsbD0iI0ZGRiI+PHRpdGxlPmljb248L3RpdGxlPjxwYXRoIGQ9Ik05OTYuNzcsMTQxNy4zMiwyMTkxLjA2LDIyM2E3Mi4yMSw3Mi4yMSwwLDAsMCwwLTEwMS44MkwyMDkwLjgzLDIxQTcyLjIxLDcyLjIxLDAsMCwwLDE5ODksMjFMNzQzLjgyLDEyNjYuMTksNjQzLjU5LDEzNjYuNDJhNzIuMjEsNzIuMjEsMCwwLDAsMCwxMDEuODJMMTk4OSwyODEzLjY1YTcyLjIxLDcyLjIxLDAsMCwwLDEwMS44MiwwbDEwMC4yMy0xMDAuMjNhNzIuMjEsNzIuMjEsMCwwLDAsMC0xMDEuODJaIi8+PC9zdmc+);
|
|
281
272
|
}
|
|
282
273
|
|
|
@@ -291,11 +282,11 @@
|
|
|
291
282
|
width: 100%;
|
|
292
283
|
opacity: 1;
|
|
293
284
|
animation-name: smartphoto-appear;
|
|
294
|
-
animation-duration: 0.3s;
|
|
295
|
-
animation-timing-function: ease-out;
|
|
285
|
+
animation-duration: var(--smartphoto-animation-speed, 0.3s);
|
|
286
|
+
animation-timing-function: var(--smartphoto-animation-function, ease-out);
|
|
296
287
|
}
|
|
297
288
|
|
|
298
|
-
.smartphoto-nav[aria-hidden=
|
|
289
|
+
.smartphoto-nav[aria-hidden=true] {
|
|
299
290
|
animation-name: smartphoto-hide;
|
|
300
291
|
display: none;
|
|
301
292
|
}
|
|
@@ -318,21 +309,25 @@
|
|
|
318
309
|
height: 50px;
|
|
319
310
|
}
|
|
320
311
|
|
|
321
|
-
.smartphoto-nav
|
|
312
|
+
.smartphoto-nav button {
|
|
313
|
+
appearance: none;
|
|
322
314
|
display: block;
|
|
323
315
|
width: 100%;
|
|
324
316
|
height: 100%;
|
|
325
|
-
|
|
317
|
+
margin: 0;
|
|
318
|
+
padding: 0;
|
|
319
|
+
border: none;
|
|
320
|
+
background-color: #fff;
|
|
326
321
|
background-position: center center;
|
|
327
322
|
background-size: cover;
|
|
328
|
-
opacity: .5;
|
|
323
|
+
opacity: 0.5;
|
|
324
|
+
cursor: pointer;
|
|
329
325
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
opacity: .8;
|
|
326
|
+
.smartphoto-nav button:focus {
|
|
327
|
+
opacity: 0.8;
|
|
333
328
|
}
|
|
334
329
|
|
|
335
|
-
.smartphoto-nav
|
|
330
|
+
.smartphoto-nav button.current {
|
|
336
331
|
opacity: 1;
|
|
337
332
|
}
|
|
338
333
|
|
|
@@ -351,7 +346,6 @@
|
|
|
351
346
|
padding: 0;
|
|
352
347
|
white-space: nowrap;
|
|
353
348
|
}
|
|
354
|
-
|
|
355
349
|
.smartphoto-list li {
|
|
356
350
|
display: block;
|
|
357
351
|
position: absolute;
|
|
@@ -359,15 +353,14 @@
|
|
|
359
353
|
left: 0;
|
|
360
354
|
width: 100%;
|
|
361
355
|
height: 100%;
|
|
362
|
-
transition: all 0.3s ease-out;
|
|
356
|
+
transition: all var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
363
357
|
}
|
|
364
|
-
|
|
365
358
|
.smartphoto-list li:focus {
|
|
366
359
|
outline: none;
|
|
367
360
|
}
|
|
368
361
|
|
|
369
362
|
.smartphoto-list-onmove {
|
|
370
|
-
transition: all 0.3s ease-out;
|
|
363
|
+
transition: all 0.3s var(--smartphoto-animation-function, ease-out);
|
|
371
364
|
}
|
|
372
365
|
|
|
373
366
|
.smartphoto-caption {
|
|
@@ -379,14 +372,15 @@
|
|
|
379
372
|
width: 100%;
|
|
380
373
|
height: 50px;
|
|
381
374
|
padding: 0 50px;
|
|
382
|
-
color: #
|
|
375
|
+
color: #fff;
|
|
383
376
|
font-size: 12px;
|
|
384
377
|
text-align: center;
|
|
385
378
|
line-height: 50px;
|
|
386
379
|
white-space: nowrap;
|
|
387
380
|
text-overflow: ellipsis;
|
|
381
|
+
margin: 0;
|
|
382
|
+
font-weight: normal;
|
|
388
383
|
}
|
|
389
|
-
|
|
390
384
|
.smartphoto-caption:focus {
|
|
391
385
|
outline: none;
|
|
392
386
|
}
|
|
@@ -398,6 +392,7 @@
|
|
|
398
392
|
width: 0;
|
|
399
393
|
height: 0;
|
|
400
394
|
transform: translate(50vw, 50vh);
|
|
395
|
+
transform: translate(50vw, 50dvh);
|
|
401
396
|
}
|
|
402
397
|
|
|
403
398
|
.smartphoto-loader {
|
|
@@ -409,10 +404,10 @@
|
|
|
409
404
|
height: 30px;
|
|
410
405
|
margin-top: -25px;
|
|
411
406
|
margin-left: -25px;
|
|
412
|
-
border: 8px solid #
|
|
407
|
+
border: 8px solid #17cddd;
|
|
413
408
|
border-right-color: transparent;
|
|
414
409
|
border-radius: 50%;
|
|
415
|
-
animation: smartphoto-loader .5s infinite linear;
|
|
410
|
+
animation: smartphoto-loader 0.5s infinite linear;
|
|
416
411
|
}
|
|
417
412
|
|
|
418
413
|
.smartphoto-img-clone {
|
|
@@ -420,7 +415,7 @@
|
|
|
420
415
|
z-index: 100;
|
|
421
416
|
top: 0;
|
|
422
417
|
left: 0;
|
|
423
|
-
transition: all 0.3s ease-out;
|
|
418
|
+
transition: all var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);
|
|
424
419
|
}
|
|
425
420
|
|
|
426
421
|
.smartphoto-sr-only {
|
|
@@ -433,3 +428,5 @@
|
|
|
433
428
|
border: 0;
|
|
434
429
|
clip: rect(0, 0, 0, 0);
|
|
435
430
|
}
|
|
431
|
+
|
|
432
|
+
/*# sourceMappingURL=smartphoto.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../scss/smartphoto.scss"],"names":[],"mappings":"AAKA;EACE;IACE;;EAGF;IACE;;;AAIJ;EACE;IACE;;EAGF;IACE;;;AAIJ;EACE;IACE;;EAGF;IACE;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;;;AAUJ;EACE;IACE;;EAGF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;;;AAIF;EAEE;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAKA;EAKA;EACA;EACA;EACA;EACA;EACA;EAKA,YACE;;AAIF;EACE;;AAGF;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EAEA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EAEA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;;AAIJ;EACE;EACA;;;AAGF;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;AACA;EACE;;;AAIJ;EACE;EACA;EACA;;AACA;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;;AAKN;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EAGA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"smartphoto.css"}
|
package/css/smartphoto.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes smartphoto{from{opacity:0}to{opacity:1}}@keyframes smartphoto-img-wrap{from{opacity:0}to{opacity:1}}@keyframes smartphoto-inner{from{transform:translate(0, 100px)}to{transform:translate(0, 0)}}@keyframes smartphoto-loader{0%{opacity:.4;transform:rotate(0deg)}50%{opacity:1;transform:rotate(180deg)}100%{opacity:.4;transform:rotate(360deg)}}@keyframes smartphoto-appear{0%{
|
|
1
|
+
@keyframes smartphoto{from{opacity:0}to{opacity:1}}@keyframes smartphoto-img-wrap{from{opacity:0}to{opacity:1}}@keyframes smartphoto-inner{from{transform:translate(0, 100px)}to{transform:translate(0, 0)}}@keyframes smartphoto-loader{0%{opacity:.4;transform:rotate(0deg)}50%{opacity:1;transform:rotate(180deg)}100%{opacity:.4;transform:rotate(360deg)}}@keyframes smartphoto-appear{0%{opacity:0}100%{opacity:1}}@keyframes smartphoto-hide{0%{opacity:1}100%{opacity:0}}:root:has(dialog.smartphoto[open]){overflow:hidden}.smartphoto{border:none;background:rgba(0,0,0,0);padding:0;margin:0;outline:none;position:fixed;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;height:100dvh;max-height:100dvh;background-color:var(--smartphoto-backdrop-color, rgb(0, 0, 0));opacity:1;font-family:sans-serif;cursor:pointer;transition:opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out),display var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out) allow-discrete,overlay var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out) allow-discrete}.smartphoto:not([open]){opacity:0}.smartphoto::backdrop{background-color:var(--smartphoto-backdrop-color, rgb(0, 0, 0))}.smartphoto-close{opacity:0}.smartphoto-count{display:inline-block;color:#fff;font-size:16px}.smartphoto-header{display:block;box-sizing:border-box;position:fixed;z-index:102;top:0;left:0;width:100%;height:50px;padding:15px;background-color:var(--smartphoto-header-color, rgba(0, 0, 0, 0.2))}.smartphoto-content{display:block;position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}.smartphoto-dismiss{display:block;position:absolute;top:15px;right:10px;width:20px;height:20px;padding:0;border:none;background-color:rgba(0,0,0,0);background-image:url(data:image/svg+xml;base64,PHN2ZyBpZD0i44Os44Kk44Ok44O8XzEiIGRhdGEtbmFtZT0i44Os44Kk44Ok44O8IDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI4MzQuNjUgMjgzNC42NSIgZmlsbD0iI0ZGRiI+PHRpdGxlPmljb248L3RpdGxlPjxwYXRoIGQ9Ik0xNTc2LjQyLDE0MDYuNzYsMjc4NCwxOTkuMTlhNTYuODYsNTYuODYsMCwwLDAsMC04MC4xOGwtNzguOTItNzguOTJhNTYuODYsNTYuODYsMCwwLDAtODAuMTgsMEwxNDE3LjMyLDEyNDcuNjYsMjA5Ljc1LDQwLjA5YTU2Ljg2LDU2Ljg2LDAsMCwwLTgwLjE4LDBMNTAuNjUsMTE5YTU2Ljg2LDU2Ljg2LDAsMCwwLDAsODAuMThMMTI1OC4yMywxNDA2Ljc2LDUwLjY1LDI2MTQuMzRhNTYuODYsNTYuODYsMCwwLDAsMCw4MC4xOGw3OC45Miw3OC45MmE1Ni44Niw1Ni44NiwwLDAsMCw4MC4xOCwwTDE0MTcuMzIsMTU2NS44NiwyNjI0LjksMjc3My40NGE1Ni44Niw1Ni44NiwwLDAsMCw4MC4xOCwwbDc4LjkyLTc4LjkyYTU2Ljg2LDU2Ljg2LDAsMCwwLDAtODAuMThaIi8+PC9zdmc+);text-shadow:0 1px 0 #fff;color:#fff;font-size:30px;text-decoration:none;cursor:pointer;line-height:1}.smartphoto-body{position:relative;z-index:102;width:100%;height:100%;margin:0 auto}.smartphoto-inner{position:relative;width:100%;height:100%;vertical-align:top}.smartphoto-img{display:none;max-width:none;width:auto;height:auto;cursor:zoom-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:transform var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);-webkit-user-drag:none}.smartphoto-img.active{display:block}.smartphoto-img-onmove{cursor:grab;cursor:-webkit-grab;transition:none}.smartphoto-img-elasticmove{transition:transform var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out)}.smartphoto-img-wrap{display:inline-block;opacity:1;touch-action:none;-webkit-transition:opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);-moz-transition:opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);-ms-transition:opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);-o-transition:opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);transition:opacity var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out);animation-name:smartphoto-img-wrap;animation-duration:var(--smartphoto-animation-speed, 0.3s);animation-timing-function:var(--smartphoto-animation-function, ease-out)}.smartphoto-img-left{transform:translateX(150%) !important}.smartphoto-img-right{transform:translateX(-150%) !important}.smartphoto-arrows{list-style-type:none;margin:0;padding:0;position:relative;z-index:1002;top:50%;left:0;opacity:1;animation-name:smartphoto-appear;animation-duration:var(--smartphoto-animation-speed, 0.3s);animation-timing-function:var(--smartphoto-animation-function, ease-out)}.smartphoto-arrows[aria-hidden=true]{animation-name:smartphoto-hide;display:none}.smartphoto-arrows li{display:block;position:absolute;top:50%;width:30px;height:30px;margin-top:-20px;box-sizing:content-box;animation-duration:var(--smartphoto-animation-speed, 0.3s);animation-timing-function:var(--smartphoto-animation-function, ease-out);animation-name:smartphoto-appear}.smartphoto-arrows li:focus{outline:none}.smartphoto-arrows [aria-hidden=true]{animation-name:smartphoto-hide;display:none}.smartphoto-arrows button{appearance:none;display:block;width:100%;height:100%;margin:0;padding:0;border:none;background-color:rgba(0,0,0,0);cursor:pointer}.smartphoto-arrow-right{right:0;padding:5px 0;background-color:rgba(0,0,0,.5)}.smartphoto-arrow-right button{background-image:url(data:image/svg+xml;base64,PHN2ZyBpZD0i44Os44Kk44Ok44O8XzEiIGRhdGEtbmFtZT0i44Os44Kk44Ok44O8IDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI4MzQuNjUgMjgzNC42NSIgZmlsbD0iI0ZGRiAiPjx0aXRsZT5pY29uPC90aXRsZT48cGF0aCBkPSJNMTgzNy44OCwxNDE3LjMyLDY0My41OSwyMjNhNzIuMjEsNzIuMjEsMCwwLDEsMC0xMDEuODJMNzQzLjgyLDIxYTcyLjIxLDcyLjIxLDAsMCwxLDEwMS44MiwwTDIwOTAuODMsMTI2Ni4xOWwxMDAuMjMsMTAwLjIzYTcyLjIxLDcyLjIxLDAsMCwxLDAsMTAxLjgyTDg0NS42NCwyODEzLjY1YTcyLjIxLDcyLjIxLDAsMCwxLTEwMS44MiwwTDY0My41OSwyNzEzLjQyYTcyLjIxLDcyLjIxLDAsMCwxLDAtMTAxLjgyWiIvPjwvc3ZnPg==)}.smartphoto-arrow-left{left:0;padding:5px 0;background-color:rgba(0,0,0,.5)}.smartphoto-arrow-left button{background-image:url(data:image/svg+xml;base64,PHN2ZyBpZD0i44Os44Kk44Ok44O8XzEiIGRhdGEtbmFtZT0i44Os44Kk44Ok44O8IDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI4MzQuNjUgMjgzNC42NSIgZmlsbD0iI0ZGRiI+PHRpdGxlPmljb248L3RpdGxlPjxwYXRoIGQ9Ik05OTYuNzcsMTQxNy4zMiwyMTkxLjA2LDIyM2E3Mi4yMSw3Mi4yMSwwLDAsMCwwLTEwMS44MkwyMDkwLjgzLDIxQTcyLjIxLDcyLjIxLDAsMCwwLDE5ODksMjFMNzQzLjgyLDEyNjYuMTksNjQzLjU5LDEzNjYuNDJhNzIuMjEsNzIuMjEsMCwwLDAsMCwxMDEuODJMMTk4OSwyODEzLjY1YTcyLjIxLDcyLjIxLDAsMCwwLDEwMS44MiwwbDEwMC4yMy0xMDAuMjNhNzIuMjEsNzIuMjEsMCwwLDAsMC0xMDEuODJaIi8+PC9zdmc+)}.smartPhotoArrowHideIcon{display:none}.smartphoto-nav{position:absolute;bottom:0;left:0;width:100%;opacity:1;animation-name:smartphoto-appear;animation-duration:var(--smartphoto-animation-speed, 0.3s);animation-timing-function:var(--smartphoto-animation-function, ease-out)}.smartphoto-nav[aria-hidden=true]{animation-name:smartphoto-hide;display:none}.smartphoto-nav ul{display:block;overflow-x:auto;list-style:none;margin:0;padding:0;text-align:center;white-space:nowrap;-webkit-overflow-scrolling:touch}.smartphoto-nav li{display:inline-block;overflow:hidden;width:50px;height:50px}.smartphoto-nav button{appearance:none;display:block;width:100%;height:100%;margin:0;padding:0;border:none;background-color:#fff;background-position:center center;background-size:cover;opacity:.5;cursor:pointer}.smartphoto-nav button:focus{opacity:.8}.smartphoto-nav button.current{opacity:1}.smartphoto-nav img{width:auto;height:100%}.smartphoto-list{list-style-type:none;position:absolute;z-index:101;top:0;left:0;margin:0;padding:0;white-space:nowrap}.smartphoto-list li{display:block;position:absolute;top:0;left:0;width:100%;height:100%;transition:all var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out)}.smartphoto-list li:focus{outline:none}.smartphoto-list-onmove{transition:all .3s var(--smartphoto-animation-function, ease-out)}.smartphoto-caption{overflow:hidden;box-sizing:border-box;position:absolute;top:0;left:0;width:100%;height:50px;padding:0 50px;color:#fff;font-size:12px;text-align:center;line-height:50px;white-space:nowrap;text-overflow:ellipsis;margin:0;font-weight:normal}.smartphoto-caption:focus{outline:none}.smartphoto-loader-wrap{display:block;position:relative;z-index:103;width:0;height:0;transform:translate(50vw, 50vh);transform:translate(50vw, 50dvh)}.smartphoto-loader{position:absolute;z-index:101;top:0;left:0;width:30px;height:30px;margin-top:-25px;margin-left:-25px;border:8px solid #17cddd;border-right-color:rgba(0,0,0,0);border-radius:50%;animation:smartphoto-loader .5s infinite linear}.smartphoto-img-clone{position:fixed;z-index:100;top:0;left:0;transition:all var(--smartphoto-animation-speed, 0.3s) var(--smartphoto-animation-function, ease-out)}.smartphoto-sr-only{overflow:hidden;position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;clip:rect(0, 0, 0, 0)}
|