@canopy-iiif/app 1.7.0 → 1.8.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/lib/build/dev.js +12 -2
- package/lib/build/styles.js +11 -1
- package/package.json +1 -1
- package/ui/dist/index.mjs +9 -0
- package/ui/dist/index.mjs.map +2 -2
- package/ui/dist/server.mjs +9 -0
- package/ui/dist/server.mjs.map +2 -2
- package/ui/styles/components/_gallery.scss +63 -14
- package/ui/styles/index.css +58 -14
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.canopy-gallery {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
4
5
|
--canopy-gallery-gap: 1.5rem;
|
|
5
6
|
--canopy-gallery-min-column: 16rem;
|
|
6
7
|
--canopy-gallery-radius: 1rem;
|
|
@@ -22,15 +23,16 @@
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
&__heading {
|
|
25
|
-
font-size: clamp(1.5rem, 2.5vw, 2rem);
|
|
26
|
-
line-height: 1.2;
|
|
27
26
|
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
font-size: 2.618rem;
|
|
29
|
+
line-height: 1.2;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
&__description {
|
|
31
|
-
margin:
|
|
32
|
-
font-size:
|
|
33
|
-
max-width:
|
|
33
|
+
margin: 1rem 0 0;
|
|
34
|
+
font-size: 1.222rem;
|
|
35
|
+
max-width: unset;
|
|
34
36
|
color: var(--color-gray-muted);
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
minmax(var(--canopy-gallery-min-column, 16rem), 1fr)
|
|
42
44
|
);
|
|
43
45
|
gap: var(--canopy-gallery-gap, 1.5rem);
|
|
46
|
+
padding: var(--canopy-gallery-gap, 1.5rem) 0;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
&__item {
|
|
@@ -179,6 +182,11 @@
|
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
|
|
185
|
+
&__modal:not([data-canopy-gallery-active]) {
|
|
186
|
+
width: 0;
|
|
187
|
+
height: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
182
190
|
&__modal-scrim {
|
|
183
191
|
min-height: 100vh;
|
|
184
192
|
display: block;
|
|
@@ -200,19 +208,23 @@
|
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
&__modal-header {
|
|
203
|
-
|
|
204
|
-
|
|
211
|
+
border: none;
|
|
212
|
+
padding-top: 3rem;
|
|
213
|
+
padding-bottom: 0;
|
|
214
|
+
padding-left: clamp(1.25rem, 3vw, 2.5rem);
|
|
215
|
+
padding-right: clamp(1.25rem, 3vw, 2.5rem);
|
|
205
216
|
display: flex;
|
|
206
217
|
gap: clamp(1rem, 2vw, 2rem);
|
|
207
218
|
}
|
|
208
219
|
|
|
209
220
|
&__modal-thumb {
|
|
210
221
|
flex: 0 0 auto;
|
|
211
|
-
width:
|
|
212
|
-
aspect-ratio:
|
|
222
|
+
width: 100px;
|
|
223
|
+
aspect-ratio: 1 / 1;
|
|
213
224
|
border-radius: 0.5rem;
|
|
214
225
|
overflow: hidden;
|
|
215
226
|
background: var(--color-gray-100);
|
|
227
|
+
height: fit-content;
|
|
216
228
|
|
|
217
229
|
img,
|
|
218
230
|
picture,
|
|
@@ -239,14 +251,14 @@
|
|
|
239
251
|
}
|
|
240
252
|
|
|
241
253
|
&__modal-title {
|
|
242
|
-
margin: 0;
|
|
243
|
-
font-size:
|
|
254
|
+
margin: 0.618rem 0 0;
|
|
255
|
+
font-size: 1.618rem;
|
|
244
256
|
line-height: 1.2;
|
|
245
257
|
}
|
|
246
258
|
|
|
247
259
|
&__modal-summary {
|
|
248
|
-
margin: 0
|
|
249
|
-
font-size:
|
|
260
|
+
margin: 0;
|
|
261
|
+
font-size: 1.2222rem;
|
|
250
262
|
color: var(--color-gray-muted);
|
|
251
263
|
}
|
|
252
264
|
|
|
@@ -348,3 +360,40 @@ body[data-canopy-gallery-locked="1"] {
|
|
|
348
360
|
padding: 0;
|
|
349
361
|
}
|
|
350
362
|
}
|
|
363
|
+
|
|
364
|
+
.canopy-gallery-item__content {
|
|
365
|
+
width: 100%;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.canopy-gallery-item__content_flex {
|
|
369
|
+
display: flex;
|
|
370
|
+
flex-direction: row;
|
|
371
|
+
gap: 2rem;
|
|
372
|
+
|
|
373
|
+
aside {
|
|
374
|
+
min-width: 400px;
|
|
375
|
+
padding-right: 2rem;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
dl {
|
|
379
|
+
display: flex;
|
|
380
|
+
flex-direction: column;
|
|
381
|
+
gap: 0.2rem;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
dt {
|
|
385
|
+
text-transform: uppercase;
|
|
386
|
+
color: var(--color-gray-muted);
|
|
387
|
+
margin: 0;
|
|
388
|
+
font-size: 0.7222rem;
|
|
389
|
+
font-weight: 400;
|
|
390
|
+
margin-top: 0.85rem;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
dd {
|
|
394
|
+
color: var(--color-gray-900);
|
|
395
|
+
margin: 0;
|
|
396
|
+
font-size: 1rem;
|
|
397
|
+
line-height: 1.45;
|
|
398
|
+
}
|
|
399
|
+
}
|
package/ui/styles/index.css
CHANGED
|
@@ -3008,7 +3008,8 @@ html.dark .clover-iiif-image-openseadragon .clover-iiif-image-openseadragon-anno
|
|
|
3008
3008
|
|
|
3009
3009
|
.canopy-gallery {
|
|
3010
3010
|
position: relative;
|
|
3011
|
-
|
|
3011
|
+
padding: 0;
|
|
3012
|
+
margin: 0;
|
|
3012
3013
|
--canopy-gallery-gap: 1.5rem;
|
|
3013
3014
|
--canopy-gallery-min-column: 16rem;
|
|
3014
3015
|
--canopy-gallery-radius: 1rem;
|
|
@@ -3028,20 +3029,22 @@ html.dark .clover-iiif-image-openseadragon .clover-iiif-image-openseadragon-anno
|
|
|
3028
3029
|
margin-bottom: clamp(1rem, 2vw, 1.5rem);
|
|
3029
3030
|
}
|
|
3030
3031
|
.canopy-gallery__heading {
|
|
3031
|
-
font-size: clamp(1.5rem, 2.5vw, 2rem);
|
|
3032
|
-
line-height: 1.2;
|
|
3033
3032
|
margin: 0;
|
|
3033
|
+
padding: 0;
|
|
3034
|
+
font-size: 2.618rem;
|
|
3035
|
+
line-height: 1.2;
|
|
3034
3036
|
}
|
|
3035
3037
|
.canopy-gallery__description {
|
|
3036
|
-
margin:
|
|
3037
|
-
font-size:
|
|
3038
|
-
max-width:
|
|
3038
|
+
margin: 1rem 0 0;
|
|
3039
|
+
font-size: 1.222rem;
|
|
3040
|
+
max-width: unset;
|
|
3039
3041
|
color: var(--color-gray-muted);
|
|
3040
3042
|
}
|
|
3041
3043
|
.canopy-gallery__grid {
|
|
3042
3044
|
display: grid;
|
|
3043
3045
|
grid-template-columns: repeat(auto-fit, minmax(var(--canopy-gallery-min-column, 16rem), 1fr));
|
|
3044
3046
|
gap: var(--canopy-gallery-gap, 1.5rem);
|
|
3047
|
+
padding: var(--canopy-gallery-gap, 1.5rem) 0;
|
|
3045
3048
|
}
|
|
3046
3049
|
.canopy-gallery__item {
|
|
3047
3050
|
position: relative;
|
|
@@ -3153,6 +3156,10 @@ html.dark .clover-iiif-image-openseadragon .clover-iiif-image-openseadragon-anno
|
|
|
3153
3156
|
pointer-events: auto;
|
|
3154
3157
|
visibility: visible;
|
|
3155
3158
|
}
|
|
3159
|
+
.canopy-gallery__modal:not([data-canopy-gallery-active]) {
|
|
3160
|
+
width: 0;
|
|
3161
|
+
height: 0;
|
|
3162
|
+
}
|
|
3156
3163
|
.canopy-gallery__modal-scrim {
|
|
3157
3164
|
min-height: 100vh;
|
|
3158
3165
|
display: block;
|
|
@@ -3172,18 +3179,22 @@ html.dark .clover-iiif-image-openseadragon .clover-iiif-image-openseadragon-anno
|
|
|
3172
3179
|
box-shadow: none;
|
|
3173
3180
|
}
|
|
3174
3181
|
.canopy-gallery__modal-header {
|
|
3175
|
-
|
|
3176
|
-
|
|
3182
|
+
border: none;
|
|
3183
|
+
padding-top: 3rem;
|
|
3184
|
+
padding-bottom: 0;
|
|
3185
|
+
padding-left: clamp(1.25rem, 3vw, 2.5rem);
|
|
3186
|
+
padding-right: clamp(1.25rem, 3vw, 2.5rem);
|
|
3177
3187
|
display: flex;
|
|
3178
3188
|
gap: clamp(1rem, 2vw, 2rem);
|
|
3179
3189
|
}
|
|
3180
3190
|
.canopy-gallery__modal-thumb {
|
|
3181
3191
|
flex: 0 0 auto;
|
|
3182
|
-
width:
|
|
3183
|
-
aspect-ratio:
|
|
3192
|
+
width: 100px;
|
|
3193
|
+
aspect-ratio: 1/1;
|
|
3184
3194
|
border-radius: 0.5rem;
|
|
3185
3195
|
overflow: hidden;
|
|
3186
3196
|
background: var(--color-gray-100);
|
|
3197
|
+
height: fit-content;
|
|
3187
3198
|
}
|
|
3188
3199
|
.canopy-gallery__modal-thumb img,
|
|
3189
3200
|
.canopy-gallery__modal-thumb picture,
|
|
@@ -3206,13 +3217,13 @@ html.dark .clover-iiif-image-openseadragon .clover-iiif-image-openseadragon-anno
|
|
|
3206
3217
|
margin: 0 0 0.5rem;
|
|
3207
3218
|
}
|
|
3208
3219
|
.canopy-gallery__modal-title {
|
|
3209
|
-
margin: 0;
|
|
3210
|
-
font-size:
|
|
3220
|
+
margin: 0.618rem 0 0;
|
|
3221
|
+
font-size: 1.618rem;
|
|
3211
3222
|
line-height: 1.2;
|
|
3212
3223
|
}
|
|
3213
3224
|
.canopy-gallery__modal-summary {
|
|
3214
|
-
margin: 0
|
|
3215
|
-
font-size:
|
|
3225
|
+
margin: 0;
|
|
3226
|
+
font-size: 1.2222rem;
|
|
3216
3227
|
color: var(--color-gray-muted);
|
|
3217
3228
|
}
|
|
3218
3229
|
.canopy-gallery__modal-body {
|
|
@@ -3296,6 +3307,39 @@ body[data-canopy-gallery-locked="1"] {
|
|
|
3296
3307
|
padding: 0;
|
|
3297
3308
|
}
|
|
3298
3309
|
|
|
3310
|
+
.canopy-gallery-item__content {
|
|
3311
|
+
width: 100%;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
.canopy-gallery-item__content_flex {
|
|
3315
|
+
display: flex;
|
|
3316
|
+
flex-direction: row;
|
|
3317
|
+
gap: 2rem;
|
|
3318
|
+
}
|
|
3319
|
+
.canopy-gallery-item__content_flex aside {
|
|
3320
|
+
min-width: 400px;
|
|
3321
|
+
padding-right: 2rem;
|
|
3322
|
+
}
|
|
3323
|
+
.canopy-gallery-item__content_flex dl {
|
|
3324
|
+
display: flex;
|
|
3325
|
+
flex-direction: column;
|
|
3326
|
+
gap: 0.2rem;
|
|
3327
|
+
}
|
|
3328
|
+
.canopy-gallery-item__content_flex dt {
|
|
3329
|
+
text-transform: uppercase;
|
|
3330
|
+
color: var(--color-gray-muted);
|
|
3331
|
+
margin: 0;
|
|
3332
|
+
font-size: 0.7222rem;
|
|
3333
|
+
font-weight: 400;
|
|
3334
|
+
margin-top: 0.85rem;
|
|
3335
|
+
}
|
|
3336
|
+
.canopy-gallery-item__content_flex dd {
|
|
3337
|
+
color: var(--color-gray-900);
|
|
3338
|
+
margin: 0;
|
|
3339
|
+
font-size: 1rem;
|
|
3340
|
+
line-height: 1.45;
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3299
3343
|
/**
|
|
3300
3344
|
* Define source files for utility classes
|
|
3301
3345
|
*/
|