@canopy-iiif/app 1.8.14 → 1.8.15

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.
@@ -58,7 +58,6 @@
58
58
  padding: clamp(0.75rem, 1vw, 1rem);
59
59
  border: 1px solid var(--color-gray-200);
60
60
  border-radius: var(--canopy-gallery-radius, 1rem);
61
- background-color: #fff;
62
61
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
63
62
 
64
63
  &:focus-within {
@@ -181,24 +180,24 @@
181
180
  }
182
181
 
183
182
  &__modal-scrim {
184
- min-height: 100vh;
183
+ height: 100%;
185
184
  display: block;
186
- background: rgba(15, 23, 42, 1);
185
+ background-color: var(--color-gray-50);
187
186
  padding: 0;
187
+ display: flex;
188
+ flex-direction: row;
189
+ overflow-y: scroll;
188
190
  }
189
191
 
190
192
  &__modal-panel {
191
193
  position: relative;
192
- background: #fff;
193
- color: var(--color-gray-900);
194
- border-radius: 0;
195
- width: 100%;
196
- height: 100vh;
197
- max-height: none;
198
- overflow: auto;
194
+ padding: 1.618rem;
195
+ padding-right: 2.618rem;
199
196
  display: flex;
200
197
  flex-direction: column;
201
- box-shadow: none;
198
+ gap: 1.6181rem;
199
+ flex-grow: 1;
200
+ z-index: 1;
202
201
  }
203
202
 
204
203
  &__modal-actions {
@@ -206,41 +205,25 @@
206
205
  align-items: stretch;
207
206
  justify-content: space-between;
208
207
  flex-direction: column;
208
+ flex-grow: 0;
209
+ flex-shrink: 0;
209
210
  gap: 1rem;
210
- z-index: 5;
211
- width: var(--canopy-gallery-modal-actions-width, clamp(5rem, 18vw, 8rem));
212
- position: fixed;
213
- top: var(--canopy-gallery-sticky-offset, 0);
214
- bottom: var(--canopy-gallery-sticky-offset, 0);
215
- right: 0;
216
- left: auto;
217
- padding: clamp(1rem, 2vw, 1.75rem) clamp(0.5rem, 2vw, 1rem);
218
- background: linear-gradient(
219
- to left,
220
- rgba(255, 255, 255, 1),
221
- rgba(255, 255, 255, 0.9) 60%,
222
- rgba(255, 255, 255, 0.5) 85%,
223
- rgba(255, 255, 255, 0)
224
- );
225
- border-left: 1px solid rgba(15, 23, 42, 0.08);
226
- box-shadow: -16px 0 32px rgba(15, 23, 42, 0.05);
211
+ width: 10vw;
212
+ max-width: 150px;
213
+ min-width: calc(50px + 2rem);
214
+ padding: 1rem;
227
215
  margin-left: 0;
228
216
  isolation: isolate;
217
+ z-index: 2;
229
218
  }
230
219
 
231
220
  &__modal-header {
232
221
  border: none;
233
- padding-top: 1.382rem;
234
- padding-bottom: 0;
235
- padding-left: clamp(1.25rem, 3vw, 2.5rem);
236
- padding-right: calc(
237
- clamp(1.25rem, 3vw, 2.5rem) +
238
- var(--canopy-gallery-modal-actions-width, clamp(5rem, 18vw, 8rem))
239
- );
240
222
  display: flex;
241
223
  gap: 1rem;
242
224
  align-items: flex-start;
243
225
  flex-wrap: wrap;
226
+ padding: 1rem 0;
244
227
  }
245
228
 
246
229
  &__modal-text {
@@ -270,30 +253,26 @@
270
253
  }
271
254
 
272
255
  &__modal-body {
273
- padding: clamp(1rem, 3vw, 2.5rem);
274
- padding-right: calc(
275
- clamp(1rem, 3vw, 2.5rem) +
276
- var(--canopy-gallery-modal-actions-width, clamp(5rem, 18vw, 8rem))
277
- );
278
256
  flex: 0 0 auto;
279
257
  }
280
258
 
281
259
  &__modal-close {
282
- background: var(--color-accent-100);
283
- border-radius: 999px;
284
260
  padding: 0.35rem 1.25rem;
285
261
  font-weight: 500;
286
262
  display: inline-flex;
287
263
  align-items: center;
288
264
  justify-content: center;
289
- width: 100%;
265
+ width: 2rem;
266
+ height: 2rem;
290
267
  text-align: center;
268
+ position: absolute;
269
+ top: 1rem;
270
+ right: 1rem;
291
271
  }
