@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.
Files changed (141) hide show
  1. package/bin/canopy.js +16 -0
  2. package/lib/AGENTS.md +107 -0
  3. package/lib/base-path.js +67 -0
  4. package/lib/build/appearance.js +76 -0
  5. package/lib/build/assets.js +30 -0
  6. package/lib/build/build.js +350 -0
  7. package/lib/build/dev.js +1355 -0
  8. package/lib/build/devtoast.config.json +6 -0
  9. package/lib/build/devtoast.css +14 -0
  10. package/lib/build/facets.js +19 -0
  11. package/lib/build/fonts.js +105 -0
  12. package/lib/build/iiif.js +2990 -0
  13. package/lib/build/log.js +31 -0
  14. package/lib/build/mdx.js +1967 -0
  15. package/lib/build/package-names.js +111 -0
  16. package/lib/build/pages.js +420 -0
  17. package/lib/build/rehype-task-list-labels.js +54 -0
  18. package/lib/build/runtimes.js +141 -0
  19. package/lib/build/search-index.js +55 -0
  20. package/lib/build/search-text.js +160 -0
  21. package/lib/build/search-workflow.js +72 -0
  22. package/lib/build/search.js +302 -0
  23. package/lib/build/sitemap.js +197 -0
  24. package/lib/build/styles.js +140 -0
  25. package/lib/build/theme-tokens.js +78 -0
  26. package/lib/build/ui-styles.js +25 -0
  27. package/lib/build/upgrade-notices.js +121 -0
  28. package/lib/cli.js +64 -0
  29. package/lib/common.js +580 -0
  30. package/lib/components/bibliography.js +197 -0
  31. package/lib/components/featured.js +237 -0
  32. package/lib/components/hero-slider-runtime.js +215 -0
  33. package/lib/components/image-story-runtime-entry.js +249 -0
  34. package/lib/components/map-runtime.js +114 -0
  35. package/lib/components/metadata-index.js +32 -0
  36. package/lib/components/nav-place.js +227 -0
  37. package/lib/components/navigation.js +381 -0
  38. package/lib/components/referenced.js +217 -0
  39. package/lib/components/slider-runtime-entry.js +106 -0
  40. package/lib/components/timeline-runtime.js +80 -0
  41. package/lib/components/viewer-runtime-entry.js +88 -0
  42. package/lib/config-path.js +78 -0
  43. package/lib/default-locale.js +113 -0
  44. package/lib/discovery/browser-loader.js +107 -0
  45. package/lib/discovery/browser.js +115 -0
  46. package/lib/discovery/config.js +25 -0
  47. package/lib/discovery/envelope.js +124 -0
  48. package/lib/discovery/export.js +226 -0
  49. package/lib/discovery/ingestion.js +62 -0
  50. package/lib/discovery/pagination.js +66 -0
  51. package/lib/discovery/provenance.js +79 -0
  52. package/lib/discovery/search.js +81 -0
  53. package/lib/discovery/tools.js +155 -0
  54. package/lib/discovery/validation.js +121 -0
  55. package/lib/head.js +154 -0
  56. package/lib/iiif/thumbnail.js +402 -0
  57. package/lib/index.js +9 -0
  58. package/lib/locale-runtime.js +69 -0
  59. package/lib/locales.js +203 -0
  60. package/lib/orchestrator.js +231 -0
  61. package/lib/page-context.js +24 -0
  62. package/lib/search/bundle.js +25 -0
  63. package/lib/search/data.js +202 -0
  64. package/lib/search/engine.js +86 -0
  65. package/lib/search/index-cache.js +95 -0
  66. package/lib/search/search-app.jsx +835 -0
  67. package/lib/search/search-engine-runtime.js +44 -0
  68. package/lib/search/search-form-runtime.js +462 -0
  69. package/lib/search/search.js +676 -0
  70. package/package.json +109 -3
  71. package/types/base-path.d.ts +4 -0
  72. package/types/orchestrator.d.ts +17 -0
  73. package/ui/dist/index.mjs +7358 -0
  74. package/ui/dist/index.mjs.map +7 -0
  75. package/ui/dist/server.mjs +12731 -0
  76. package/ui/dist/server.mjs.map +7 -0
  77. package/ui/fonts/OFL.txt +98 -0
  78. package/ui/fonts/google-sans-flex-latin-ext.woff2 +0 -0
  79. package/ui/fonts/google-sans-flex-latin.woff2 +0 -0
  80. package/ui/fonts/source-serif-4-italic-latin-ext.woff2 +0 -0
  81. package/ui/fonts/source-serif-4-italic-latin.woff2 +0 -0
  82. package/ui/fonts/source-serif-4-latin-ext.woff2 +0 -0
  83. package/ui/fonts/source-serif-4-latin.woff2 +0 -0
  84. package/ui/styles/base/_common.scss +97 -0
  85. package/ui/styles/base/_heading.scss +61 -0
  86. package/ui/styles/base/_markdown.scss +188 -0
  87. package/ui/styles/base/_type.scss +51 -0
  88. package/ui/styles/base/_utilities.scss +7 -0
  89. package/ui/styles/base/index.scss +5 -0
  90. package/ui/styles/components/_article-card.scss +108 -0
  91. package/ui/styles/components/_band.scss +104 -0
  92. package/ui/styles/components/_bibliography.scss +88 -0
  93. package/ui/styles/components/_buttons.scss +143 -0
  94. package/ui/styles/components/_card.scss +109 -0
  95. package/ui/styles/components/_diagram.scss +76 -0
  96. package/ui/styles/components/_feature.scss +66 -0
  97. package/ui/styles/components/_footer.scss +136 -0
  98. package/ui/styles/components/_gallery.scss +476 -0
  99. package/ui/styles/components/_image-story.scss +56 -0
  100. package/ui/styles/components/_interstitial-hero.scss +625 -0
  101. package/ui/styles/components/_layout.scss +83 -0
  102. package/ui/styles/components/_map.scss +296 -0
  103. package/ui/styles/components/_metadata-index.scss +68 -0
  104. package/ui/styles/components/_nav-tree.scss +80 -0
  105. package/ui/styles/components/_referenced-items.scss +69 -0
  106. package/ui/styles/components/_sub-navigation.scss +208 -0
  107. package/ui/styles/components/_swoosh.scss +50 -0
  108. package/ui/styles/components/_timeline.scss +350 -0
  109. package/ui/styles/components/_work.scss +71 -0
  110. package/ui/styles/components/header/_header.scss +294 -0
  111. package/ui/styles/components/header/_logo.scss +99 -0
  112. package/ui/styles/components/header/_navbar.scss +143 -0
  113. package/ui/styles/components/header/index.scss +3 -0
  114. package/ui/styles/components/iiif/_image.scss +32 -0
  115. package/ui/styles/components/iiif/_slider.scss +5 -0
  116. package/ui/styles/components/iiif/index.scss +2 -0
  117. package/ui/styles/components/index.scss +25 -0
  118. package/ui/styles/components/modal/_modal.scss +130 -0
  119. package/ui/styles/components/modal/index.scss +1 -0
  120. package/ui/styles/components/search/_filters.scss +259 -0
  121. package/ui/styles/components/search/_form.scss +187 -0
  122. package/ui/styles/components/search/_panel.scss +7 -0
  123. package/ui/styles/components/search/_results.scss +241 -0
  124. package/ui/styles/components/search/_tabs.scss +60 -0
  125. package/ui/styles/components/search/index.scss +4 -0
  126. package/ui/styles/index.css +5007 -0
  127. package/ui/styles/index.scss +11 -0
  128. package/ui/styles/settings/_breakpoints.scss +7 -0
  129. package/ui/styles/settings/_focus.scss +15 -0
  130. package/ui/styles/settings/_tokens.scss +170 -0
  131. package/ui/styles/settings/_type.scss +126 -0
  132. package/ui/styles/version-parity.css +116 -0
  133. package/ui/tailwind-canopy-iiif-plugin.js +39 -0
  134. package/ui/tailwind-canopy-iiif-preset.js +32 -0
  135. package/ui/tailwind-config.d.ts +29 -0
  136. package/ui/tailwind-config.js +159 -0
  137. package/ui/tailwind-default.config.mjs +4 -0
  138. package/ui/theme-color.js +130 -0
  139. package/ui/theme-palette.js +337 -0
  140. package/ui/theme.js +153 -0
  141. package/README.md +0 -3
