react-editable-photo-grid 2.3.6 → 3.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/src/styles.css CHANGED
@@ -1,443 +1,416 @@
1
- .photogrid--checkbox {
2
- background: white;
3
- border: 2px solid white;
4
- cursor: pointer;
5
- width: 18px;
6
- height: 18px;
7
- position: absolute;
8
- top: 10px;
9
- left: 10px;
10
- z-index: 10;
11
- }
12
-
13
- .photogrid--checkbox.active {
14
- background: #333;
15
- }
16
-
17
- .photogrid {
18
- padding: 0 0.125rem;
19
- }
20
-
21
- .photogrid--row__controls {
22
- display: block;
23
- position: absolute;
24
- left: 0.25rem;
25
- top: 50%;
26
- transform: translateY(-50%);
27
- z-index: 20;
28
- }
29
-
30
- .photogrid--row__controls > li {
31
- display: block;
32
- }
33
-
34
- .photogrid--photo__controls {
35
- display: block;
36
- width: 100%;
37
- position: absolute;
38
- left: 50%;
39
- transform: translateX(-50%);
40
- bottom: 0.5rem;
41
- text-align: center;
42
- }
43
-
44
- .photogrid--photo__controls > li {
45
- display: inline-block;
46
- }
47
-
48
- .photogrid--photo__controls > li + li {
49
- margin-left: 0.25rem;
50
- }
51
-
52
- .photogrid--row__controls > li + li {
53
- margin-top: 0.25rem;
54
- }
55
-
56
- .photogrid--photo__controls .photo__control, .photogrid--row__controls .row__control {
57
- width: 36px;
58
- height: 36px;
59
- display: block;
60
- background: #ddd;
61
- color: #333;
62
- font-size: 1.5rem;
63
- line-height: 2rem;
64
- }
65
-
66
- .photogrid--photo__row {
67
- display: block;
68
- background: transparent;
69
- min-height: 0;
70
- position: relative;
71
- z-index: 10;
72
- padding: 0;
73
- }
74
-
75
- .photogrid--photo__row.editing {
76
- padding-left: 2.75rem;
77
- }
78
-
79
- .photogrid--photo__column {
80
- position: relative;
81
- vertical-align: middle;
82
- display: block;
83
- margin: 0.125rem;
84
- }
85
-
86
- .photogrid--photo_overlay {
87
- cursor: pointer;
88
- }
89
-
90
- .photogrid--photo_overlay, .photogrid__gallery_item__overlay, .custom__gallery__photo__overlay {
91
- text-align: center;
92
- min-height: 0;
93
- display: none;
94
- position: absolute;
95
- top: 0;
96
- left: 0;
97
- width: 100%;
98
- height: 100%;
99
- background: rgba(255, 255, 255, 0.6);
100
- padding: 0.5rem;
101
- z-index: 200;
102
- }
103
-
104
- .photogrid--photo_overlay h4, .photogrid__gallery_item__overlay h4, .custom__gallery__photo__overlay h4 {
105
- pointer-events: none;
106
- margin: 25% 0 0 0;
107
- font-size: 20px;
108
- font-weight: 600;
109
- padding: 0;
110
- }
111
-
112
- .photogrid--photo_overlay p, .photogrid__gallery_item__overlay p, , .custom__gallery__photo__overlay p {
113
- pointer-events: none;
114
- font-size: 16px;
115
- margin: 7px 0 0 0;
116
- padding: 0;
117
- }
118
-
119
- .photogrid--photo__column > .photo__details {
120
- width: 100%;
121
- position: absolute;
122
- top: 0;
123
- left: 0;
124
- z-index: 20;
125
- text-align: center;
126
- }
127
-
128
- .photogrid--photo__column > .photo__details > .photo__position {
129
- display: inline-block;
130
- background: rgba(0, 0, 0, 0.65);
131
- color: white;
132
- padding: 0.1rem;
133
- }
134
-
135
- .photogrid--photo__column > .photo__details > .photo__details__desc {
136
- list-style-type: none;
137
- display: block;
138
- margin: 7px 0 0 0;
139
- padding: 0;
140
- width: 100%;
141
- background: rgba(0, 0, 0, 0.6);
142
- color: white;
143
- font-size: 13px;
144
- }
145
-
146
- .photogrid--photo__column > .photo__details > .photo__details__desc > li {
147
- display: block;
148
- }
149
-
150
- .photogrid--photo__column > img {
151
- display: block;
152
- max-width: 100%;
153
- max-height: 750px;
154
- height: auto;
155
- margin: 0;
156
- -webkit-touch-callout: none;
157
- -webkit-user-select: none;
158
- -khtml-user-select: none;
159
- -moz-user-select: none;
160
- -ms-user-select: none;
161
- user-select: none;
162
- }
163
-
164
- .custom__gallery {
165
- display: block;
166
- overflow: hidden;
167
- position: fixed;
168
- left: 0;
169
- top: 0;
170
- margin: 0 auto;
171
- width: 100%;
172
- height: 100vh;
173
- z-index: 9000;
174
- background: black;
175
- }
176
-
177
- .custom__gallery .custom__gallery__container {
178
- vertical-align: middle;
179
- display: block;
180
- height: 100%;
181
- margin: 0 auto;
182
- position: relative;
183
- }
184
-
185
- .custom__gallery .custom__gallery__container .previous__item {
186
- display: none;
187
- height: 50px;
188
- width: 50px;
189
- position: absolute;
190
- top: 50%;
191
- transform: translateY(-50%);
192
- background: none;
193
- border: none;
194
- color: white;
195
- font-size: 2rem;
196
- left: 50px;
197
- cursor: pointer;
198
- z-index: 9001;
199
- }
200
-
201
- .custom__gallery .custom__gallery__container .previous__item > * {
202
- pointer-events: none;
203
- }
204
-
205
- .custom__gallery .custom__gallery__container .custom__gallery__images {
206
- height: 100vh;
207
- text-align: center;
208
- }
209
-
210
- .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item {
211
- position: relative;
212
- height: 100vh;
213
- display: none;
214
- -webkit-touch-callout: none;
215
- -webkit-user-select: none;
216
- -moz-user-select: none;
217
- user-select: none;
218
- }
219
-
220
- .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item.active {
221
- display: block;
222
- }
223
-
224
- .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item img {
225
- display: block;
226
- position: relative;
227
- top: 50%;
228
- transform: translateY(-50%);
229
- max-width: 100%;
230
- height: auto;
231
- width: 100%;
232
- margin: 0 auto;
233
- line-height: 1;
234
- vertical-align: middle;
235
- outline: 0;
236
- }
237
-
238
- .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item p {
239
- color: white;
240
- margin-top: 12px;
241
- }
242
-
243
- .custom__gallery .custom__gallery__container .next__item {
244
- display: none;
245
- height: 50px;
246
- width: 50px;
247
- position: absolute;
248
- top: 50%;
249
- transform: translateY(-50%);
250
- background: none;
251
- border: none;
252
- color: white;
253
- font-size: 2rem;
254
- right: 50px;
255
- cursor: pointer;
256
- z-index: 9001;
257
- }
258
-
259
- .custom__gallery .custom__gallery__container .next__item > * {
260
- pointer-events: none;
261
- }
262
-
263
- .custom__gallery .close__gallery {
264
- position: absolute;
265
- z-index: 9999;
266
- right: 0;
267
- background: none;
268
- color: white;
269
- border: none;
270
- font-size: 3rem;
271
- float: right;
272
- font-weight: 300;
273
- width: 73px;
274
- height: 73px;
275
- overflow: hidden;
276
- text-decoration: none;
277
- }
278
-
279
- .custom__gallery .close__gallery:active, .custom__gallery .close__gallery:focus {
280
- text-decoration: none;
281
- }
282
-
283
-
284
- .photogrid__gallery {
285
- width: 100%;
286
- text-align: center;
287
- overflow: hidden;
288
- position: fixed;
289
- height: 100vh;
290
- left: 0;
291
- top: 0;
292
- background-color: black;
293
- z-index: 400;
294
- margin: 0 auto;
295
- }
296
-
297
- .photogrid__gallery_scrollcontainer {
298
- display: flex;
299
- overflow-x: auto;
300
- overflow-y: hidden;
301
- scroll-snap-type: x mandatory;
302
- scroll-behavior: smooth;
303
- -webkit-overflow-scrolling: touch;
304
- height: 100vh;
305
- margin: 0 auto;
306
- width: 100%;
307
- }
308
-
309
- .photogrid__gallery_scrollcontainer::-webkit-scrollbar {
310
- width: 10px;
311
- height: 10px;
312
- }
313
-
314
- .photogrid__gallery_scrollcontainer::-webkit-scrollbar-thumb {
315
- background: #ddd;
316
- border-radius: 10px;
317
- }
318
-
319
- .photogrid__gallery_scrollcontainer::-webkit-scrollbar-track {
320
- background: transparent;
321
- }
322
-
323
- .photogrid__gallery_item {
324
- width: 100%;
325
- height: 100vh;
326
- scroll-snap-align: start;
327
- transform-origin: center;
328
- transform: scale(1);
329
- position: relative;
330
- display: flex;
331
- justify-content: center;
332
- align-items: center;
333
- flex-shrink: 0;
334
- }
335
-
336
- .photogrid__gallery_item +.photogrid__gallery_item {
337
- margin-left: 1rem;
338
- }
339
-
340
- .photogrid__gallery_item > img {
341
- max-width: 100%;
342
- height: auto;
343
- display: block;
344
- margin: 0 auto;
345
- }
346
-
347
- .photogrid__gallery__hide {
348
- text-align: right;
349
- position: absolute;
350
- top: 0;
351
- left: 0;
352
- width: 100%;
353
- padding-right: 0.5rem;
354
- z-index: 500;
355
- }
356
-
357
- .photogrid__gallery__hide > button {
358
- color: white;
359
- font-weight: 300;
360
- width: 73px;
361
- height: 73px;
362
- font-size: 3rem;
363
- background: none;
364
- border: none;
365
- }
366
-
367
- .photogrid__prev, .photogrid__next {
368
- display: none;
369
- width: auto;
370
- position: absolute;
371
- top: 50%;
372
- transform: translateY(-50%);
373
- color: white;
374
- z-index: 401;
375
- font-size: 2rem;
376
- }
377
-
378
- .photogrid__prev > button > *, .photogrid__next > button > * {
379
- pointer-events: none;
380
- }
381
-
382
- .photogrid__prev {
383
- left: 1.25rem;
384
- }
385
-
386
- .photogrid__next {
387
- right: 1.25rem;
388
- }
389
-
390
- @media only screen and (min-width: 768px) {
391
- .custom__gallery .custom__gallery__container .previous__item, .custom__gallery .custom__gallery__container .next__item {
392
- display: inline-block;
393
- }
394
-
395
- .photogrid--photo__row {
396
- display: flex;
397
- flex: 1 1 auto;
398
- }
399
-
400
- .photogrid--photo__column > img {
401
- display: inline-block;
402
- }
403
- }
404
-
405
- @media only screen and (min-width: 1024px) {
406
- .photogrid__prev, .photogrid__next {
407
- display: block;
408
- }
409
- }
410
-
411
-
412
- @media only screen and (min-width: 1280px) {
413
- .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item img:hover + .custom__gallery__photo__overlay {
414
- display: block;
415
- }
416
- .photogrid--photo__column:hover .photogrid--photo_overlay {
417
- display: block;
418
- }
419
- .photogrid__gallery_item > img:hover .photogrid__gallery_item__overlay {
420
- display: block;
421
- }
422
- .photogrid__gallery_scrollcontainer {
423
- width: 91.6%;
424
- }
425
- }
426
-
427
- @media only screen and (min-width: 1400px) {
428
- .custom__gallery .custom__gallery__container {
429
- width: 92%;
430
- }
431
-
432
- .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item img {
433
- max-width: 100%;
434
- height: 100%;
435
- width: auto;
436
- }
437
- }
438
-
439
- @media only screen and (min-width: 1536px) {
440
- .photogrid__gallery_scrollcontainer {
441
- width: 75%;
442
- }
443
- }
1
+ .photogrid--checkbox {
2
+ background: white;
3
+ border: 2px solid white;
4
+ cursor: pointer;
5
+ width: 18px;
6
+ height: 18px;
7
+ position: absolute;
8
+ top: 10px;
9
+ left: 10px;
10
+ z-index: 10;
11
+ }
12
+
13
+ .photogrid--checkbox.active {
14
+ background: #333;
15
+ }
16
+
17
+ .photogrid {
18
+ padding: 0 0.125rem;
19
+ }
20
+
21
+ .photogrid--row__controls {
22
+ display: block;
23
+ position: absolute;
24
+ left: 0.25rem;
25
+ top: 50%;
26
+ transform: translateY(-50%);
27
+ z-index: 20;
28
+ }
29
+
30
+ .photogrid--row__controls > li {
31
+ display: block;
32
+ }
33
+
34
+ .photogrid--photo__controls {
35
+ display: block;
36
+ width: 100%;
37
+ position: absolute;
38
+ left: 50%;
39
+ transform: translateX(-50%);
40
+ bottom: 0.5rem;
41
+ text-align: center;
42
+ }
43
+
44
+ .photogrid--photo__controls > li {
45
+ display: inline-block;
46
+ }
47
+
48
+ .photogrid--photo__controls > li + li {
49
+ margin-left: 0.25rem;
50
+ }
51
+
52
+ .photogrid--row__controls > li + li {
53
+ margin-top: 0.25rem;
54
+ }
55
+
56
+ .photogrid--photo__controls .photo__control, .photogrid--row__controls .row__control {
57
+ width: 36px;
58
+ height: 36px;
59
+ display: block;
60
+ background: #ddd;
61
+ color: #333;
62
+ font-size: 1.5rem;
63
+ line-height: 2rem;
64
+ }
65
+
66
+ .photogrid--photo__row {
67
+ display: block;
68
+ background: transparent;
69
+ min-height: 0;
70
+ position: relative;
71
+ z-index: 10;
72
+ padding: 0;
73
+ }
74
+
75
+ .photogrid--photo__row.editing {
76
+ padding-left: 2.75rem;
77
+ }
78
+
79
+ .photogrid--photo__column {
80
+ position: relative;
81
+ vertical-align: middle;
82
+ display: block;
83
+ margin: 0.125rem;
84
+ }
85
+
86
+ .photogrid--photo_overlay, .photogrid__gallery_item__overlay {
87
+ min-height: 0;
88
+ display: none;
89
+ position: absolute;
90
+ bottom: 0;
91
+ left: 0;
92
+ width: 100%;
93
+ background: rgba(0, 0, 0, 0.4);
94
+ color: white;
95
+ padding: 0.5rem;
96
+ z-index: 200;
97
+ }
98
+
99
+ .photogrid--photo_overlay h4, .photogrid__gallery_item__overlay h4 {
100
+ font-size: 14px;
101
+ font-weight: 600;
102
+ margin: 0;
103
+ padding: 0;
104
+ }
105
+
106
+ .photogrid--photo_overlay p, .photogrid__gallery_item__overlay p {
107
+ margin: 7px 0 0 0;
108
+ padding: 0;
109
+ font-size: 12px;
110
+ }
111
+
112
+ .photogrid--photo__column > .photo__position {
113
+ position: absolute;
114
+ top: 0;
115
+ z-index: 20;
116
+ left: 50%;
117
+ transform: translateX(-50%);
118
+ background: rgba(0, 0, 0, 0.65);
119
+ color: white;
120
+ padding: 0.1rem;
121
+ }
122
+
123
+ .photogrid--photo__column > img {
124
+ display: block;
125
+ max-width: 100%;
126
+ max-height: 750px;
127
+ height: auto;
128
+ margin: 0;
129
+ -webkit-touch-callout: none;
130
+ -webkit-user-select: none;
131
+ -khtml-user-select: none;
132
+ -moz-user-select: none;
133
+ -ms-user-select: none;
134
+ user-select: none;
135
+ }
136
+
137
+ .custom__gallery {
138
+ display: block;
139
+ overflow: hidden;
140
+ position: fixed;
141
+ left: 0;
142
+ top: 0;
143
+ margin: 0 auto;
144
+ width: 100%;
145
+ height: 100vh;
146
+ z-index: 9000;
147
+ background: black;
148
+ }
149
+
150
+ .custom__gallery .custom__gallery__container {
151
+ vertical-align: middle;
152
+ display: block;
153
+ height: 100%;
154
+ margin: 0 auto;
155
+ position: relative;
156
+ }
157
+
158
+ .custom__gallery .custom__gallery__container .previous__item {
159
+ display: none;
160
+ height: 50px;
161
+ width: 50px;
162
+ position: absolute;
163
+ top: 50%;
164
+ transform: translateY(-50%);
165
+ background: none;
166
+ border: none;
167
+ color: white;
168
+ font-size: 2rem;
169
+ left: 50px;
170
+ cursor: pointer;
171
+ z-index: 9001;
172
+ }
173
+
174
+ .custom__gallery .custom__gallery__container .previous__item > * {
175
+ pointer-events: none;
176
+ }
177
+
178
+ .custom__gallery .custom__gallery__container .custom__gallery__images {
179
+ height: 100vh;
180
+ text-align: center;
181
+ }
182
+
183
+ .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item {
184
+ position: relative;
185
+ height: 100vh;
186
+ display: none;
187
+ -webkit-touch-callout: none;
188
+ -webkit-user-select: none;
189
+ -moz-user-select: none;
190
+ user-select: none;
191
+ }
192
+
193
+ .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item.active {
194
+ display: block;
195
+ }
196
+
197
+ .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item img {
198
+ display: block;
199
+ position: relative;
200
+ top: 50%;
201
+ transform: translateY(-50%);
202
+ max-width: 100%;
203
+ height: auto;
204
+ width: 100%;
205
+ margin: 0 auto;
206
+ line-height: 1;
207
+ vertical-align: middle;
208
+ outline: 0;
209
+ }
210
+
211
+ .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item p {
212
+ color: white;
213
+ margin-top: 12px;
214
+ }
215
+
216
+ .custom__gallery .custom__gallery__container .next__item {
217
+ display: none;
218
+ height: 50px;
219
+ width: 50px;
220
+ position: absolute;
221
+ top: 50%;
222
+ transform: translateY(-50%);
223
+ background: none;
224
+ border: none;
225
+ color: white;
226
+ font-size: 2rem;
227
+ right: 50px;
228
+ cursor: pointer;
229
+ z-index: 9001;
230
+ }
231
+
232
+ .custom__gallery .custom__gallery__container .next__item > * {
233
+ pointer-events: none;
234
+ }
235
+
236
+ .custom__gallery .close__gallery {
237
+ position: absolute;
238
+ z-index: 9999;
239
+ right: 0;
240
+ background: none;
241
+ color: white;
242
+ border: none;
243
+ font-size: 3rem;
244
+ float: right;
245
+ font-weight: 300;
246
+ width: 73px;
247
+ height: 73px;
248
+ overflow: hidden;
249
+ text-decoration: none;
250
+ }
251
+
252
+ .custom__gallery .close__gallery:active, .custom__gallery .close__gallery:focus {
253
+ text-decoration: none;
254
+ }
255
+
256
+
257
+ .photogrid__gallery {
258
+ width: 100%;
259
+ text-align: center;
260
+ overflow: hidden;
261
+ position: fixed;
262
+ height: 100vh;
263
+ left: 0;
264
+ top: 0;
265
+ background-color: black;
266
+ z-index: 400;
267
+ margin: 0 auto;
268
+ }
269
+
270
+ .photogrid__gallery_scrollcontainer {
271
+ display: flex;
272
+ overflow-x: auto;
273
+ overflow-y: hidden;
274
+ scroll-snap-type: x mandatory;
275
+ scroll-behavior: smooth;
276
+ -webkit-overflow-scrolling: touch;
277
+ height: 100vh;
278
+ margin: 0 auto;
279
+ width: 100%;
280
+ }
281
+
282
+ .photogrid__gallery_scrollcontainer::-webkit-scrollbar {
283
+ width: 10px;
284
+ height: 10px;
285
+ }
286
+
287
+ .photogrid__gallery_scrollcontainer::-webkit-scrollbar-thumb {
288
+ background: #ddd;
289
+ border-radius: 10px;
290
+ }
291
+
292
+ .photogrid__gallery_scrollcontainer::-webkit-scrollbar-track {
293
+ background: transparent;
294
+ }
295
+
296
+ .photogrid__gallery_item {
297
+ width: 100%;
298
+ height: 100vh;
299
+ scroll-snap-align: start;
300
+ transform-origin: center;
301
+ transform: scale(1);
302
+ position: relative;
303
+ display: flex;
304
+ justify-content: center;
305
+ align-items: center;
306
+ flex-shrink: 0;
307
+ }
308
+
309
+ .photogrid__gallery_item +.photogrid__gallery_item {
310
+ margin-left: 1rem;
311
+ }
312
+
313
+ .photogrid__gallery_item > img {
314
+ width: 100%;
315
+ max-width: 100%;
316
+ height: auto;
317
+ display: block;
318
+ margin: 0 auto;
319
+ }
320
+
321
+ .photogrid__gallery__hide {
322
+ text-align: right;
323
+ position: absolute;
324
+ top: 0;
325
+ left: 0;
326
+ width: 100%;
327
+ padding-right: 0.5rem;
328
+ }
329
+
330
+ .photogrid__gallery__hide > button {
331
+ color: white;
332
+ font-weight: 300;
333
+ width: 73px;
334
+ height: 73px;
335
+ font-size: 3rem;
336
+ background: none;
337
+ border: none;
338
+ }
339
+
340
+ .photogrid__prev, .photogrid__next {
341
+ display: none;
342
+ width: auto;
343
+ position: absolute;
344
+ top: 50%;
345
+ transform: translateY(-50%);
346
+ color: white;
347
+ z-index: 401;
348
+ font-size: 2rem;
349
+ }
350
+
351
+ .photogrid__prev > button > *, .photogrid__next > button > * {
352
+ pointer-events: none;
353
+ }
354
+
355
+ .photogrid__prev {
356
+ left: 1.25rem;
357
+ }
358
+
359
+ .photogrid__next {
360
+ right: 1.25rem;
361
+ }
362
+
363
+ @media only screen and (min-width: 768px) {
364
+ .custom__gallery .custom__gallery__container .previous__item, .custom__gallery .custom__gallery__container .next__item {
365
+ display: inline-block;
366
+ }
367
+
368
+ .photogrid--photo__row {
369
+ display: flex;
370
+ flex: 1 1 auto;
371
+ }
372
+
373
+ .photogrid--photo__column > img {
374
+ display: inline-block;
375
+ }
376
+ }
377
+
378
+ @media only screen and (min-width: 1024px) {
379
+ .photogrid__prev, .photogrid__next {
380
+ display: block;
381
+ }
382
+ }
383
+
384
+
385
+ @media only screen and (min-width: 1280px) {
386
+ .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item img:hover + .custom__gallery__photo__overlay {
387
+ display: block;
388
+ }
389
+ .photogrid--photo__column img:hover + .photogrid--photo_overlay {
390
+ display: block;
391
+ }
392
+ .photogrid__gallery_item > img:hover .photogrid__gallery_item__overlay {
393
+ display: block;
394
+ }
395
+ .photogrid__gallery_scrollcontainer {
396
+ width: 91.6%;
397
+ }
398
+ }
399
+
400
+ @media only screen and (min-width: 1400px) {
401
+ .custom__gallery .custom__gallery__container {
402
+ width: 92%;
403
+ }
404
+
405
+ .custom__gallery .custom__gallery__container .custom__gallery__images .custom__gallery__item img {
406
+ max-width: 100%;
407
+ height: 100%;
408
+ width: auto;
409
+ }
410
+ }
411
+
412
+ @media only screen and (min-width: 1536px) {
413
+ .photogrid__gallery_scrollcontainer {
414
+ width: 75%;
415
+ }
416
+ }