@nulib/canopy 0.0.0-stage → 2.0.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/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 +111 -4
- 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,296 @@
|
|
|
1
|
+
@use "../settings/type";
|
|
2
|
+
|
|
3
|
+
// Map styles reuse the global gray/brand scales so project themes can override tokens easily.
|
|
4
|
+
.canopy-map {
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-height: 320px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background-color: var(--color-gray-100);
|
|
10
|
+
z-index: 0;
|
|
11
|
+
|
|
12
|
+
&__overlays {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
right: 0;
|
|
17
|
+
padding: 0.75rem;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: flex-end;
|
|
21
|
+
z-index: 4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.leaflet-control-attribution {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.leaflet-container {
|
|
29
|
+
font-family: inherit;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.leaflet-container a {
|
|
33
|
+
color: var(--color-accent-default);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.leaflet-popup-content {
|
|
37
|
+
margin: 1rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.leaflet-popup-close-button {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__canvas {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
min-height: inherit;
|
|
48
|
+
position: relative;
|
|
49
|
+
z-index: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__status {
|
|
53
|
+
max-width: 320px;
|
|
54
|
+
z-index: 4;
|
|
55
|
+
padding: 0.5rem 0.75rem;
|
|
56
|
+
background-color: color-mix(in srgb, var(--color-gray-900) 85%, transparent);
|
|
57
|
+
color: var(--color-gray-50);
|
|
58
|
+
@include type.ui-sm;
|
|
59
|
+
pointer-events: auto;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__key {
|
|
63
|
+
margin: 1rem;
|
|
64
|
+
z-index: 1;
|
|
65
|
+
color: var(--color-gray-900);
|
|
66
|
+
align-self: flex-end;
|
|
67
|
+
|
|
68
|
+
&-list {
|
|
69
|
+
list-style: none;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-wrap: wrap;
|
|
74
|
+
gap: 0.382rem 1rem;
|
|
75
|
+
justify-content: flex-end;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-item {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
gap: 0.382rem;
|
|
82
|
+
@include type.ui-sm;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-dot {
|
|
86
|
+
width: 12px;
|
|
87
|
+
height: 12px;
|
|
88
|
+
background-color: var(--color-accent-default);
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-label {
|
|
93
|
+
flex: 1;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&__popup {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
gap: 0.5rem;
|
|
101
|
+
min-width: 220px;
|
|
102
|
+
|
|
103
|
+
&-media {
|
|
104
|
+
width: 100%;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
|
|
107
|
+
img {
|
|
108
|
+
display: block;
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: auto;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&-title {
|
|
115
|
+
display: block;
|
|
116
|
+
text-decoration: none;
|
|
117
|
+
color: inherit;
|
|
118
|
+
@include type.ui(bold);
|
|
119
|
+
margin: 0.38rem 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&-summary {
|
|
123
|
+
margin: 0 !important;
|
|
124
|
+
padding: 0;
|
|
125
|
+
@include type.ui-sm;
|
|
126
|
+
color: var(--color-gray-muted);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&-link {
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
gap: 0.25rem;
|
|
132
|
+
align-items: center;
|
|
133
|
+
color: var(--color-accent-default);
|
|
134
|
+
font-weight: var(--canopy-weight-bold);
|
|
135
|
+
text-decoration: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&-manifests {
|
|
139
|
+
margin-top: 0.618rem;
|
|
140
|
+
|
|
141
|
+
&-title {
|
|
142
|
+
@include type.label;
|
|
143
|
+
margin: 0 0 0.25rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&-list {
|
|
147
|
+
list-style: none;
|
|
148
|
+
margin: 0;
|
|
149
|
+
padding: 0;
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
gap: 0.382rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&-item {
|
|
156
|
+
margin: 0;
|
|
157
|
+
padding: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-link,
|
|
161
|
+
&-text {
|
|
162
|
+
font-weight: var(--canopy-weight-bold);
|
|
163
|
+
text-decoration: none;
|
|
164
|
+
display: inline-flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
gap: 0.25rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&-link {
|
|
170
|
+
color: var(--color-accent-default);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&-text {
|
|
174
|
+
color: var(--color-gray-muted);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&-summary {
|
|
178
|
+
margin: 0.125rem 0 0;
|
|
179
|
+
@include type.ui-sm;
|
|
180
|
+
color: var(--color-gray-muted);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
.leaflet-marker-icon#{&}__marker {
|
|
185
|
+
border: none;
|
|
186
|
+
width: auto;
|
|
187
|
+
height: auto;
|
|
188
|
+
|
|
189
|
+
&.is-hovered {
|
|
190
|
+
z-index: 2000 !important;
|
|
191
|
+
filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.45));
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.leaflet-popup {
|
|
196
|
+
padding: 1rem 1rem 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&__marker-thumb,
|
|
200
|
+
&__marker-solid {
|
|
201
|
+
width: 40px;
|
|
202
|
+
height: 40px;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
background: var(--color-gray-900);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&__marker-thumb {
|
|
211
|
+
border: 2px solid var(--color-accent-600);
|
|
212
|
+
img {
|
|
213
|
+
display: block;
|
|
214
|
+
width: 105%;
|
|
215
|
+
height: 105%;
|
|
216
|
+
object-fit: cover;
|
|
217
|
+
object-position: 50% 50%;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&__marker-solid {
|
|
222
|
+
display: flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
justify-content: center;
|
|
225
|
+
background: var(--color-accent-600);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&__marker--label {
|
|
229
|
+
border: none;
|
|
230
|
+
|
|
231
|
+
&.is-hovered {
|
|
232
|
+
.canopy-map__marker-label {
|
|
233
|
+
background: var(--color-gray-50);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.canopy-map__marker-label-text {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.canopy-map__marker-label-text {
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&__marker-label {
|
|
246
|
+
display: inline-flex;
|
|
247
|
+
align-items: center;
|
|
248
|
+
@include type.ui-sm;
|
|
249
|
+
color: var(--color-gray-900);
|
|
250
|
+
background: color-mix(in srgb, var(--color-gray-50) 87%, transparent);
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
position: relative;
|
|
253
|
+
padding-left: 4px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&__marker-label-dot {
|
|
257
|
+
width: 12px;
|
|
258
|
+
height: 12px;
|
|
259
|
+
background-color: var(--color-accent-default);
|
|
260
|
+
flex-shrink: 0;
|
|
261
|
+
cursor: default;
|
|
262
|
+
z-index: 1;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&__marker-label-text {
|
|
266
|
+
padding: 0 0.25rem;
|
|
267
|
+
line-height: 1.2;
|
|
268
|
+
color: inherit;
|
|
269
|
+
cursor: default;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&__cluster-wrapper {
|
|
273
|
+
background: none;
|
|
274
|
+
border: none;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&__cluster {
|
|
278
|
+
@include type.ui-sm(bold);
|
|
279
|
+
width: 40px;
|
|
280
|
+
height: 40px;
|
|
281
|
+
background: var(--color-gray-default);
|
|
282
|
+
color: var(--color-gray-50);
|
|
283
|
+
display: flex;
|
|
284
|
+
align-items: center;
|
|
285
|
+
justify-content: center;
|
|
286
|
+
box-sizing: content-box;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// The map's panes paint over a ring drawn on or inside its canvas, and `.canopy-map`
|
|
291
|
+
// clips one drawn outside it, so the map's frame shows where focus is (WCAG 2.4.7;
|
|
292
|
+
// ACCESSIBILITY.md C29, as C19 did for the Northwestern template).
|
|
293
|
+
[data-canopy-map]:has(.leaflet-container:focus-visible) {
|
|
294
|
+
outline: 2px solid var(--color-accent-default);
|
|
295
|
+
outline-offset: 2px;
|
|
296
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "../settings/type";
|
|
2
|
+
|
|
3
|
+
@use "./buttons" as buttons;
|
|
4
|
+
|
|
5
|
+
.canopy-index {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: clamp(1rem, 3vw, 1.75rem);
|
|
9
|
+
margin: clamp(1.5rem, 4vw, 3rem) 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.canopy-index__group {
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.canopy-index__group dt {
|
|
17
|
+
@include type.ui(bold);
|
|
18
|
+
margin: 0 0 0.8rem 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.canopy-index__values {
|
|
22
|
+
column-count: 1;
|
|
23
|
+
column-gap: 1.25rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (min-width: 640px) {
|
|
27
|
+
.canopy-index__values {
|
|
28
|
+
column-count: 2;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-width: 1024px) {
|
|
33
|
+
.canopy-index__values {
|
|
34
|
+
column-count: 3;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.canopy-index__values dd {
|
|
39
|
+
break-inside: avoid;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0.15rem 0;
|
|
42
|
+
@include type.ui-sm;
|
|
43
|
+
word-break: break-word;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.canopy-index__values a {
|
|
47
|
+
color: var(--color-accent-default);
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.canopy-index__values a:hover {
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.canopy-index__more-wrapper {
|
|
56
|
+
margin-top: 0.85rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.canopy-index__more {
|
|
60
|
+
@include buttons.canopy-button-base(0.45rem, 1rem);
|
|
61
|
+
border-color: var(--color-accent-200);
|
|
62
|
+
background: var(--color-accent-100);
|
|
63
|
+
color: var(--color-accent-default);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.canopy-index__more:hover {
|
|
67
|
+
background: var(--color-accent-200);
|
|
68
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@use "./buttons" as buttons;
|
|
2
|
+
@use "../settings/focus" as focus;
|
|
3
|
+
|
|
4
|
+
@layer components {
|
|
5
|
+
.canopy-nav-tree {
|
|
6
|
+
color: inherit;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// A section's name over its pages: bold, so it reads as a heading of what is under it.
|
|
10
|
+
.canopy-nav-tree__heading {
|
|
11
|
+
font-weight: var(--canopy-weight-bold);
|
|
12
|
+
color: var(--color-gray-900);
|
|
13
|
+
margin-bottom: 0.618rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.canopy-nav-tree__list {
|
|
17
|
+
list-style: none;
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.canopy-nav-tree__item {
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
list-style: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.canopy-nav-tree__row {
|
|
29
|
+
display: flex;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.canopy-nav-tree__row .canopy-nav-tree__link {
|
|
33
|
+
flex: 1;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.canopy-nav-tree__link {
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.canopy-nav-tree__link-wrapper {
|
|
42
|
+
padding: 0.382rem 0;
|
|
43
|
+
flex-grow: 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.canopy-nav-tree__toggle {
|
|
47
|
+
@include buttons.canopy-button-base(0.5rem, 0.5rem);
|
|
48
|
+
appearance: none;
|
|
49
|
+
border: none;
|
|
50
|
+
justify-content: flex-end;
|
|
51
|
+
width: 40px;
|
|
52
|
+
height: 40px;
|
|
53
|
+
|
|
54
|
+
svg {
|
|
55
|
+
stroke-width: 2.618px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
color: var(--color-accent-default);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.canopy-nav-tree__toggle:focus-visible {
|
|
64
|
+
@include focus.focus-ring;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.canopy-nav-tree__toggle-icon {
|
|
68
|
+
width: 1.25rem;
|
|
69
|
+
height: 1.25rem;
|
|
70
|
+
transition: transform 150ms ease;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.canopy-nav-tree__children {
|
|
74
|
+
margin-top: 0.25rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.canopy-nav-tree__item[data-expanded="true"] .canopy-nav-tree__toggle-icon {
|
|
78
|
+
transform: rotate(180deg);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@use "../settings/type";
|
|
2
|
+
|
|
3
|
+
.referenced-items {
|
|
4
|
+
margin: clamp(2rem, 6vw, 4rem) 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.referenced-items__heading {
|
|
9
|
+
@include type.h2;
|
|
10
|
+
margin-bottom: 1.5rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.referenced-items__grid {
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
16
|
+
gap: clamp(1rem, 2vw, 1.75rem);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.referenced-items__item {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.referenced-items__card {
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.referenced-items--empty {
|
|
29
|
+
border-top: 1px solid var(--color-gray-200);
|
|
30
|
+
padding: 1.5rem 0;
|
|
31
|
+
color: var(--color-gray-muted);
|
|
32
|
+
font-style: italic;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.references {
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.references__group {
|
|
41
|
+
display: grid;
|
|
42
|
+
gap: 0.2rem;
|
|
43
|
+
padding: 0.85rem 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.references dt {
|
|
47
|
+
@include type.label;
|
|
48
|
+
margin: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.references__item {
|
|
52
|
+
@include type.ui;
|
|
53
|
+
margin: 0;
|
|
54
|
+
color: var(--color-gray-900);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.references__item a {
|
|
58
|
+
color: var(--color-accent-default);
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.references__item a:hover {
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.references__empty {
|
|
67
|
+
color: var(--color-gray-muted);
|
|
68
|
+
font-style: italic;
|
|
69
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
@use "./buttons" as buttons;
|
|
2
|
+
@use "../settings/focus" as focus;
|
|
3
|
+
@use "../settings/type";
|
|
4
|
+
|
|
5
|
+
.canopy-sub-navigation {
|
|
6
|
+
color: inherit;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.canopy-sub-navigation__list,
|
|
10
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__list,
|
|
11
|
+
.canopy-modal__section-nav .canopy-nav-tree__list {
|
|
12
|
+
list-style: none;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.canopy-sub-navigation__item,
|
|
18
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__item,
|
|
19
|
+
.canopy-modal__section-nav .canopy-nav-tree__item {
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
list-style: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.canopy-sub-navigation__link,
|
|
26
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__link,
|
|
27
|
+
.canopy-modal__section-nav .canopy-nav-tree__link {
|
|
28
|
+
color: inherit;
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
transition:
|
|
32
|
+
background-color 120ms ease,
|
|
33
|
+
color 120ms ease;
|
|
34
|
+
display: inline;
|
|
35
|
+
white-space: normal;
|
|
36
|
+
overflow-wrap: anywhere;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.canopy-sub-navigation__link:hover,
|
|
40
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__link:hover,
|
|
41
|
+
.canopy-modal__section-nav .canopy-nav-tree__link:hover {
|
|
42
|
+
color: var(--color-accent-default);
|
|
43
|
+
text-decoration: underline;
|
|
44
|
+
text-underline-offset: 0.2em;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.canopy-sub-navigation__link:focus-visible,
|
|
48
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__link:focus-visible,
|
|
49
|
+
.canopy-modal__section-nav .canopy-nav-tree__link:focus-visible {
|
|
50
|
+
@include focus.focus-ring;
|
|
51
|
+
border-radius: var(--canopy-radius-sm);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// A group's name, not a page: bold, so it reads as the heading of the pages under it.
|
|
55
|
+
.canopy-sub-navigation__link.is-label,
|
|
56
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__link.is-label,
|
|
57
|
+
.canopy-modal__section-nav .canopy-nav-tree__link.is-label {
|
|
58
|
+
cursor: default;
|
|
59
|
+
color: var(--color-gray-900);
|
|
60
|
+
font-weight: var(--canopy-weight-bold);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.canopy-sub-navigation__link.is-disabled,
|
|
64
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__link.is-disabled,
|
|
65
|
+
.canopy-modal__section-nav .canopy-nav-tree__link.is-disabled {
|
|
66
|
+
cursor: default;
|
|
67
|
+
color: var(--color-gray-muted);
|
|
68
|
+
font-style: italic;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.canopy-sub-navigation__badge,
|
|
72
|
+
.canopy-nav-tree__badge {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
@include type.label;
|
|
77
|
+
line-height: 1;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
z-index: 0;
|
|
80
|
+
position: relative;
|
|
81
|
+
color: var(--color-accent-default);
|
|
82
|
+
padding: 0.175rem 0.175rem;
|
|
83
|
+
top: -1px;
|
|
84
|
+
margin-left: 0.25rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// The current page: the accent's text step, bold, so it is told apart by more than its
|
|
88
|
+
// color (1.4.1).
|
|
89
|
+
.canopy-sub-navigation__link.is-active,
|
|
90
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__link.is-active,
|
|
91
|
+
.canopy-modal__section-nav .canopy-nav-tree__link.is-active {
|
|
92
|
+
color: var(--color-accent-default);
|
|
93
|
+
font-weight: var(--canopy-weight-bold);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.canopy-sub-navigation__list--nested,
|
|
97
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__list--nested,
|
|
98
|
+
.canopy-modal__section-nav .canopy-nav-tree__list--nested {
|
|
99
|
+
padding-left: 1rem;
|
|
100
|
+
border-left: 1px solid var(--canopy-edge);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.canopy-sub-navigation__link.depth-1,
|
|
104
|
+
.canopy-sub-navigation__link.depth-2,
|
|
105
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__link.depth-1,
|
|
106
|
+
.canopy-sub-navigation__tree .canopy-nav-tree__link.depth-2,
|
|
107
|
+
.canopy-modal__section-nav .canopy-nav-tree__link.depth-1,
|
|
108
|
+
.canopy-modal__section-nav .canopy-nav-tree__link.depth-2 {
|
|
109
|
+
@include type.ui-sm;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.canopy-content-navigation {
|
|
113
|
+
position: sticky;
|
|
114
|
+
top: calc(var(--canopy-sticky-top, 0px) + 1.5rem);
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
gap: 0.618rem;
|
|
118
|
+
transition:
|
|
119
|
+
background-color 150ms ease,
|
|
120
|
+
border-color 150ms ease,
|
|
121
|
+
padding 150ms ease;
|
|
122
|
+
color: var(--color-gray-muted);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.canopy-content-navigation--collapsed {
|
|
126
|
+
padding: 0.25rem;
|
|
127
|
+
border-color: transparent;
|
|
128
|
+
background: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.canopy-content-navigation--floating {
|
|
132
|
+
position: fixed;
|
|
133
|
+
top: calc(var(--canopy-sticky-top, 0px) + 1.618rem);
|
|
134
|
+
left: var(--canopy-content-nav-fixed-left);
|
|
135
|
+
right: auto;
|
|
136
|
+
width: var(--canopy-content-nav-fixed-width);
|
|
137
|
+
z-index: 10;
|
|
138
|
+
max-height: calc(100vh - var(--canopy-sticky-top, 0px) - 3.236rem);
|
|
139
|
+
overflow-x: hidden;
|
|
140
|
+
overflow-y: auto;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.canopy-content-navigation__toggle {
|
|
144
|
+
@include buttons.canopy-button-base(0.35rem, 0.75rem);
|
|
145
|
+
align-self: flex-end;
|
|
146
|
+
color: color-mix(in srgb, var(--color-gray-900) 92%, transparent);
|
|
147
|
+
border: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.canopy-content-navigation__toggle:hover,
|
|
151
|
+
.canopy-content-navigation__toggle:focus-visible {
|
|
152
|
+
color: var(--color-accent-default);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.canopy-content-navigation__toggle-icon {
|
|
156
|
+
display: inline-flex;
|
|
157
|
+
width: 1.5rem;
|
|
158
|
+
height: 1.5rem;
|
|
159
|
+
align-items: center;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.canopy-content-navigation__toggle-icon svg {
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.canopy-layout__content-nav.is-collapsed .canopy-content-navigation {
|
|
169
|
+
padding: 0;
|
|
170
|
+
margin: 0;
|
|
171
|
+
width: auto;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.canopy-layout__content-nav.is-collapsed .canopy-content-navigation__toggle {
|
|
175
|
+
position: sticky;
|
|
176
|
+
top: calc(var(--canopy-sticky-top, 0px) + 1.618rem);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.canopy-content-navigation--collapsed .canopy-content-navigation__toggle {
|
|
180
|
+
/* button only */
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.canopy-content-navigation--collapsed .canopy-sub-navigation__list,
|
|
184
|
+
.canopy-content-navigation--collapsed
|
|
185
|
+
.canopy-sub-navigation__tree
|
|
186
|
+
.canopy-nav-tree__list {
|
|
187
|
+
display: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.canopy-layout__content-nav.is-collapsed
|
|
191
|
+
.canopy-content-navigation__toggle-label {
|
|
192
|
+
@include type.label;
|
|
193
|
+
writing-mode: vertical-rl;
|
|
194
|
+
text-orientation: mixed;
|
|
195
|
+
}
|
|
196
|
+
.canopy-content-navigation--collapsed .canopy-nav-tree {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
[data-canopy-content-nav-placeholder] {
|
|
201
|
+
height: 0;
|
|
202
|
+
transition: height 150ms ease;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
[data-canopy-content-nav-sentinel] {
|
|
206
|
+
width: 100%;
|
|
207
|
+
height: 1px;
|
|
208
|
+
}
|