@@ -0,0 +1,294 @@
1
+ @use "../../settings/breakpoints" as bp;
2
+ @use "../../settings/focus" as focus;
3
+ @use "../buttons" as buttons;
4
+ @use "../../settings/type";
5
+
6
+ // The header (`CanopyHeader`): 64px, solid, the brand at its start, the search field and
7
+ // the primary navigation after it, the language switch and the compact layout's two
8
+ // buttons at its end. Sticky only where the window is tall enough to spare it: zoomed in,
9
+ // it scrolls away with the page (1.4.10), and the page leaves room under it for whatever
10
+ // takes focus (2.4.11).
11
+ @layer components {
12
+ .canopy-header {
13
+ position: relative;
14
+ display: flex;
15
+ align-items: center;
16
+ gap: 1.618rem;
17
+ min-height: 4rem;
18
+ box-sizing: border-box;
19
+ padding: 0.5rem clamp(1rem, 3vw, 2rem);
20
+ background-color: var(--color-gray-50);
21
+ box-shadow: 0 1px 0 var(--canopy-edge);
22
+ z-index: 20;
23
+ }
24
+
25
+ @media (min-height: 36rem) {
26
+ .canopy-header {
27
+ position: sticky;
28
+ top: 0;
29
+ }
30
+
31
+ // The header's height as its script measures it (`CanopyHeader.jsx`), 4rem before
32
+ // it runs.
33
+ :root:has(.canopy-header) {
34
+ --canopy-sticky-top: var(--canopy-header-height, 4rem);
35
+ scroll-padding-top: calc(var(--canopy-sticky-top) + 1rem);
36
+ }
37
+ }
38
+
39
+ .canopy-header__brand {
40
+ display: flex;
41
+ align-items: center;
42
+ gap: 0.75rem;
43
+ flex: 0 1 auto;
44
+ min-width: 0;
45
+ }
46
+
47
+ .canopy-header__brand-link {
48
+ flex: 1 1 auto;
49
+ min-width: 0;
50
+ max-width: 100%;
51
+ }
52
+
53
+ .canopy-header__menu {
54
+ @include buttons.canopy-button-base(0.25rem, 0.75rem);
55
+ width: 2.5rem;
56
+ height: 2.5rem;
57
+ border: none;
58
+ }
59
+
60
+ .canopy-header__menu-icon {
61
+ width: 1.5rem;
62
+ height: 1.5rem;
63
+ }
64
+
65
+ .canopy-header__desktop-search {
66
+ display: none;
67
+ flex: 1 1 20rem;
68
+ min-width: 0;
69
+ max-width: 36rem;
70
+ }
71
+
72
+ .canopy-header__desktop-search [data-canopy-search-form] {
73
+ width: 100%;
74
+ }
75
+
76
+ .canopy-header__desktop-nav {
77
+ display: none;
78
+ align-items: center;
79
+ gap: 1rem;
80
+ @include type.ui;
81
+ }
82
+
83
+ .canopy-header__actions {
84
+ display: flex;
85
+ align-items: center;
86
+ gap: 0.25rem;
87
+ margin-left: auto;
88
+ flex: 0 0 auto;
89
+ }
90
+
91
+ .canopy-language-toggle {
92
+ display: inline-flex;
93
+ align-items: center;
94
+ gap: 0.5rem;
95
+ @include type.ui-sm;
96
+ }
97
+
98
+ .canopy-language-toggle__select {
99
+ display: inline-flex;
100
+ align-items: center;
101
+ }
102
+
103
+ .canopy-language-toggle__select-input {
104
+ min-height: 2rem;
105
+ border: 1px solid var(--canopy-control-edge);
106
+ border-radius: var(--canopy-radius-md);
107
+ padding: 0.25rem 2rem 0.25rem 0.75rem;
108
+ background-color: var(--color-gray-50);
109
+ color: var(--color-gray-900);
110
+ appearance: none;
111
+ min-width: 6.5rem;
112
+ cursor: pointer;
113
+ }
114
+
115
+ .canopy-language-toggle__select-input:focus-visible {
116
+ @include focus.focus-ring;
117
+ }
118
+
119
+ .canopy-language-toggle__nav {
120
+ display: inline-flex;
121
+ align-items: center;
122
+ gap: 0.5rem;
123
+ }
124
+
125
+ .canopy-language-toggle__list {
126
+ display: inline-flex;
127
+ align-items: center;
128
+ gap: 0.5rem;
129
+ list-style: none;
130
+ padding: 0;
131
+ margin: 0;
132
+ }
133
+
134
+ .canopy-language-toggle__button,
135
+ .canopy-language-toggle__nav a {
136
+ @include buttons.canopy-button-base(0.15rem, 0.618rem);
137
+ min-height: 1.75rem;
138
+ border: none;
139
+ border-radius: var(--canopy-radius-pill);
140
+ color: var(--color-gray-900);
141
+ }
142
+
143
+ .canopy-language-toggle__button:hover,
144
+ .canopy-language-toggle__nav a:hover {
145
+ background-color: var(--canopy-surface);
146
+ }
147
+
148
+ // The language in use: filled and bold, never told apart by its color alone.
149
+ .canopy-language-toggle__button[data-active="true"],
150
+ .canopy-language-toggle__nav a[data-active="true"] {
151
+ color: var(--color-gray-900);
152
+ background: var(--canopy-surface);
153
+ font-weight: var(--canopy-weight-bold);
154
+ }
155
+
156
+ .canopy-language-toggle__button:focus-visible,
157
+ .canopy-language-toggle__nav a:focus-visible {
158
+ @include focus.focus-ring;
159
+ }
160
+
161
+ .canopy-language-toggle--mobile {
162
+ width: 100%;
163
+ justify-content: space-between;
164
+ }
165
+
166
+ .canopy-language-toggle--mobile .canopy-language-toggle__nav {
167
+ flex-wrap: wrap;
168
+ justify-content: flex-end;
169
+ gap: 0.25rem;
170
+ }
171
+
172
+ .canopy-language-toggle--mobile .canopy-language-toggle__list {
173
+ flex-wrap: wrap;
174
+ justify-content: flex-end;
175
+ gap: 0.25rem;
176
+ }
177
+
178
+ .canopy-language-toggle--mobile .canopy-language-toggle__select {
179
+ width: 100%;
180
+ justify-content: flex-end;
181
+ }
182
+
183
+ .canopy-language-toggle--mobile .canopy-language-toggle__select-input {
184
+ width: auto;
185
+ }
186
+
187
+ .canopy-language-toggle--inline {
188
+ flex-wrap: wrap;
189
+ gap: 0.25rem 0.5rem;
190
+ }
191
+
192
+ .canopy-language-toggle--inline .canopy-language-toggle__nav {
193
+ flex-wrap: wrap;
194
+ justify-content: flex-start;
195
+ }
196
+
197
+ .canopy-language-toggle--inline .canopy-language-toggle__list {
198
+ flex-wrap: wrap;
199
+ justify-content: flex-start;
200
+ }
201
+
202
+ .canopy-header__actions:empty {
203
+ display: none;
204
+ }
205
+
206
+ // The compact layout's search and menu buttons: 40px, the page's text, a fill under the
207
+ // pointer.
208
+ .canopy-header__icon-button {
209
+ @include buttons.canopy-button-base(0.25rem, 0.75rem);
210
+ width: 2.5rem;
211
+ height: 2.5rem;
212
+ padding: 0;
213
+ border: none;
214
+ border-radius: var(--canopy-radius-md);
215
+ color: var(--color-gray-900);
216
+
217
+ svg path {
218
+ stroke-width: 2px;
219
+ }
220
+ }
221
+
222
+ .canopy-header__icon-button:hover {
223
+ background-color: var(--canopy-surface);
224
+ }
225
+
226
+ .canopy-header__icon-button:focus-visible {
227
+ @include focus.focus-ring;
228
+ }
229
+
230
+ .canopy-header__search-icon {
231
+ width: 1.25rem;
232
+ height: 1.25rem;
233
+ }
234
+
235
+ .canopy-header__search-trigger {
236
+ order: 0;
237
+ }
238
+ .canopy-header__menu {
239
+ order: 1;
240
+ }
241
+
242
+ .canopy-modal--search .canopy-modal__panel {
243
+ width: min(100%, 40rem);
244
+ }
245
+
246
+ .canopy-modal--search .canopy-modal__body--search {
247
+ display: flex;
248
+ flex-direction: column;
249
+ gap: 1.25rem;
250
+ }
251
+
252
+ .canopy-modal--search [data-canopy-search-form] {
253
+ width: 100%;
254
+ }
255
+
256
+ .canopy-modal--search .canopy-search-teaser {
257
+ position: static;
258
+ border: none;
259
+ box-shadow: none;
260
+ max-height: clamp(20rem, 60vh, 32rem);
261
+ padding: 0;
262
+ display: block;
263
+ }
264
+
265
+ .canopy-modal--search .canopy-search-teaser > #cplist {
266
+ padding: 0.25rem 0;
267
+ }
268
+
269
+ @media (min-width: bp.$canopy-desktop-breakpoint) {
270
+ .canopy-header__menu {
271
+ display: none;
272
+ }
273
+
274
+ .canopy-header__desktop-search {
275
+ display: block;
276
+ }
277
+
278
+ .canopy-header__desktop-nav {
279
+ display: flex;
280
+ }
281
+
282
+ .canopy-header__actions {
283
+ display: flex;
284
+ }
285
+
286
+ .canopy-header__search-trigger {
287
+ display: none;
288
+ }
289
+
290
+ .canopy-modal--search {
291
+ display: none !important;
292
+ }
293
+ }
294
+ }
@@ -0,0 +1,99 @@
1
+ @use "../../settings/focus" as focus;
2
+
3
+ // The brand (`CanopyBrand`): the site's mark and its title, in the page's text. Under the
4
+ // pointer or keyboard focus, the brush stroke draws under the title (`--canopy-swoosh`),
5
+ // at once where motion is reduced.
6
+ @layer components {
7
+ .canopy-logo {
8
+ display: flex;
9
+ align-items: center;
10
+ gap: 0.618rem;
11
+ min-height: 2.5rem;
12
+ font-size: var(--canopy-text-lg);
13
+ color: var(--color-gray-default) !important;
14
+ line-height: 1;
15
+ min-width: 0;
16
+ max-width: 100%;
17
+ border-radius: var(--canopy-radius-sm);
18
+
19
+ &:hover {
20
+ text-decoration: none;
21
+ }
22
+
23
+ &:focus-visible {
24
+ @include focus.focus-ring;
25
+ }
26
+
27
+ svg {
28
+ height: 1.65rem;
29
+ display: block;
30
+ flex: 0 0 auto;
31
+
32
+ circle.canopy-logo-backlight {
33
+ fill: var(--color-accent-900);
34
+ color: var(--color-accent-900);
35
+ }
36
+
37
+ path.canopy-logo-overlay {
38
+ fill: var(--color-accent-default);
39
+ color: var(--color-accent-default);
40
+ }
41
+ }
42
+
43
+ span {
44
+ display: block;
45
+ position: relative;
46
+ isolation: isolate;
47
+ min-width: 0;
48
+ max-width: 100%;
49
+ white-space: nowrap;
50
+ overflow: hidden;
51
+ text-overflow: ellipsis;
52
+ padding-bottom: 0.3em;
53
+ margin-bottom: -0.3em;
54
+ line-height: 1.5;
55
+ }
56
+
57
+ span::after {
58
+ content: "";
59
+ position: absolute;
60
+ left: -0.04em;
61
+ right: -0.06em;
62
+ bottom: 0;
63
+ height: 0.42em;
64
+ rotate: 1.5deg;
65
+ z-index: -1;
66
+ background: linear-gradient(
67
+ to right,
68
+ color-mix(in srgb, var(--color-accent-600) 30%, transparent),
69
+ var(--color-accent-600)
70
+ );
71
+ mask: var(--canopy-swoosh) center / 100% 100% no-repeat;
72
+ clip-path: inset(0 100% 0 0);
73
+ }
74
+
75
+ &:is(:hover, :focus-visible) span::after {
76
+ clip-path: inset(0 0 0 0);
77
+ }
78
+ }
79
+
80
+ @media (prefers-reduced-motion: no-preference) {
81
+ .canopy-logo span::after {
82
+ transition: clip-path 480ms var(--canopy-ease);
83
+ }
84
+ }
85
+
86
+ html.dark .canopy-logo {
87
+ svg {
88
+ circle.canopy-logo-backlight {
89
+ fill: var(--color-accent-200) !important;
90
+ color: var(--color-accent-200) !important;
91
+ }
92
+
93
+ path.canopy-logo-overlay {
94
+ fill: var(--color-accent-500) !important;
95
+ color: var(--color-accent-500) !important;
96
+ }
97
+ }
98
+ }
99
+ }
@@ -0,0 +1,143 @@
1
+ @use "../../settings/breakpoints" as bp;
2
+ @use "../buttons" as buttons;
3
+ @use "../../settings/focus" as focus;
4
+ @use "../../settings/type";
5
+
6
+ @layer components {
7
+ .canopy-nav-links {
8
+ display: flex;
9
+ align-items: center;
10
+ gap: 1rem;
11
+ @include type.ui;
12
+ }
13
+
14
+ .canopy-nav-links.canopy-header__desktop-nav {
15
+ display: none;
16
+ }
17
+
18
+ // The page's text; under the pointer, the accent and an underline. The current page is
19
+ // bold and underlined, so it is told apart by more than its color (1.4.1).
20
+ .canopy-nav-links a {
21
+ color: var(--color-gray-900);
22
+ text-decoration: none;
23
+ text-underline-offset: 0.35em;
24
+ text-decoration-thickness: 2px;
25
+ padding: 0.25rem 0;
26
+ border-radius: var(--canopy-radius-sm);
27
+ transition: color 150ms ease;
28
+ }
29
+
30
+ .canopy-nav-links a:hover {
31
+ color: var(--color-accent-default);
32
+ text-decoration-line: underline;
33
+ }
34
+
35
+ .canopy-nav-links a:focus-visible {
36
+ @include focus.focus-ring;
37
+ }
38
+
39
+ .canopy-nav-links a[aria-current="page"] {
40
+ font-weight: var(--canopy-weight-bold);
41
+ text-decoration-line: underline;
42
+ }
43
+
44
+ .canopy-modal--nav .canopy-modal__panel {
45
+ width: min(100%, 20rem);
46
+ }
47
+
48
+ .canopy-modal--nav .canopy-modal__body {
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: 1rem;
52
+ }
53
+
54
+ .canopy-modal--nav .canopy-nav-links {
55
+ flex-direction: column;
56
+ align-items: stretch;
57
+ gap: 0.618rem;
58
+ @include type.ui(bold);
59
+ }
60
+
61
+ .canopy-modal__nav-list {
62
+ list-style: none;
63
+ margin: 0;
64
+ padding: 0;
65
+ display: flex;
66
+ flex-direction: column;
67
+ }
68
+
69
+ .canopy-modal__nav-item {
70
+ margin: 0;
71
+ padding: 0;
72
+ display: flex;
73
+ flex-direction: column;
74
+ gap: 0.5rem;
75
+ }
76
+
77
+ .canopy-modal__nav-row {
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: space-between;
81
+ gap: 0.5rem;
82
+ }
83
+
84
+ .canopy-modal__nav-row a {
85
+ flex: 1;
86
+ min-width: 0;
87
+ }
88
+
89
+ .canopy-modal--nav .canopy-nav-links a {
90
+ display: inline-flex;
91
+ align-items: center;
92
+ padding: 0.618rem 0;
93
+ }
94
+
95
+ .canopy-modal__nav-toggle {
96
+ @include buttons.canopy-button-base(0.25rem, 0.25rem);
97
+ appearance: none;
98
+ border: none;
99
+ margin: -0.25rem;
100
+ flex-grow: 1;
101
+ justify-content: flex-end;
102
+
103
+ &:hover,
104
+ &:focus {
105
+ color: var(--color-accent-default);
106
+ }
107
+ }
108
+
109
+ .canopy-modal__nav-toggle:focus-visible {
110
+ @include focus.focus-ring;
111
+ }
112
+
113
+ .canopy-modal__nav-toggle-icon {
114
+ width: 1.25rem;
115
+ height: 1.25rem;
116
+ transition: transform 150ms ease;
117
+ }
118
+
119
+ .canopy-modal__nav-item[data-expanded="true"] .canopy-modal__nav-toggle-icon {
120
+ transform: rotate(180deg);
121
+ }
122
+
123
+ .canopy-modal--nav .canopy-modal__section-nav {
124
+ border-top: 1px solid var(--canopy-edge);
125
+ padding-top: 1rem;
126
+ }
127
+
128
+ .canopy-modal__section-nav--nested {
129
+ border-top: none;
130
+ padding-top: 0;
131
+ margin-top: -0.25rem;
132
+ }
133
+
134
+ @media (min-width: bp.$canopy-desktop-breakpoint) {
135
+ .canopy-modal--nav {
136
+ display: none !important;
137
+ }
138
+
139
+ .canopy-nav-links.canopy-header__desktop-nav {
140
+ display: flex;
141
+ }
142
+ }
143
+ }
@@ -0,0 +1,3 @@
1
+ @use "./header";
2
+ @use "./logo";
3
+ @use "./navbar";
@@ -0,0 +1,32 @@
1
+ @use "../../settings/type";
2
+ .canopy-iiif-image {
3
+ --canopy-iiif-image-height: 600px;
4
+ --canopy-iiif-image-bg: var(--color-gray-200);
5
+
6
+ display: block;
7
+ margin: 1.618rem 0 2.618rem;
8
+
9
+ &__placeholder {
10
+ position: relative;
11
+ width: 100%;
12
+ height: var(--canopy-iiif-image-height);
13
+ background-color: var(--canopy-iiif-image-bg);
14
+ overflow: hidden;
15
+ }
16
+
17
+ &__placeholder > script {
18
+ display: none;
19
+ }
20
+
21
+ // Clover 4's Canvas, mounted in the placeholder, fills it, on the image's ground: its
22
+ // controls draw themselves in both appearances, from Clover's tokens (theme-palette.js).
23
+ &__placeholder .clover-canvas {
24
+ --clover-canvas-background: var(--canopy-iiif-image-bg);
25
+ }
26
+
27
+ &__caption {
28
+ margin: 0.75rem 0 0;
29
+ @include type.ui-sm;
30
+ color: var(--color-gray-muted);
31
+ }
32
+ }
@@ -0,0 +1,5 @@
1
+ // The slider is Clover 4's Items (`clover-items`), which draws itself from Clover's
2
+ // tokens; Canopy keeps only the room above it.
3
+ .canopy-slider {
4
+ margin: 1.618rem 0 0;
5
+ }
@@ -0,0 +1,2 @@
1
+ @use "./image";
2
+ @use "./slider";
@@ -0,0 +1,25 @@
1
+ @use "./buttons";
2
+ @use "./card";
3
+ @use "./article-card";
4
+ @use "./layout";
5
+ @use "./nav-tree";
6
+ @use "./referenced-items";
7
+ @use "./metadata-index";
8
+ @use "./bibliography";
9
+ @use "./header";
10
+ @use "./footer";
11
+ @use "./modal";
12
+ @use "./interstitial-hero";
13
+ @use "./swoosh";
14
+ @use "./band";
15
+ @use "./feature";
16
+ @use "./iiif";
17
+ @use "./image-story";
18
+ @use "./search";
19
+ @use "./search/panel";
20
+ @use "./sub-navigation";
21
+ @use "./diagram";
22
+ @use "./work";
23
+ @use "./timeline";
24
+ @use "./map";
25
+ @use "./gallery";