@nulib/canopy 0.0.0 → 2.0.1
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/bin/canopy.js +16 -0
- package/lib/AGENTS.md +107 -0
- package/lib/base-path.js +67 -0
- package/lib/build/appearance.js +76 -0
- package/lib/build/assets.js +30 -0
- package/lib/build/build.js +350 -0
- package/lib/build/dev.js +1355 -0
- package/lib/build/devtoast.config.json +6 -0
- package/lib/build/devtoast.css +14 -0
- package/lib/build/facets.js +19 -0
- package/lib/build/fonts.js +105 -0
- package/lib/build/iiif.js +2990 -0
- package/lib/build/log.js +31 -0
- package/lib/build/mdx.js +1967 -0
- package/lib/build/package-names.js +111 -0
- package/lib/build/pages.js +420 -0
- package/lib/build/rehype-task-list-labels.js +54 -0
- package/lib/build/runtimes.js +141 -0
- package/lib/build/search-index.js +55 -0
- package/lib/build/search-text.js +160 -0
- package/lib/build/search-workflow.js +72 -0
- package/lib/build/search.js +302 -0
- package/lib/build/sitemap.js +197 -0
- package/lib/build/styles.js +140 -0
- package/lib/build/theme-tokens.js +78 -0
- package/lib/build/ui-styles.js +25 -0
- package/lib/build/upgrade-notices.js +121 -0
- package/lib/cli.js +64 -0
- package/lib/common.js +580 -0
- package/lib/components/bibliography.js +197 -0
- package/lib/components/featured.js +237 -0
- package/lib/components/hero-slider-runtime.js +215 -0
- package/lib/components/image-story-runtime-entry.js +249 -0
- package/lib/components/map-runtime.js +114 -0
- package/lib/components/metadata-index.js +32 -0
- package/lib/components/nav-place.js +227 -0
- package/lib/components/navigation.js +381 -0
- package/lib/components/referenced.js +217 -0
- package/lib/components/slider-runtime-entry.js +106 -0
- package/lib/components/timeline-runtime.js +80 -0
- package/lib/components/viewer-runtime-entry.js +88 -0
- package/lib/config-path.js +78 -0
- package/lib/default-locale.js +113 -0
- package/lib/discovery/browser-loader.js +107 -0
- package/lib/discovery/browser.js +115 -0
- package/lib/discovery/config.js +25 -0
- package/lib/discovery/envelope.js +124 -0
- package/lib/discovery/export.js +226 -0
- package/lib/discovery/ingestion.js +62 -0
- package/lib/discovery/pagination.js +66 -0
- package/lib/discovery/provenance.js +79 -0
- package/lib/discovery/search.js +81 -0
- package/lib/discovery/tools.js +155 -0
- package/lib/discovery/validation.js +121 -0
- package/lib/head.js +154 -0
- package/lib/iiif/thumbnail.js +402 -0
- package/lib/index.js +9 -0
- package/lib/locale-runtime.js +69 -0
- package/lib/locales.js +203 -0
- package/lib/orchestrator.js +231 -0
- package/lib/page-context.js +24 -0
- package/lib/search/bundle.js +25 -0
- package/lib/search/data.js +202 -0
- package/lib/search/engine.js +86 -0
- package/lib/search/index-cache.js +95 -0
- package/lib/search/search-app.jsx +835 -0
- package/lib/search/search-engine-runtime.js +44 -0
- package/lib/search/search-form-runtime.js +462 -0
- package/lib/search/search.js +676 -0
- package/package.json +109 -3
- package/types/base-path.d.ts +4 -0
- package/types/orchestrator.d.ts +17 -0
- package/ui/dist/index.mjs +7358 -0
- package/ui/dist/index.mjs.map +7 -0
- package/ui/dist/server.mjs +12731 -0
- package/ui/dist/server.mjs.map +7 -0
- package/ui/fonts/OFL.txt +98 -0
- package/ui/fonts/google-sans-flex-latin-ext.woff2 +0 -0
- package/ui/fonts/google-sans-flex-latin.woff2 +0 -0
- package/ui/fonts/source-serif-4-italic-latin-ext.woff2 +0 -0
- package/ui/fonts/source-serif-4-italic-latin.woff2 +0 -0
- package/ui/fonts/source-serif-4-latin-ext.woff2 +0 -0
- package/ui/fonts/source-serif-4-latin.woff2 +0 -0
- package/ui/styles/base/_common.scss +97 -0
- package/ui/styles/base/_heading.scss +61 -0
- package/ui/styles/base/_markdown.scss +188 -0
- package/ui/styles/base/_type.scss +51 -0
- package/ui/styles/base/_utilities.scss +7 -0
- package/ui/styles/base/index.scss +5 -0
- package/ui/styles/components/_article-card.scss +108 -0
- package/ui/styles/components/_band.scss +104 -0
- package/ui/styles/components/_bibliography.scss +88 -0
- package/ui/styles/components/_buttons.scss +143 -0
- package/ui/styles/components/_card.scss +109 -0
- package/ui/styles/components/_diagram.scss +76 -0
- package/ui/styles/components/_feature.scss +66 -0
- package/ui/styles/components/_footer.scss +136 -0
- package/ui/styles/components/_gallery.scss +476 -0
- package/ui/styles/components/_image-story.scss +56 -0
- package/ui/styles/components/_interstitial-hero.scss +625 -0
- package/ui/styles/components/_layout.scss +83 -0
- package/ui/styles/components/_map.scss +296 -0
- package/ui/styles/components/_metadata-index.scss +68 -0
- package/ui/styles/components/_nav-tree.scss +80 -0
- package/ui/styles/components/_referenced-items.scss +69 -0
- package/ui/styles/components/_sub-navigation.scss +208 -0
- package/ui/styles/components/_swoosh.scss +50 -0
- package/ui/styles/components/_timeline.scss +350 -0
- package/ui/styles/components/_work.scss +71 -0
- package/ui/styles/components/header/_header.scss +294 -0
- package/ui/styles/components/header/_logo.scss +99 -0
- package/ui/styles/components/header/_navbar.scss +143 -0
- package/ui/styles/components/header/index.scss +3 -0
- package/ui/styles/components/iiif/_image.scss +32 -0
- package/ui/styles/components/iiif/_slider.scss +5 -0
- package/ui/styles/components/iiif/index.scss +2 -0
- package/ui/styles/components/index.scss +25 -0
- package/ui/styles/components/modal/_modal.scss +130 -0
- package/ui/styles/components/modal/index.scss +1 -0
- package/ui/styles/components/search/_filters.scss +259 -0
- package/ui/styles/components/search/_form.scss +187 -0
- package/ui/styles/components/search/_panel.scss +7 -0
- package/ui/styles/components/search/_results.scss +241 -0
- package/ui/styles/components/search/_tabs.scss +60 -0
- package/ui/styles/components/search/index.scss +4 -0
- package/ui/styles/index.css +5007 -0
- package/ui/styles/index.scss +11 -0
- package/ui/styles/settings/_breakpoints.scss +7 -0
- package/ui/styles/settings/_focus.scss +15 -0
- package/ui/styles/settings/_tokens.scss +170 -0
- package/ui/styles/settings/_type.scss +126 -0
- package/ui/styles/version-parity.css +116 -0
- package/ui/tailwind-canopy-iiif-plugin.js +39 -0
- package/ui/tailwind-canopy-iiif-preset.js +32 -0
- package/ui/tailwind-config.d.ts +29 -0
- package/ui/tailwind-config.js +159 -0
- package/ui/tailwind-default.config.mjs +4 -0
- package/ui/theme-color.js +130 -0
- package/ui/theme-palette.js +337 -0
- package/ui/theme.js +153 -0
- package/README.md +0 -3
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
@use "./buttons" as buttons;
|
|
2
|
+
@use "../settings/type";
|
|
3
|
+
|
|
4
|
+
.canopy-gallery {
|
|
5
|
+
position: relative;
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
--canopy-gallery-gap: 1.5rem;
|
|
9
|
+
--canopy-gallery-modal-actions-width: clamp(5rem, 18vw, 8rem);
|
|
10
|
+
color: var(--color-gray-900);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Initial view
|
|
14
|
+
.canopy-gallery {
|
|
15
|
+
&__close-anchor,
|
|
16
|
+
&__visually-hidden,
|
|
17
|
+
&__trigger-label,
|
|
18
|
+
&__nav-label {
|
|
19
|
+
position: absolute;
|
|
20
|
+
width: 1px;
|
|
21
|
+
height: 1px;
|
|
22
|
+
margin: -1px;
|
|
23
|
+
padding: 0;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
clip: rect(0 0 0 0);
|
|
26
|
+
border: 0;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__header {
|
|
31
|
+
margin-bottom: clamp(1rem, 2vw, 1.5rem);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__heading {
|
|
35
|
+
@include type.title;
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__description {
|
|
41
|
+
@include type.lede;
|
|
42
|
+
margin: 1rem 0 0;
|
|
43
|
+
max-width: unset;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__grid {
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
|
|
49
|
+
gap: var(--canopy-gallery-gap);
|
|
50
|
+
padding: var(--canopy-gallery-gap) 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__item {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
height: 100%;
|
|
58
|
+
padding: clamp(0.75rem, 1vw, 1rem);
|
|
59
|
+
border: 1px solid var(--color-gray-200);
|
|
60
|
+
|
|
61
|
+
&:focus-within {
|
|
62
|
+
outline: 2px solid var(--color-accent-default);
|
|
63
|
+
outline-offset: 3px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__media {
|
|
68
|
+
position: relative;
|
|
69
|
+
aspect-ratio: 1/1;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
background: var(--color-gray-100);
|
|
72
|
+
|
|
73
|
+
img,
|
|
74
|
+
picture,
|
|
75
|
+
video,
|
|
76
|
+
iframe {
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
display: block;
|
|
80
|
+
object-fit: cover;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__placeholder {
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
background-image: linear-gradient(
|
|
88
|
+
45deg,
|
|
89
|
+
color-mix(in srgb, var(--color-gray-50) 45%, transparent) 25%,
|
|
90
|
+
transparent 25%,
|
|
91
|
+
transparent 50%,
|
|
92
|
+
color-mix(in srgb, var(--color-gray-50) 45%, transparent) 50%,
|
|
93
|
+
color-mix(in srgb, var(--color-gray-50) 45%, transparent) 75%,
|
|
94
|
+
transparent 75%,
|
|
95
|
+
transparent
|
|
96
|
+
);
|
|
97
|
+
background-size: 1.5rem 1.5rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__caption {
|
|
101
|
+
margin: clamp(0.75rem, 1vw, 1rem) 0 0;
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: 0.35rem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&__kicker {
|
|
108
|
+
@include type.label;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__title-text {
|
|
112
|
+
@include type.ui(bold);
|
|
113
|
+
color: var(--color-gray-900);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&__summary {
|
|
117
|
+
@include type.ui-sm;
|
|
118
|
+
color: var(--color-gray-muted);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&__meta {
|
|
122
|
+
margin: 0.35rem 0 0;
|
|
123
|
+
padding: 0;
|
|
124
|
+
list-style: none;
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
gap: 0.75rem;
|
|
128
|
+
@include type.ui-sm;
|
|
129
|
+
color: var(--color-gray-muted);
|
|
130
|
+
|
|
131
|
+
&--modal {
|
|
132
|
+
gap: 1rem;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__trigger {
|
|
137
|
+
position: absolute;
|
|
138
|
+
inset: 0;
|
|
139
|
+
text-decoration: none;
|
|
140
|
+
border: 0;
|
|
141
|
+
z-index: 2;
|
|
142
|
+
color: inherit;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Modal popup
|
|
147
|
+
.canopy-gallery {
|
|
148
|
+
&__modals {
|
|
149
|
+
position: relative;
|
|
150
|
+
z-index: 100;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&__modal {
|
|
154
|
+
position: fixed;
|
|
155
|
+
inset: 0;
|
|
156
|
+
opacity: 0;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
visibility: hidden;
|
|
159
|
+
z-index: 200;
|
|
160
|
+
transform: translate3d(-200vw, 0, 0);
|
|
161
|
+
|
|
162
|
+
&:target,
|
|
163
|
+
&[data-canopy-gallery-active="1"] {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
pointer-events: auto;
|
|
166
|
+
visibility: visible;
|
|
167
|
+
transform: none;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&__modal-scrim {
|
|
172
|
+
height: 100%;
|
|
173
|
+
display: block;
|
|
174
|
+
background-color: var(--color-gray-50);
|
|
175
|
+
padding: 0;
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: row;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__modal-panel {
|
|
182
|
+
position: relative;
|
|
183
|
+
padding: 1.618rem;
|
|
184
|
+
padding-right: 2.618rem;
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
gap: 1.6181rem;
|
|
188
|
+
flex-grow: 1;
|
|
189
|
+
z-index: 1;
|
|
190
|
+
max-height: 100vh;
|
|
191
|
+
overflow-y: auto;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&__modal-actions {
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: stretch;
|
|
197
|
+
justify-content: space-between;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
flex-grow: 0;
|
|
200
|
+
flex-shrink: 0;
|
|
201
|
+
gap: 1rem;
|
|
202
|
+
width: 10vw;
|
|
203
|
+
max-width: 150px;
|
|
204
|
+
min-width: calc(50px + 2rem);
|
|
205
|
+
padding: 1rem;
|
|
206
|
+
margin-left: 0;
|
|
207
|
+
isolation: isolate;
|
|
208
|
+
z-index: 2;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&__modal-header {
|
|
212
|
+
border: none;
|
|
213
|
+
display: flex;
|
|
214
|
+
gap: 1rem;
|
|
215
|
+
align-items: flex-start;
|
|
216
|
+
flex-wrap: wrap;
|
|
217
|
+
padding: 1rem 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&__modal-text {
|
|
221
|
+
flex: 1;
|
|
222
|
+
min-width: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&__modal-kicker {
|
|
226
|
+
@include type.label;
|
|
227
|
+
margin: 0 0 0.5rem;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&__modal-title {
|
|
231
|
+
@include type.h3;
|
|
232
|
+
margin: 0.382rem 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&__modal-summary {
|
|
236
|
+
@include type.body;
|
|
237
|
+
margin: 0;
|
|
238
|
+
color: var(--color-gray-muted);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
&__modal-body {
|
|
242
|
+
flex: 0 0 auto;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&__modal-close {
|
|
246
|
+
padding: 0.35rem 1.25rem;
|
|
247
|
+
display: inline-flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
justify-content: center;
|
|
250
|
+
text-align: center;
|
|
251
|
+
position: absolute;
|
|
252
|
+
top: 1rem;
|
|
253
|
+
right: 1rem;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&__modal-nav {
|
|
257
|
+
display: flex;
|
|
258
|
+
align-items: center;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
body[data-canopy-gallery-locked="1"] {
|
|
263
|
+
overflow: hidden;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.canopy-gallery--popup-window {
|
|
267
|
+
.canopy-gallery__modal {
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: center;
|
|
271
|
+
padding: clamp(1.25rem, 4vw, 2.5rem);
|
|
272
|
+
background: #0006;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.canopy-gallery__modal-scrim {
|
|
276
|
+
width: 80vw;
|
|
277
|
+
height: calc(100vh - 4rem);
|
|
278
|
+
max-width: 80vw;
|
|
279
|
+
max-height: calc(100vh - 4rem);
|
|
280
|
+
background: var(--color-gray-50);
|
|
281
|
+
overflow: hidden;
|
|
282
|
+
display: flex;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.canopy-gallery__modal-actions {
|
|
286
|
+
width: clamp(5rem, 18vw, 8rem);
|
|
287
|
+
max-width: clamp(5rem, 18vw, 8rem);
|
|
288
|
+
background: var(--color-gray-100);
|
|
289
|
+
border-right: 1px solid var(--color-gray-200);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.canopy-gallery__modal-panel {
|
|
293
|
+
width: auto;
|
|
294
|
+
height: 100%;
|
|
295
|
+
max-width: none;
|
|
296
|
+
flex: 1 1 auto;
|
|
297
|
+
background: transparent;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.canopy-gallery--popup-full {
|
|
302
|
+
.canopy-gallery__modal-scrim {
|
|
303
|
+
padding: 0;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Modal popup nav
|
|
308
|
+
.canopy-gallery {
|
|
309
|
+
&__nav {
|
|
310
|
+
display: flex;
|
|
311
|
+
flex-direction: column;
|
|
312
|
+
align-items: stretch;
|
|
313
|
+
gap: 0.5rem;
|
|
314
|
+
margin: 0;
|
|
315
|
+
height: 100%;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
&__nav-viewport {
|
|
319
|
+
flex: 1;
|
|
320
|
+
overflow-y: auto;
|
|
321
|
+
overflow-x: hidden;
|
|
322
|
+
scrollbar-width: thin;
|
|
323
|
+
|
|
324
|
+
&::-webkit-scrollbar {
|
|
325
|
+
width: 0.35rem;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
&::-webkit-scrollbar-thumb {
|
|
329
|
+
background-color: color-mix(in srgb, var(--color-gray-900) 20%, transparent);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
&__nav-list {
|
|
334
|
+
margin: 0;
|
|
335
|
+
padding: 0;
|
|
336
|
+
list-style: none;
|
|
337
|
+
display: flex;
|
|
338
|
+
flex-direction: column;
|
|
339
|
+
gap: 0.618rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&__nav-item {
|
|
343
|
+
position: relative;
|
|
344
|
+
list-style: none;
|
|
345
|
+
margin: 0;
|
|
346
|
+
|
|
347
|
+
&[data-canopy-gallery-nav-selected] {
|
|
348
|
+
.canopy-gallery__nav-thumb {
|
|
349
|
+
outline: 3px solid var(--color-accent-default);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&__nav-link {
|
|
355
|
+
display: inline-flex;
|
|
356
|
+
flex-direction: column;
|
|
357
|
+
text-decoration: none;
|
|
358
|
+
background: var(--color-gray-50);
|
|
359
|
+
color: inherit;
|
|
360
|
+
width: 100%;
|
|
361
|
+
align-items: stretch;
|
|
362
|
+
justify-content: stretch;
|
|
363
|
+
padding: 3px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&__nav-radio {
|
|
367
|
+
position: absolute;
|
|
368
|
+
inset: 0;
|
|
369
|
+
width: 100%;
|
|
370
|
+
height: 100%;
|
|
371
|
+
opacity: 0;
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
&__nav-thumb {
|
|
376
|
+
width: 100%;
|
|
377
|
+
aspect-ratio: 1 / 1;
|
|
378
|
+
overflow: hidden;
|
|
379
|
+
padding: 1px;
|
|
380
|
+
outline: 3px solid var(--color-gray-50);
|
|
381
|
+
|
|
382
|
+
img,
|
|
383
|
+
picture,
|
|
384
|
+
video,
|
|
385
|
+
iframe {
|
|
386
|
+
width: 100%;
|
|
387
|
+
height: 100%;
|
|
388
|
+
object-fit: cover;
|
|
389
|
+
display: block;
|
|
390
|
+
opacity: 1;
|
|
391
|
+
transition: all 0.2s ease;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
&__nav-button {
|
|
396
|
+
@include buttons.canopy-button-base(0.25rem, 0.75rem);
|
|
397
|
+
flex: 0 0 auto;
|
|
398
|
+
width: 5rem;
|
|
399
|
+
height: 100%;
|
|
400
|
+
color: var(--color-gray-900);
|
|
401
|
+
font-size: var(--canopy-text-xl);
|
|
402
|
+
display: none;
|
|
403
|
+
align-items: center;
|
|
404
|
+
justify-content: center;
|
|
405
|
+
position: absolute;
|
|
406
|
+
top: 50%;
|
|
407
|
+
transform: translateY(-50%);
|
|
408
|
+
z-index: 5;
|
|
409
|
+
border: none;
|
|
410
|
+
background: linear-gradient(to right, transparent, transparent);
|
|
411
|
+
|
|
412
|
+
&--prev {
|
|
413
|
+
left: -1rem;
|
|
414
|
+
|
|
415
|
+
&:hover,
|
|
416
|
+
&:focus {
|
|
417
|
+
background: linear-gradient(
|
|
418
|
+
to right,
|
|
419
|
+
var(--color-gray-50),
|
|
420
|
+
transparent
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
&--next {
|
|
426
|
+
right: 0;
|
|
427
|
+
background: linear-gradient(to left, transparent, transparent);
|
|
428
|
+
|
|
429
|
+
&:hover,
|
|
430
|
+
&:focus {
|
|
431
|
+
background: linear-gradient(to left, var(--color-gray-50), transparent);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
&__nav-controls {
|
|
437
|
+
display: grid;
|
|
438
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
439
|
+
gap: 0.5rem;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&__nav-button-icon {
|
|
443
|
+
font-size: var(--canopy-text-xl);
|
|
444
|
+
line-height: 1;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// Modal popup gallery content flex
|
|
449
|
+
.canopy-gallery-item__content_flex {
|
|
450
|
+
display: flex;
|
|
451
|
+
flex-direction: row;
|
|
452
|
+
gap: 2rem;
|
|
453
|
+
|
|
454
|
+
aside {
|
|
455
|
+
min-width: 400px;
|
|
456
|
+
padding-right: 2rem;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
dl {
|
|
460
|
+
display: flex;
|
|
461
|
+
flex-direction: column;
|
|
462
|
+
gap: 0.2rem;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
dt {
|
|
466
|
+
@include type.label;
|
|
467
|
+
margin: 0;
|
|
468
|
+
margin-top: 0.85rem;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
dd {
|
|
472
|
+
@include type.ui;
|
|
473
|
+
color: var(--color-gray-900);
|
|
474
|
+
margin: 0;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.canopy-image-story.storiiies-viewer {
|
|
2
|
+
--storiiies-viewer-container-bg: var(--color-gray-200);
|
|
3
|
+
--storiiies-viewer-font-family: var(--default-font-family);
|
|
4
|
+
--storiiies-viewer-font-size: var(--canopy-text-md);
|
|
5
|
+
--storiiies-viewer-title-font-size: var(--canopy-text-lg);
|
|
6
|
+
--storiiies-viewer-fg: var(--color-gray-900);
|
|
7
|
+
--storiiies-viewer-bg: var(--color-gray-50);
|
|
8
|
+
--storiiies-viewer-outer-spacing: 1rem;
|
|
9
|
+
--storiiies-viewer-line-height: unset;
|
|
10
|
+
--storiiies-viewer-col-gap: 0.618rem;
|
|
11
|
+
--storiiies-viewer-row-gap: 0.618rem;
|
|
12
|
+
--storiiies-viewer-button-bg: var(--color-accent-default);
|
|
13
|
+
--storiiies-viewer-button-fg: var(--color-gray-50);
|
|
14
|
+
|
|
15
|
+
position: relative;
|
|
16
|
+
display: block;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
|
|
19
|
+
.storiiies-viewer__info-text {
|
|
20
|
+
margin-top: 1.618rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// It scrolls, so it takes focus (`tabindex="0"`), and shows it: drawn inside, as the
|
|
24
|
+
// viewer's frame clips (WCAG 2.4.7; ACCESSIBILITY.md C23).
|
|
25
|
+
.storiiies-viewer__info-text:focus-visible {
|
|
26
|
+
outline: 2px solid var(--color-accent-default);
|
|
27
|
+
outline-offset: -2px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
p {
|
|
31
|
+
font-size: var(--storiiies-viewer-font-size);
|
|
32
|
+
color: var(--color-gray-800);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.storiiies-viewer__text-section {
|
|
36
|
+
font-weight: var(--canopy-weight-regular);
|
|
37
|
+
|
|
38
|
+
strong {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.storiiies-viewer__title {
|
|
43
|
+
font-size: var(--storiiies-viewer-title-font-size);
|
|
44
|
+
font-weight: var(--canopy-weight-bold);
|
|
45
|
+
color: var(--color-gray-900);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.storiiies-viewer__info-area {
|
|
50
|
+
font-weight: var(--canopy-weight-regular);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-canopy-image-story] {
|
|
54
|
+
min-height: 320px;
|
|
55
|
+
}
|
|
56
|
+
}
|