@canopy-iiif/app 0.10.31 → 0.11.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 +109 -11
- package/lib/build/mdx.js +10 -61
- package/lib/components/slider-runtime-entry.js +86 -0
- package/package.json +1 -1
- package/ui/dist/index.mjs +126 -5
- package/ui/dist/index.mjs.map +4 -4
- package/ui/dist/server.mjs +256 -67
- package/ui/dist/server.mjs.map +4 -4
- package/ui/styles/components/_interstitial-hero.scss +37 -48
- package/ui/styles/index.css +30 -31
|
@@ -116,6 +116,21 @@
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
&--hero-text {
|
|
120
|
+
.canopy-interstitial__body {
|
|
121
|
+
align-items: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.canopy-interstitial__panel {
|
|
125
|
+
padding: 1.618rem 0 1rem;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.canopy-interstitial__description {
|
|
129
|
+
color: var(--color-accent-800);
|
|
130
|
+
font-size: 0.9222rem;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
119
134
|
&__slider {
|
|
120
135
|
position: relative;
|
|
121
136
|
width: 100%;
|
|
@@ -136,6 +151,13 @@
|
|
|
136
151
|
align-items: stretch;
|
|
137
152
|
}
|
|
138
153
|
|
|
154
|
+
&__slide-link {
|
|
155
|
+
display: block;
|
|
156
|
+
text-decoration: none;
|
|
157
|
+
color: inherit;
|
|
158
|
+
height: 100%;
|
|
159
|
+
}
|
|
160
|
+
|
|
139
161
|
&__pane {
|
|
140
162
|
position: relative;
|
|
141
163
|
width: 100%;
|
|
@@ -264,43 +286,20 @@
|
|
|
264
286
|
text-align: center;
|
|
265
287
|
}
|
|
266
288
|
|
|
267
|
-
&__caption-link {
|
|
268
|
-
color: var(--hero-caption-link);
|
|
269
|
-
text-decoration: underline;
|
|
270
|
-
text-underline-offset: 0.35em;
|
|
271
|
-
text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
|
|
272
|
-
transition:
|
|
273
|
-
color 0.2s ease,
|
|
274
|
-
text-decoration-color 0.2s ease;
|
|
275
|
-
|
|
276
|
-
&:hover,
|
|
277
|
-
&:focus-visible {
|
|
278
|
-
color: var(--hero-caption-link);
|
|
279
|
-
text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
289
|
&__nav {
|
|
284
290
|
position: absolute;
|
|
285
291
|
inset: 0;
|
|
286
292
|
z-index: 4;
|
|
293
|
+
pointer-events: none;
|
|
287
294
|
}
|
|
288
295
|
|
|
289
296
|
&__nav-btn {
|
|
290
297
|
position: absolute;
|
|
291
298
|
top: 50%;
|
|
292
299
|
transform: translateY(-50%);
|
|
293
|
-
width: 2.
|
|
294
|
-
height: 2.
|
|
300
|
+
width: 2.618rem !important;
|
|
301
|
+
height: 2.618rem !important;
|
|
295
302
|
border-radius: 9999px;
|
|
296
|
-
border: 1px solid
|
|
297
|
-
color-mix(in srgb, var(--color-gray-400) 55%, transparent);
|
|
298
|
-
background-color: color-mix(
|
|
299
|
-
in srgb,
|
|
300
|
-
var(--color-gray-100) 65%,
|
|
301
|
-
transparent
|
|
302
|
-
);
|
|
303
|
-
backdrop-filter: blur(6px);
|
|
304
303
|
cursor: pointer;
|
|
305
304
|
display: inline-flex;
|
|
306
305
|
align-items: center;
|
|
@@ -309,15 +308,20 @@
|
|
|
309
308
|
background-color 0.2s ease,
|
|
310
309
|
border-color 0.2s ease,
|
|
311
310
|
color 0.2s ease;
|
|
312
|
-
|
|
311
|
+
stroke: var(--color-accent-default) !important;
|
|
312
|
+
color: var(--color-accent-default) !important;
|
|
313
|
+
pointer-events: auto;
|
|
313
314
|
|
|
314
315
|
&::after {
|
|
315
|
-
content:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
316
|
+
content: none;
|
|
317
|
+
display: none;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
svg {
|
|
321
|
+
display: block;
|
|
322
|
+
width: 1rem;
|
|
323
|
+
height: 1rem;
|
|
324
|
+
stroke: var(--color-accent-default);
|
|
321
325
|
}
|
|
322
326
|
|
|
323
327
|
&--prev {
|
|
@@ -326,25 +330,10 @@
|
|
|
326
330
|
|
|
327
331
|
&--next {
|
|
328
332
|
right: 1.5rem;
|
|
329
|
-
|
|
330
|
-
&::after {
|
|
331
|
-
transform: rotate(-45deg);
|
|
332
|
-
}
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
&:hover,
|
|
336
336
|
&:focus-visible {
|
|
337
|
-
background-color: color-mix(
|
|
338
|
-
in srgb,
|
|
339
|
-
var(--color-accent-200) 55%,
|
|
340
|
-
transparent
|
|
341
|
-
);
|
|
342
|
-
border-color: color-mix(
|
|
343
|
-
in srgb,
|
|
344
|
-
var(--color-accent-400) 70%,
|
|
345
|
-
transparent
|
|
346
|
-
);
|
|
347
|
-
color: var(--color-accent-700);
|
|
348
337
|
}
|
|
349
338
|
}
|
|
350
339
|
|
package/ui/styles/index.css
CHANGED
|
@@ -1017,6 +1017,16 @@ section[data-footnotes] ul li,
|
|
|
1017
1017
|
font-size: 2.618rem;
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
+
.canopy-interstitial--hero-text .canopy-interstitial__body {
|
|
1021
|
+
align-items: center;
|
|
1022
|
+
}
|
|
1023
|
+
.canopy-interstitial--hero-text .canopy-interstitial__panel {
|
|
1024
|
+
padding: 1.618rem 0 1rem;
|
|
1025
|
+
}
|
|
1026
|
+
.canopy-interstitial--hero-text .canopy-interstitial__description {
|
|
1027
|
+
color: var(--color-accent-800);
|
|
1028
|
+
font-size: 0.9222rem;
|
|
1029
|
+
}
|
|
1020
1030
|
.canopy-interstitial__slider {
|
|
1021
1031
|
position: relative;
|
|
1022
1032
|
width: 100%;
|
|
@@ -1034,6 +1044,12 @@ section[data-footnotes] ul li,
|
|
|
1034
1044
|
justify-content: center;
|
|
1035
1045
|
align-items: stretch;
|
|
1036
1046
|
}
|
|
1047
|
+
.canopy-interstitial__slide-link {
|
|
1048
|
+
display: block;
|
|
1049
|
+
text-decoration: none;
|
|
1050
|
+
color: inherit;
|
|
1051
|
+
height: 100%;
|
|
1052
|
+
}
|
|
1037
1053
|
.canopy-interstitial__pane {
|
|
1038
1054
|
position: relative;
|
|
1039
1055
|
width: 100%;
|
|
@@ -1141,46 +1157,37 @@ section[data-footnotes] ul li,
|
|
|
1141
1157
|
margin: 1.5rem auto 0;
|
|
1142
1158
|
text-align: center;
|
|
1143
1159
|
}
|
|
1144
|
-
.canopy-interstitial__caption-link {
|
|
1145
|
-
color: var(--hero-caption-link);
|
|
1146
|
-
text-decoration: underline;
|
|
1147
|
-
text-underline-offset: 0.35em;
|
|
1148
|
-
text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
|
|
1149
|
-
transition: color 0.2s ease, text-decoration-color 0.2s ease;
|
|
1150
|
-
}
|
|
1151
|
-
.canopy-interstitial__caption-link:hover, .canopy-interstitial__caption-link:focus-visible {
|
|
1152
|
-
color: var(--hero-caption-link);
|
|
1153
|
-
text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
|
|
1154
|
-
}
|
|
1155
1160
|
.canopy-interstitial__nav {
|
|
1156
1161
|
position: absolute;
|
|
1157
1162
|
inset: 0;
|
|
1158
1163
|
z-index: 4;
|
|
1164
|
+
pointer-events: none;
|
|
1159
1165
|
}
|
|
1160
1166
|
.canopy-interstitial__nav-btn {
|
|
1161
1167
|
position: absolute;
|
|
1162
1168
|
top: 50%;
|
|
1163
1169
|
transform: translateY(-50%);
|
|
1164
|
-
width: 2.
|
|
1165
|
-
height: 2.
|
|
1170
|
+
width: 2.618rem !important;
|
|
1171
|
+
height: 2.618rem !important;
|
|
1166
1172
|
border-radius: 9999px;
|
|
1167
|
-
border: 1px solid color-mix(in srgb, var(--color-gray-400) 55%, transparent);
|
|
1168
|
-
background-color: color-mix(in srgb, var(--color-gray-100) 65%, transparent);
|
|
1169
|
-
backdrop-filter: blur(6px);
|
|
1170
1173
|
cursor: pointer;
|
|
1171
1174
|
display: inline-flex;
|
|
1172
1175
|
align-items: center;
|
|
1173
1176
|
justify-content: center;
|
|
1174
1177
|
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
1175
|
-
|
|
1178
|
+
stroke: var(--color-accent-default) !important;
|
|
1179
|
+
color: var(--color-accent-default) !important;
|
|
1180
|
+
pointer-events: auto;
|
|
1176
1181
|
}
|
|
1177
1182
|
.canopy-interstitial__nav-btn::after {
|
|
1178
|
-
content:
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1183
|
+
content: none;
|
|
1184
|
+
display: none;
|
|
1185
|
+
}
|
|
1186
|
+
.canopy-interstitial__nav-btn svg {
|
|
1187
|
+
display: block;
|
|
1188
|
+
width: 1rem;
|
|
1189
|
+
height: 1rem;
|
|
1190
|
+
stroke: var(--color-accent-default);
|
|
1184
1191
|
}
|
|
1185
1192
|
.canopy-interstitial__nav-btn--prev {
|
|
1186
1193
|
left: 1.5rem;
|
|
@@ -1188,14 +1195,6 @@ section[data-footnotes] ul li,
|
|
|
1188
1195
|
.canopy-interstitial__nav-btn--next {
|
|
1189
1196
|
right: 1.5rem;
|
|
1190
1197
|
}
|
|
1191
|
-
.canopy-interstitial__nav-btn--next::after {
|
|
1192
|
-
transform: rotate(-45deg);
|
|
1193
|
-
}
|
|
1194
|
-
.canopy-interstitial__nav-btn:hover, .canopy-interstitial__nav-btn:focus-visible {
|
|
1195
|
-
background-color: color-mix(in srgb, var(--color-accent-200) 55%, transparent);
|
|
1196
|
-
border-color: color-mix(in srgb, var(--color-accent-400) 70%, transparent);
|
|
1197
|
-
color: var(--color-accent-700);
|
|
1198
|
-
}
|
|
1199
1198
|
.canopy-interstitial__pagination {
|
|
1200
1199
|
position: absolute;
|
|
1201
1200
|
z-index: 4;
|