292
272
 
293
273
  &__modal-nav {
294
274
  display: flex;
295
275
  align-items: center;
296
- gap: 0.382rem;
297
276
  }
298
277
  }
299
278
 
@@ -359,11 +338,13 @@ body[data-canopy-gallery-locked="1"] {
359
338
  list-style: none;
360
339
  display: flex;
361
340
  flex-direction: column;
341
+ gap: 0.618rem;
362
342
  }
363
343
 
364
344
  &__nav-item {
365
345
  position: relative;
366
346
  list-style: none;
347
+ margin: 0;
367
348
 
368
349
  &[data-canopy-gallery-nav-selected] {
369
350
  .canopy-gallery__nav-thumb {
@@ -418,16 +399,43 @@ body[data-canopy-gallery-locked="1"] {
418
399
 
419
400
  &__nav-button {
420
401
  flex: 0 0 auto;
421
- width: 100%;
422
- height: 2.75rem;
423
- border-radius: 0.75rem;
424
- background: rgba(255, 255, 255, 0.85);
402
+ width: 5rem;
403
+ height: 100%;
404
+ color: var(--color-gray-900);
425
405
  font-size: 1.25rem;
426
406
  font-weight: 500;
427
407
  cursor: pointer;
428
- display: inline-flex;
408
+ display: none;
429
409
  align-items: center;
430
410
  justify-content: center;
411
+ position: absolute;
412
+ top: 50%;
413
+ transform: translateY(-50%);
414
+ z-index: 5;
415
+ background: linear-gradient(to right, transparent, transparent);
416
+
417
+ &--prev {
418
+ left: -1rem;
419
+
420
+ &:hover,
421
+ &:focus {
422
+ background: linear-gradient(
423
+ to right,
424
+ var(--color-gray-50),
425
+ transparent
426
+ );
427
+ }
428
+ }
429
+
430
+ &--next {
431
+ right: 0;
432
+ background: linear-gradient(to left, transparent, transparent);
433
+
434
+ &:hover,
435
+ &:focus {
436
+ background: linear-gradient(to left, var(--color-gray-50), transparent);
437
+ }
438
+ }
431
439
  }
432
440
 
433
441
  &__nav-controls {
@@ -440,13 +448,6 @@ body[data-canopy-gallery-locked="1"] {
440
448
  font-size: 1.25rem;
441
449
  line-height: 1;
442
450
  }
443
-
444
- &__modal {
445
- .canopy-gallery__nav {
446
- margin: clamp(1rem, 3vw, 1.5rem) 0;
447
- padding-bottom: 0.25rem;
448
- }
449
- }
450
451
  }
451
452
 
452
453
  // Modal popup gallery content flex
@@ -482,33 +483,3 @@ body[data-canopy-gallery-locked="1"] {
482
483
  line-height: 1.45;
483
484
  }
484
485
  }
485
-
486
- @media (max-width: 640px) {
487
- .canopy-gallery {
488
- &__grid {
489
- grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
490
- }
491
-
492
- &__item {
493
- padding: 0.75rem;
494
- }
495
-
496
- &__modal-panel {
497
- max-height: 100vh;
498
- }
499
-
500
- &__modal-header {
501
- flex-direction: column;
502
- }
503
-
504
- &__modal-thumb {
505
- width: 100%;
506
- }
507
-
508
- &__modal-actions {
509
- gap: 0.25rem;
510
- top: 0;
511
- padding: 0.5rem clamp(1rem, 4vw, 2rem) 0.25rem;
512
- }
513
- }
514
- }
@@ -3150,7 +3150,6 @@ html.dark .clover-iiif-image-openseadragon .clover-iiif-image-openseadragon-anno
3150
3150
  padding: clamp(0.75rem, 1vw, 1rem);
3151
3151
  border: 1px solid var(--color-gray-200);
3152
3152
  border-radius: var(--canopy-gallery-radius, 1rem);
3153
- background-color: #fff;
3154
3153
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
3155
3154
  }
3156
3155
  .canopy-gallery__item:focus-within {
@@ -3246,54 +3245,47 @@ html.dark .clover-iiif-image-openseadragon .clover-iiif-image-openseadragon-anno
3246
3245
  transform: none;
3247
3246
  }
3248
3247
  .canopy-gallery__modal-scrim {
3249
- min-height: 100vh;
3248
+ height: 100%;
3250
3249
  display: block;
3251
- background: rgb(15, 23, 42);
3250
+ background-color: var(--color-gray-50);
3252
3251
  padding: 0;
3252
+ display: flex;
3253
+ flex-direction: row;
3254
+ overflow-y: scroll;
3253
3255
  }
3254
3256
  .canopy-gallery__modal-panel {
3255
3257
  position: relative;
3256
- background: #fff;
3257
- color: var(--color-gray-900);
3258
- border-radius: 0;
3259
- width: 100%;
3260
- height: 100vh;
3261
- max-height: none;
3262
- overflow: auto;
3258
+ padding: 1.618rem;
3259
+ padding-right: 2.618rem;
3263
3260
  display: flex;
3264
3261
  flex-direction: column;
3265
- box-shadow: none;
3262
+ gap: 1.6181rem;
3263
+ flex-grow: 1;
3264
+ z-index: 1;
3266
3265
  }
3267
3266
  .canopy-gallery__modal-actions {
3268
3267
  display: flex;
3269
3268
  align-items: stretch;
3270
3269
  justify-content: space-between;
3271
3270
  flex-direction: column;
3271
+ flex-grow: 0;
3272
+ flex-shrink: 0;
3272
3273
  gap: 1rem;
3273
- z-index: 5;
3274
- width: var(--canopy-gallery-modal-actions-width, clamp(5rem, 18vw, 8rem));
3275
- position: fixed;
3276
- top: var(--canopy-gallery-sticky-offset, 0);
3277
- bottom: var(--canopy-gallery-sticky-offset, 0);
3278
- right: 0;
3279
- left: auto;
3280
- padding: clamp(1rem, 2vw, 1.75rem) clamp(0.5rem, 2vw, 1rem);
3281
- background: linear-gradient(to left, rgb(255, 255, 255), rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0.5) 85%, rgba(255, 255, 255, 0));
3282
- border-left: 1px solid rgba(15, 23, 42, 0.08);
3283
- box-shadow: -16px 0 32px rgba(15, 23, 42, 0.05);
3274
+ width: 10vw;
3275
+ max-width: 150px;
3276
+ min-width: calc(50px + 2rem);
3277
+ padding: 1rem;
3284
3278
  margin-left: 0;
3285
3279
  isolation: isolate;
3280
+ z-index: 2;
3286
3281
  }
3287
3282
  .canopy-gallery__modal-header {
3288
3283
  border: none;
3289
- padding-top: 1.382rem;
3290
- padding-bottom: 0;
3291
- padding-left: clamp(1.25rem, 3vw, 2.5rem);
3292
- padding-right: calc(clamp(1.25rem, 3vw, 2.5rem) + var(--canopy-gallery-modal-actions-width, clamp(5rem, 18vw, 8rem)));
3293
3284
  display: flex;
3294
3285
  gap: 1rem;
3295
3286
  align-items: flex-start;
3296
3287
  flex-wrap: wrap;
3288
+ padding: 1rem 0;
3297
3289
  }
3298
3290
  .canopy-gallery__modal-text {
3299
3291
  flex: 1;
@@ -3318,25 +3310,24 @@ html.dark .clover-iiif-image-openseadragon .clover-iiif-image-openseadragon-anno
3318
3310
  font-weight: 300;
3319
3311
  }
3320
3312
  .canopy-gallery__modal-body {
3321
- padding: clamp(1rem, 3vw, 2.5rem);
3322
- padding-right: calc(clamp(1rem, 3vw, 2.5rem) + var(--canopy-gallery-modal-actions-width, clamp(5rem, 18vw, 8rem)));
3323
3313
  flex: 0 0 auto;
3324
3314
  }
3325
3315
  .canopy-gallery__modal-close {
3326
- background: var(--color-accent-100);
3327
- border-radius: 999px;
3328
3316
  padding: 0.35rem 1.25rem;
3329
3317
  font-weight: 500;
3330
3318
  display: inline-flex;
3331
3319
  align-items: center;
3332
3320
  justify-content: center;
3333
- width: 100%;
3321
+ width: 2rem;
3322
+ height: 2rem;
3334
3323
  text-align: center;
3324
+ position: absolute;
3325
+ top: 1rem;
3326
+ right: 1rem;
3335
3327
  }
3336
3328
  .canopy-gallery__modal-nav {
3337
3329
  display: flex;
3338
3330
  align-items: center;
3339
- gap: 0.382rem;
3340
3331
  }
3341
3332
 
3342
3333
  body[data-canopy-gallery-locked="1"] {
@@ -3390,10 +3381,12 @@ body[data-canopy-gallery-locked="1"] {
3390
3381
  list-style: none;
3391
3382
  display: flex;
3392
3383
  flex-direction: column;
3384
+ gap: 0.618rem;
3393
3385
  }
3394
3386
  .canopy-gallery__nav-item {
3395
3387
  position: relative;
3396
3388
  list-style: none;
3389
+ margin: 0;
3397
3390
  }
3398
3391
  .canopy-gallery__nav-item[data-canopy-gallery-nav-selected] .canopy-gallery__nav-thumb {
3399
3392
  outline: 3px solid var(--color-accent-default);
@@ -3440,16 +3433,33 @@ body[data-canopy-gallery-locked="1"] {
3440
3433
  }
3441
3434
  .canopy-gallery__nav-button {
3442
3435
  flex: 0 0 auto;
3443
- width: 100%;
3444
- height: 2.75rem;
3445
- border-radius: 0.75rem;
3446
- background: rgba(255, 255, 255, 0.85);
3436
+ width: 5rem;
3437
+ height: 100%;
3438
+ color: var(--color-gray-900);
3447
3439
  font-size: 1.25rem;
3448
3440
  font-weight: 500;
3449
3441
  cursor: pointer;
3450
- display: inline-flex;
3442
+ display: none;
3451
3443
  align-items: center;
3452
3444
  justify-content: center;
3445
+ position: absolute;
3446
+ top: 50%;
3447
+ transform: translateY(-50%);
3448
+ z-index: 5;
3449
+ background: linear-gradient(to right, transparent, transparent);
3450
+ }
3451
+ .canopy-gallery__nav-button--prev {
3452
+ left: -1rem;
3453
+ }
3454
+ .canopy-gallery__nav-button--prev:hover, .canopy-gallery__nav-button--prev:focus {
3455
+ background: linear-gradient(to right, var(--color-gray-50), transparent);
3456
+ }
3457
+ .canopy-gallery__nav-button--next {
3458
+ right: 0;
3459
+ background: linear-gradient(to left, transparent, transparent);
3460
+ }
3461
+ .canopy-gallery__nav-button--next:hover, .canopy-gallery__nav-button--next:focus {
3462
+ background: linear-gradient(to left, var(--color-gray-50), transparent);
3453
3463
  }
3454
3464
  .canopy-gallery__nav-controls {
3455
3465
  display: grid;
@@ -3460,10 +3470,6 @@ body[data-canopy-gallery-locked="1"] {
3460
3470
  font-size: 1.25rem;
3461
3471
  line-height: 1;
3462
3472
  }
3463
- .canopy-gallery__modal .canopy-gallery__nav {
3464
- margin: clamp(1rem, 3vw, 1.5rem) 0;
3465
- padding-bottom: 0.25rem;
3466
- }
3467
3473
 
3468
3474
  .canopy-gallery-item__content_flex {
3469
3475
  display: flex;
@@ -3494,28 +3500,6 @@ body[data-canopy-gallery-locked="1"] {
3494
3500
  line-height: 1.45;
3495
3501
  }
3496
3502
 
3497
- @media (max-width: 640px) {
3498
- .canopy-gallery__grid {
3499
- grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
3500
- }
3501
- .canopy-gallery__item {
3502
- padding: 0.75rem;
3503
- }
3504
- .canopy-gallery__modal-panel {
3505
- max-height: 100vh;
3506
- }
3507
- .canopy-gallery__modal-header {
3508
- flex-direction: column;
3509
- }
3510
- .canopy-gallery__modal-thumb {
3511
- width: 100%;
3512
- }
3513
- .canopy-gallery__modal-actions {
3514
- gap: 0.25rem;
3515
- top: 0;
3516
- padding: 0.5rem clamp(1rem, 4vw, 2rem) 0.25rem;
3517
- }
3518
- }
3519
3503
  /**
3520
3504
  * Define source files for utility classes
3521
3505
  */