@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,625 @@
|
|
|
1
|
+
@use "./buttons" as buttons;
|
|
2
|
+
@use "../settings/focus" as focus;
|
|
3
|
+
@use "../settings/type";
|
|
4
|
+
|
|
5
|
+
.canopy-interstitial {
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
isolation: isolate;
|
|
9
|
+
margin-bottom: 2.618rem;
|
|
10
|
+
margin-top: -5rem;
|
|
11
|
+
z-index: 0;
|
|
12
|
+
padding-top: 4rem;
|
|
13
|
+
|
|
14
|
+
&--hero {
|
|
15
|
+
--hero-height: 520px;
|
|
16
|
+
--hero-bg-start: var(--color-gray-50);
|
|
17
|
+
--hero-bg-mid: var(--color-accent-50);
|
|
18
|
+
--hero-bg-end: var(--color-accent-200);
|
|
19
|
+
// A slide button's dot holds 3:1 on the page (1.4.11); the current one is the
|
|
20
|
+
// accent, and larger, so its state is not in its color alone.
|
|
21
|
+
--hero-dot-bg: var(--color-gray-muted);
|
|
22
|
+
--hero-dot-active-bg: var(--color-accent-default);
|
|
23
|
+
|
|
24
|
+
background: linear-gradient(
|
|
25
|
+
173deg,
|
|
26
|
+
var(--hero-bg-start) 5rem,
|
|
27
|
+
var(--hero-bg-mid) 61.8%,
|
|
28
|
+
var(--hero-bg-end) 100%
|
|
29
|
+
);
|
|
30
|
+
min-height: var(--hero-height);
|
|
31
|
+
|
|
32
|
+
.canopy-interstitial__overlay,
|
|
33
|
+
.canopy-interstitial__pane::before,
|
|
34
|
+
.canopy-interstitial__pane::after,
|
|
35
|
+
.canopy-interstitial__veil {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.canopy-interstitial__layout {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
min-height: var(--hero-height);
|
|
43
|
+
width: 100%;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.canopy-interstitial__panel {
|
|
48
|
+
flex: 1;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
padding: clamp(1.618rem, 5vw, 3rem) clamp(1.618rem, 4vw, 3rem);
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
min-width: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.canopy-interstitial__body {
|
|
58
|
+
align-items: flex-start;
|
|
59
|
+
text-align: left;
|
|
60
|
+
width: 100%;
|
|
61
|
+
max-width: none;
|
|
62
|
+
margin: 0;
|
|
63
|
+
gap: 1.5rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// The carousel: its slide on the stage, the rotation control over the stage's
|
|
67
|
+
// corner (first in reading order, `Hero.jsx`), the slide buttons below it.
|
|
68
|
+
.canopy-interstitial__media-group {
|
|
69
|
+
flex: 1;
|
|
70
|
+
position: relative;
|
|
71
|
+
min-height: var(--hero-height);
|
|
72
|
+
display: grid;
|
|
73
|
+
grid-template-columns: minmax(0, 1fr);
|
|
74
|
+
grid-template-areas:
|
|
75
|
+
"stage"
|
|
76
|
+
"dots";
|
|
77
|
+
align-content: start;
|
|
78
|
+
padding: clamp(1.5rem, 4vw, 3rem);
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.canopy-interstitial__slider {
|
|
85
|
+
grid-area: stage;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.canopy-interstitial__rotation {
|
|
89
|
+
grid-area: stage;
|
|
90
|
+
align-self: start;
|
|
91
|
+
justify-self: start;
|
|
92
|
+
margin: 0.618rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.canopy-interstitial__caption {
|
|
96
|
+
position: static;
|
|
97
|
+
margin: 1.5rem auto 0;
|
|
98
|
+
padding: 0 0.5rem;
|
|
99
|
+
text-align: center;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.canopy-interstitial__panel,
|
|
103
|
+
.canopy-interstitial__media-group {
|
|
104
|
+
width: 50%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.canopy-interstitial__pagination {
|
|
108
|
+
grid-area: dots;
|
|
109
|
+
position: static;
|
|
110
|
+
transform: none;
|
|
111
|
+
width: 100%;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
margin-top: 1.618rem;
|
|
114
|
+
padding-bottom: 2px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (max-width: 63.9375rem) {
|
|
118
|
+
background: none !important;
|
|
119
|
+
|
|
120
|
+
.canopy-interstitial__panel,
|
|
121
|
+
.canopy-interstitial__media-group {
|
|
122
|
+
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.canopy-interstitial__media-group {
|
|
126
|
+
padding: 1rem 0 !important;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@media (min-width: 48rem) {
|
|
131
|
+
.canopy-interstitial__layout {
|
|
132
|
+
flex-direction: row;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&--hero-breadcrumb {
|
|
139
|
+
margin-bottom: 0.618rem;
|
|
140
|
+
|
|
141
|
+
.canopy-interstitial__body {
|
|
142
|
+
align-items: center;
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-wrap: nowrap;
|
|
145
|
+
flex-direction: row;
|
|
146
|
+
justify-content: space-between;
|
|
147
|
+
padding: 0;
|
|
148
|
+
|
|
149
|
+
p {
|
|
150
|
+
flex-grow: 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.canopy-interstitial__panel {
|
|
155
|
+
padding: 1rem 1.618rem;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.canopy-interstitial__description {
|
|
159
|
+
@include type.code(true);
|
|
160
|
+
color: var(--color-accent-default);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&__breadcrumb {
|
|
165
|
+
@include type.ui-sm;
|
|
166
|
+
display: inline-flex;
|
|
167
|
+
gap: 0.5rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&__breadcrumb a {
|
|
171
|
+
color: inherit;
|
|
172
|
+
text-decoration: none;
|
|
173
|
+
color: var(--color-gray-muted);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&__breadcrumb a:hover {
|
|
177
|
+
color: var(--color-accent-default);
|
|
178
|
+
text-decoration: underline;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__breadcrumb a:focus-visible {
|
|
182
|
+
@include focus.focus-ring;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&__breadcrumb-separator,
|
|
186
|
+
&__breadcrumb-current {
|
|
187
|
+
color: var(--color-gray-900);
|
|
188
|
+
font-weight: var(--canopy-weight-bold);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&__slider {
|
|
192
|
+
position: relative;
|
|
193
|
+
width: 100%;
|
|
194
|
+
min-height: var(--hero-height);
|
|
195
|
+
overflow: hidden;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&__slide-wrapper {
|
|
199
|
+
display: flex;
|
|
200
|
+
// A horizontal swipe reaches the runtime; a vertical one still scrolls the page.
|
|
201
|
+
touch-action: pan-y;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&__slide {
|
|
205
|
+
flex: 0 0 100%;
|
|
206
|
+
min-width: 0;
|
|
207
|
+
display: flex;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
align-items: stretch;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// One slide shows at a time, and the controls only once the runtime runs them
|
|
213
|
+
// (`hero-slider-runtime.js`).
|
|
214
|
+
&__slide[hidden],
|
|
215
|
+
&__nav[hidden],
|
|
216
|
+
&__pagination[hidden],
|
|
217
|
+
&__rotation[hidden] {
|
|
218
|
+
display: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&__slide-link {
|
|
222
|
+
position: relative;
|
|
223
|
+
display: block;
|
|
224
|
+
text-decoration: none;
|
|
225
|
+
color: inherit;
|
|
226
|
+
height: 100%;
|
|
227
|
+
border-radius: var(--canopy-radius-xl);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Focused, a ring over the slide's picture, inside the stage that clips it: the page's
|
|
231
|
+
// ground, then the accent's text step, so it shows on any picture (2.4.7). Forced-colors
|
|
232
|
+
// mode drops shadows and keeps the outline.
|
|
233
|
+
&__slide-link:focus-visible {
|
|
234
|
+
outline: 2px solid transparent;
|
|
235
|
+
outline-offset: -2px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&__slide-link:focus-visible::after {
|
|
239
|
+
content: "";
|
|
240
|
+
position: absolute;
|
|
241
|
+
inset: 0;
|
|
242
|
+
z-index: 3;
|
|
243
|
+
border-radius: inherit;
|
|
244
|
+
box-shadow:
|
|
245
|
+
inset 0 0 0 3px var(--color-gray-50),
|
|
246
|
+
inset 0 0 0 5px var(--color-accent-default);
|
|
247
|
+
pointer-events: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&__pane {
|
|
251
|
+
position: relative;
|
|
252
|
+
width: 100%;
|
|
253
|
+
min-height: var(--hero-height);
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&__pane::before,
|
|
258
|
+
&__pane::after {
|
|
259
|
+
content: "";
|
|
260
|
+
position: absolute;
|
|
261
|
+
inset: 0;
|
|
262
|
+
pointer-events: none;
|
|
263
|
+
z-index: 1;
|
|
264
|
+
display: none;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&__pane--flat::before,
|
|
268
|
+
&__pane--flat::after {
|
|
269
|
+
display: none;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&__pane--static {
|
|
273
|
+
display: flex;
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
height: var(--hero-height);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&__media {
|
|
279
|
+
position: absolute;
|
|
280
|
+
inset: 0;
|
|
281
|
+
width: 100%;
|
|
282
|
+
height: 100%;
|
|
283
|
+
object-fit: cover;
|
|
284
|
+
object-position: center;
|
|
285
|
+
z-index: 0;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&__media-frame {
|
|
289
|
+
position: relative;
|
|
290
|
+
width: 100%;
|
|
291
|
+
height: 100%;
|
|
292
|
+
flex: 1 1 auto;
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
border-radius: var(--canopy-radius-xl);
|
|
295
|
+
background-color: var(--canopy-surface);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&__media--static {
|
|
299
|
+
position: static;
|
|
300
|
+
display: block;
|
|
301
|
+
width: 100%;
|
|
302
|
+
height: 100%;
|
|
303
|
+
object-fit: cover;
|
|
304
|
+
object-position: center;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
&__veil {
|
|
308
|
+
position: absolute;
|
|
309
|
+
inset: 0;
|
|
310
|
+
pointer-events: none;
|
|
311
|
+
z-index: 2;
|
|
312
|
+
display: none;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
&__overlay {
|
|
316
|
+
pointer-events: none;
|
|
317
|
+
position: absolute;
|
|
318
|
+
inset: 0;
|
|
319
|
+
z-index: 6;
|
|
320
|
+
display: flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
justify-content: center;
|
|
323
|
+
padding: 4rem 1.75rem;
|
|
324
|
+
background: linear-gradient(
|
|
325
|
+
135deg,
|
|
326
|
+
color-mix(in srgb, var(--hero-bg-start) 85%, transparent) 0%,
|
|
327
|
+
color-mix(in srgb, var(--hero-bg-end) 70%, transparent) 100%
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
&__body {
|
|
332
|
+
position: relative;
|
|
333
|
+
z-index: 3;
|
|
334
|
+
max-width: 48rem;
|
|
335
|
+
margin: 0 auto;
|
|
336
|
+
padding: 0;
|
|
337
|
+
display: flex;
|
|
338
|
+
flex-direction: column;
|
|
339
|
+
align-items: center;
|
|
340
|
+
gap: 1.5rem;
|
|
341
|
+
text-align: center;
|
|
342
|
+
pointer-events: auto;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// The page's title, by the window's width.
|
|
346
|
+
&__headline {
|
|
347
|
+
@include type.title;
|
|
348
|
+
margin: 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// The hero's standfirst, a lede; in the page's text on the theme's wash.
|
|
352
|
+
&__description {
|
|
353
|
+
@include type.lede;
|
|
354
|
+
margin: 0;
|
|
355
|
+
max-width: 42rem;
|
|
356
|
+
color: var(--color-gray-900);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&__caption {
|
|
360
|
+
position: absolute;
|
|
361
|
+
bottom: 1.75rem;
|
|
362
|
+
font-weight: var(--canopy-weight-bold);
|
|
363
|
+
right: 2rem;
|
|
364
|
+
z-index: 3;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
&__caption--static {
|
|
368
|
+
position: static;
|
|
369
|
+
margin: 1.5rem auto 0;
|
|
370
|
+
text-align: center;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&__nav {
|
|
374
|
+
position: absolute;
|
|
375
|
+
inset: 0;
|
|
376
|
+
z-index: 4;
|
|
377
|
+
pointer-events: none;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
&__nav-btn {
|
|
381
|
+
@include buttons.canopy-button-base(0.25rem, 0.75rem);
|
|
382
|
+
position: absolute;
|
|
383
|
+
top: 50%;
|
|
384
|
+
transform: translateY(-50%);
|
|
385
|
+
width: 2.618rem !important;
|
|
386
|
+
height: 2.618rem !important;
|
|
387
|
+
color: var(--color-gray-50) !important;
|
|
388
|
+
background-color: var(--color-accent-default) !important;
|
|
389
|
+
pointer-events: auto;
|
|
390
|
+
border: none;
|
|
391
|
+
border-radius: var(--canopy-radius-pill);
|
|
392
|
+
|
|
393
|
+
&::after {
|
|
394
|
+
content: none;
|
|
395
|
+
display: none;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
svg {
|
|
399
|
+
display: block;
|
|
400
|
+
width: 1rem;
|
|
401
|
+
height: 1rem;
|
|
402
|
+
stroke: var(--color-gray-50);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
&--prev {
|
|
406
|
+
left: 0.618rem !important;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
&--next {
|
|
410
|
+
right: 0.618rem !important;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
&:hover {
|
|
414
|
+
background-color: var(--color-accent-hover) !important;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// The rotation control: drawn as previous and next are, its glyph the state it will
|
|
419
|
+
// set (pause while the slides rotate, play once they are stopped).
|
|
420
|
+
&__rotation {
|
|
421
|
+
@include buttons.canopy-button-base(0.25rem, 0.25rem);
|
|
422
|
+
position: relative;
|
|
423
|
+
z-index: 5;
|
|
424
|
+
width: 2.618rem;
|
|
425
|
+
height: 2.618rem;
|
|
426
|
+
border: none;
|
|
427
|
+
border-radius: var(--canopy-radius-pill);
|
|
428
|
+
color: var(--color-gray-50);
|
|
429
|
+
background-color: var(--color-accent-default);
|
|
430
|
+
|
|
431
|
+
&:hover {
|
|
432
|
+
background-color: var(--color-accent-hover);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
svg {
|
|
436
|
+
display: block;
|
|
437
|
+
width: 1rem;
|
|
438
|
+
height: 1rem;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&__rotation[data-rotation="on"] &__rotation-icon--play,
|
|
443
|
+
&__rotation[data-rotation="off"] &__rotation-icon--pause {
|
|
444
|
+
display: none;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
// The hero clips what spills out of it, so its controls draw their focus inside:
|
|
448
|
+
// the page's ground on the accent, 4.5:1 (2.4.7).
|
|
449
|
+
&__rotation:focus-visible,
|
|
450
|
+
&__nav-btn:focus-visible {
|
|
451
|
+
outline: 2px solid var(--color-gray-50);
|
|
452
|
+
outline-offset: -5px;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
&__dot:focus-visible {
|
|
456
|
+
outline: 2px solid var(--color-accent-default);
|
|
457
|
+
outline-offset: -2px;
|
|
458
|
+
border-radius: var(--canopy-radius-circle);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
&__pagination {
|
|
462
|
+
position: absolute;
|
|
463
|
+
z-index: 4;
|
|
464
|
+
bottom: 1rem;
|
|
465
|
+
left: 50%;
|
|
466
|
+
transform: translateX(-50%);
|
|
467
|
+
display: flex;
|
|
468
|
+
gap: 0;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// Each dot is a 24px target (WCAG 2.5.8; ACCESSIBILITY.md C2): the button is the
|
|
472
|
+
// target, and its ::before draws the dot at the size it has always had.
|
|
473
|
+
&__dot {
|
|
474
|
+
display: inline-flex;
|
|
475
|
+
align-items: center;
|
|
476
|
+
justify-content: center;
|
|
477
|
+
width: 24px;
|
|
478
|
+
height: 24px;
|
|
479
|
+
padding: 0;
|
|
480
|
+
border: 0;
|
|
481
|
+
background: transparent;
|
|
482
|
+
cursor: pointer;
|
|
483
|
+
|
|
484
|
+
&::before {
|
|
485
|
+
content: "";
|
|
486
|
+
width: 0.45rem;
|
|
487
|
+
height: 0.45rem;
|
|
488
|
+
border-radius: var(--canopy-radius-circle);
|
|
489
|
+
background-color: var(--hero-dot-bg);
|
|
490
|
+
transition:
|
|
491
|
+
transform 0.2s ease,
|
|
492
|
+
background-color 0.2s ease;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
&__dot--active::before {
|
|
497
|
+
transform: scale(1.35);
|
|
498
|
+
background-color: var(--hero-dot-active-bg);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.canopy-interstitial--hero.canopy-interstitial--bg-transparent {
|
|
503
|
+
background: none;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.canopy-interstitial--hero.canopy-interstitial--bg-transparent
|
|
507
|
+
.canopy-interstitial__overlay {
|
|
508
|
+
background: none;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@media (min-width: 40rem) {
|
|
512
|
+
.canopy-interstitial__body {
|
|
513
|
+
padding-inline: 2.75rem;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
@media (min-width: 64rem) {
|
|
519
|
+
.canopy-interstitial__body {
|
|
520
|
+
padding-inline: 4rem;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
// The centered hero (`variant="centered"`), after Clover's homepage: the headline at
|
|
525
|
+
// display size, its words a lede and its links under it, all centered on the page's own
|
|
526
|
+
// ground; the carousel under them in a raised card, each picture whole. The rotation
|
|
527
|
+
// control keeps its corner of the stage, first in reading order (2.2.2).
|
|
528
|
+
.canopy-interstitial--hero-centered {
|
|
529
|
+
margin-top: 0;
|
|
530
|
+
padding-top: 0;
|
|
531
|
+
background: none;
|
|
532
|
+
min-height: 0;
|
|
533
|
+
|
|
534
|
+
.canopy-interstitial__layout {
|
|
535
|
+
flex-direction: column !important;
|
|
536
|
+
align-items: center;
|
|
537
|
+
gap: clamp(1.618rem, 5vw, 2.618rem);
|
|
538
|
+
min-height: 0;
|
|
539
|
+
overflow: visible;
|
|
540
|
+
padding: clamp(1.618rem, 5vw, 2.618rem) clamp(1rem, 4vw, 2rem)
|
|
541
|
+
clamp(1rem, 3vw, 1.618rem);
|
|
542
|
+
box-sizing: border-box;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.canopy-interstitial__panel,
|
|
546
|
+
.canopy-interstitial__media-group {
|
|
547
|
+
width: 100%;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.canopy-interstitial__panel {
|
|
551
|
+
flex: none;
|
|
552
|
+
padding: 0;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.canopy-interstitial__body {
|
|
556
|
+
align-items: center;
|
|
557
|
+
text-align: center;
|
|
558
|
+
max-width: 76rem;
|
|
559
|
+
margin: 0 auto;
|
|
560
|
+
padding-inline: 0;
|
|
561
|
+
gap: 1rem;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.canopy-interstitial__body .canopy-interstitial__headline {
|
|
565
|
+
@include type.display;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// A lede, muted on the page's own ground, where `--color-gray-muted` holds 4.5:1.
|
|
569
|
+
.canopy-interstitial__description {
|
|
570
|
+
@include type.lede;
|
|
571
|
+
max-width: 48rem;
|
|
572
|
+
text-wrap: balance;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.canopy-button-group {
|
|
576
|
+
align-items: center;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.canopy-button-group__actions {
|
|
580
|
+
justify-content: center;
|
|
581
|
+
padding: 0.618rem 0 0;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.canopy-interstitial__media-group {
|
|
585
|
+
flex: none;
|
|
586
|
+
max-width: 64rem;
|
|
587
|
+
min-height: 0;
|
|
588
|
+
padding: 0 !important;
|
|
589
|
+
border-radius: var(--canopy-radius-xl);
|
|
590
|
+
background-color: var(--canopy-surface-raised);
|
|
591
|
+
box-shadow: var(--canopy-card-shadow);
|
|
592
|
+
overflow: hidden;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.canopy-interstitial__slider {
|
|
596
|
+
min-height: 0;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.canopy-interstitial__pane--static {
|
|
600
|
+
height: var(--hero-height);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.canopy-interstitial__media-frame,
|
|
604
|
+
.canopy-interstitial__slide-link {
|
|
605
|
+
border-radius: 0;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.canopy-interstitial__media--static {
|
|
609
|
+
object-fit: contain;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.canopy-interstitial__caption--static {
|
|
613
|
+
margin: 0;
|
|
614
|
+
padding: 1rem 1.25rem;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.canopy-interstitial__pagination {
|
|
618
|
+
margin: 0;
|
|
619
|
+
padding: 0 0 1rem;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.canopy-interstitial__rotation {
|
|
623
|
+
margin: 0.75rem;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@use "../settings/breakpoints" as bp;
|
|
2
|
+
|
|
3
|
+
.canopy-layout {
|
|
4
|
+
--canopy-layout-sidebar-width: 13rem;
|
|
5
|
+
--canopy-layout-content-nav-width: 13rem;
|
|
6
|
+
--canopy-layout-row-gap: 2.618rem;
|
|
7
|
+
--canopy-layout-column-gap: 2.618rem;
|
|
8
|
+
display: grid;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: clamp(1rem, 2vw, 2.5rem);
|
|
11
|
+
row-gap: var(--canopy-layout-row-gap);
|
|
12
|
+
column-gap: var(--canopy-layout-column-gap);
|
|
13
|
+
grid-template-columns: minmax(0, 1fr);
|
|
14
|
+
align-items: start;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.canopy-layout--fixed {
|
|
18
|
+
margin-left: auto;
|
|
19
|
+
margin-right: auto;
|
|
20
|
+
max-width: 1280px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.canopy-layout--fluid {
|
|
24
|
+
max-width: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.canopy-layout__content {
|
|
28
|
+
min-width: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.canopy-layout__sidebar,
|
|
32
|
+
.canopy-layout__content-nav {
|
|
33
|
+
position: relative;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.canopy-layout__sidebar {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.canopy-layout__content-nav {
|
|
41
|
+
display: none;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 0.75rem;
|
|
44
|
+
align-items: stretch;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.canopy-layout--content-nav-collapsed {
|
|
48
|
+
--canopy-layout-content-nav-width: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.canopy-layout__content-nav.is-collapsed {
|
|
52
|
+
align-items: flex-end;
|
|
53
|
+
width: 0;
|
|
54
|
+
padding: 0;
|
|
55
|
+
margin: 0;
|
|
56
|
+
overflow: visible;
|
|
57
|
+
margin-left: calc(-1 * var(--canopy-layout-column-gap));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (min-width: bp.$canopy-desktop-breakpoint) {
|
|
61
|
+
.canopy-layout__sidebar {
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.canopy-layout__content-nav {
|
|
66
|
+
display: flex;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.canopy-layout--with-sidebar {
|
|
70
|
+
grid-template-columns: var(--canopy-layout-sidebar-width) minmax(0, 1fr);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.canopy-layout--with-content-nav:not(.canopy-layout--with-sidebar) {
|
|
74
|
+
grid-template-columns: minmax(0, 1fr) var(--canopy-layout-content-nav-width);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.canopy-layout--with-sidebar.canopy-layout--with-content-nav {
|
|
78
|
+
grid-template-columns:
|
|
79
|
+
var(--canopy-layout-sidebar-width)
|
|
80
|
+
minmax(0, 1fr)
|
|
81
|
+
var(--canopy-layout-content-nav-width);
|
|
82
|
+
}
|
|
83
|
+
}
|