@canopy-iiif/app 0.12.4 → 0.12.6

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.
@@ -0,0 +1,294 @@
1
+ .canopy-timeline {
2
+ font-size: 1rem;
3
+ line-height: 1.5;
4
+ color: var(--color-gray-900);
5
+ display: flex;
6
+ flex-direction: column;
7
+ margin: 2.618rem 0;
8
+ text-align: center;
9
+ }
10
+
11
+ .canopy-timeline__title {
12
+ margin: 0;
13
+ font-size: 1.382rem;
14
+ font-weight: 600;
15
+ }
16
+
17
+ .canopy-timeline__description {
18
+ margin: 0;
19
+ font-size: 0.9222rem;
20
+ color: var(--color-gray-700);
21
+ }
22
+
23
+ .canopy-timeline__range {
24
+ margin: 0;
25
+ font-size: 1rem;
26
+ color: var(--color-gray-700);
27
+ font-size: 1.111rem;
28
+ letter-spacing: 0.0125em;
29
+ color: var(--color-gray-700);
30
+ font-weight: 300;
31
+ }
32
+
33
+ .canopy-timeline__body {
34
+ position: relative;
35
+ padding: 2.618rem;
36
+ }
37
+
38
+ .canopy-timeline__list {
39
+ position: relative;
40
+ min-height: 400px;
41
+ }
42
+
43
+ .canopy-timeline__spine {
44
+ position: absolute;
45
+ top: 0;
46
+ bottom: 0;
47
+ left: 50%;
48
+ transform: translateX(-50%);
49
+ width: 1rem;
50
+ background: var(--color-accent-400);
51
+ z-index: 0;
52
+
53
+ // mask background to create top and bottom fade effect
54
+ -webkit-mask-image: linear-gradient(
55
+ to bottom,
56
+ transparent,
57
+ black 10%,
58
+ black 90%,
59
+ transparent
60
+ );
61
+ mask-image: linear-gradient(
62
+ to bottom,
63
+ transparent,
64
+ black 10%,
65
+ black 90%,
66
+ transparent
67
+ );
68
+ }
69
+
70
+ .canopy-timeline__step {
71
+ position: absolute;
72
+ left: calc(50% - 0.75rem);
73
+ margin-top: -1px;
74
+ display: flex;
75
+ pointer-events: none;
76
+ z-index: 1;
77
+
78
+ &--start .canopy-timeline__step-line {
79
+ background: transparent;
80
+ }
81
+
82
+ &--end .canopy-timeline__step-line {
83
+ background: transparent;
84
+ }
85
+ }
86
+
87
+ .canopy-timeline__step-line {
88
+ width: 1.5rem;
89
+ height: 0.125rem;
90
+ background: var(--color-gray-50);
91
+ }
92
+
93
+ .canopy-timeline__step-label {
94
+ font-size: 0.8333rem;
95
+ font-weight: 300;
96
+ color: var(--color-gray-700);
97
+ transform: translateX(0.5rem);
98
+ margin-top: -0.618rem;
99
+ margin-left: -0.382rem;
100
+ }
101
+
102
+ .canopy-timeline__point-wrapper {
103
+ position: absolute;
104
+ width: 50%;
105
+ display: flex;
106
+ align-items: center;
107
+ transform: translateY(-50%);
108
+ }
109
+
110
+ .canopy-timeline__point-wrapper--left {
111
+ right: 50%;
112
+ justify-content: flex-end;
113
+ padding-right: 0.2rem;
114
+ text-align: right;
115
+ }
116
+
117
+ .canopy-timeline__point-wrapper--right {
118
+ left: 50%;
119
+ justify-content: flex-start;
120
+ padding-left: 0.2rem;
121
+ text-align: left;
122
+ }
123
+
124
+ .canopy-timeline__point,
125
+ .canopy-timeline__group {
126
+ width: min(100%, 28rem);
127
+ border-radius: 1.25rem;
128
+ border: 1px solid var(--color-gray-200);
129
+ background: var(--color-gray-50);
130
+ padding: 1rem 1.25rem;
131
+ box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
132
+ transition:
133
+ border-color 150ms ease,
134
+ box-shadow 150ms ease;
135
+ display: flex;
136
+ flex-direction: column;
137
+ }
138
+
139
+ .canopy-timeline__point-date,
140
+ .canopy-timeline__group-point-date {
141
+ font-size: 1.111rem;
142
+ letter-spacing: 0.0125em;
143
+ color: var(--color-gray-700);
144
+ font-weight: 300;
145
+ margin-bottom: 0.382rem;
146
+ }
147
+
148
+ .canopy-timeline__point-title,
149
+ .canopy-timeline__group-point-title {
150
+ display: block;
151
+ font-size: 1rem;
152
+ font-weight: 600;
153
+ color: var(--color-gray-900);
154
+ margin-top: 0.382rem 0;
155
+ }
156
+
157
+ .canopy-timeline__point-summary,
158
+ .canopy-timeline__group-count {
159
+ font-size: 0.9222rem;
160
+ font-weight: 300;
161
+ color: var(--color-gray-700);
162
+ }
163
+
164
+ .canopy-timeline__connector {
165
+ display: inline-flex;
166
+ align-items: center;
167
+ flex-shrink: 0;
168
+ }
169
+
170
+ .canopy-timeline__connector-line {
171
+ width: clamp(2.618rem, 6vw, 2.618rem);
172
+ height: 0.125rem;
173
+ border-radius: 999px;
174
+ background: var(--color-accent-700);
175
+ }
176
+
177
+ .canopy-timeline__connector-dot {
178
+ width: 0.618rem;
179
+ height: 0.618rem;
180
+ border-radius: 50%;
181
+ background: var(--color-accent-700);
182
+ border: 2px solid var(--color-accent-700);
183
+ }
184
+
185
+ .canopy-timeline__connector-dot.is-active {
186
+ width: 1rem;
187
+ height: 1rem;
188
+ background: var(--color-accent-700);
189
+ border-color: var(--color-accent-700);
190
+ }
191
+
192
+ .canopy-timeline__resources {
193
+ margin-top: 1rem;
194
+ }
195
+
196
+ .canopy-timeline__resources-list {
197
+ list-style: none;
198
+ margin: 0;
199
+ padding: 0;
200
+ display: flex;
201
+ flex-direction: column;
202
+ gap: 0.75rem;
203
+ }
204
+
205
+ .canopy-teaser-card {
206
+ width: 100%;
207
+ }
208
+
209
+ .canopy-timeline__group-header {
210
+ display: flex;
211
+ justify-content: space-between;
212
+ gap: 0.75rem;
213
+ align-items: center;
214
+ }
215
+
216
+ .canopy-timeline__group-summary {
217
+ display: flex;
218
+ flex-direction: column;
219
+ }
220
+
221
+ .canopy-timeline__group-toggle {
222
+ font-size: 1rem;
223
+ background: transparent;
224
+ border: none;
225
+ color: var(--color-accent-default);
226
+ font-weight: 600;
227
+ cursor: pointer;
228
+ }
229
+
230
+ .canopy-timeline__group-points {
231
+ margin-top: 0.75rem;
232
+ display: flex;
233
+ flex-direction: column;
234
+ gap: 0.5rem;
235
+ }
236
+
237
+ .canopy-timeline__group-point {
238
+ width: 100%;
239
+ border-radius: 0.85rem;
240
+ border: 1px solid var(--color-gray-200);
241
+ background: color-mix(in srgb, var(--color-gray-50) 70%, #fff);
242
+ padding: 0.75rem 1rem;
243
+ text-align: left;
244
+ cursor: pointer;
245
+ }
246
+
247
+ .canopy-timeline__group-point.is-active {
248
+ border-color: var(--color-accent-400);
249
+ }
250
+
251
+ @media (max-width: 900px) {
252
+ .canopy-timeline__list {
253
+ height: unset;
254
+ min-height: unset !important;
255
+ }
256
+
257
+ .canopy-timeline__point-wrapper {
258
+ position: static;
259
+ width: 100%;
260
+ padding: 0 !important;
261
+ margin-bottom: 1rem;
262
+ transform: none;
263
+ }
264
+
265
+ .canopy-timeline__point-wrapper--left {
266
+ justify-content: flex-start;
267
+ text-align: left;
268
+ }
269
+
270
+ .canopy-timeline__list {
271
+ min-height: auto;
272
+ }
273
+
274
+ .canopy-timeline__spine {
275
+ left: -1.5rem;
276
+ transform: none;
277
+ width: 0.35rem;
278
+ display: none;
279
+ }
280
+
281
+ .canopy-timeline__step,
282
+ .canopy-timeline__connector {
283
+ display: none;
284
+ }
285
+
286
+ .canopy-timeline__point,
287
+ .canopy-timeline__group {
288
+ width: 100%;
289
+ }
290
+
291
+ .canopy-timeline__body {
292
+ padding: 1rem 0 0;
293
+ }
294
+ }
@@ -13,3 +13,4 @@
13
13
  @use "./sub-navigation";
14
14
  @use "./diagram";
15
15
  @use "./work";
16
+ @use "./timeline";
@@ -2235,6 +2235,275 @@ html.dark .canopy-iiif-image .clover-iiif-image-openseadragon .clover-iiif-image
2235
2235
  line-height: 1.45;
2236
2236
  }
2237
2237
  }
2238
+ .canopy-timeline {
2239
+ font-size: 1rem;
2240
+ line-height: 1.5;
2241
+ color: var(--color-gray-900);
2242
+ display: flex;
2243
+ flex-direction: column;
2244
+ margin: 2.618rem 0;
2245
+ text-align: center;
2246
+ }
2247
+
2248
+ .canopy-timeline__title {
2249
+ margin: 0;
2250
+ font-size: 1.382rem;
2251
+ font-weight: 600;
2252
+ }
2253
+
2254
+ .canopy-timeline__description {
2255
+ margin: 0;
2256
+ font-size: 0.9222rem;
2257
+ color: var(--color-gray-700);
2258
+ }
2259
+
2260
+ .canopy-timeline__range {
2261
+ margin: 0;
2262
+ font-size: 1rem;
2263
+ color: var(--color-gray-700);
2264
+ font-size: 1.111rem;
2265
+ letter-spacing: 0.0125em;
2266
+ color: var(--color-gray-700);
2267
+ font-weight: 300;
2268
+ }
2269
+
2270
+ .canopy-timeline__body {
2271
+ position: relative;
2272
+ padding: 2.618rem;
2273
+ }
2274
+
2275
+ .canopy-timeline__list {
2276
+ position: relative;
2277
+ min-height: 400px;
2278
+ }
2279
+
2280
+ .canopy-timeline__spine {
2281
+ position: absolute;
2282
+ top: 0;
2283
+ bottom: 0;
2284
+ left: 50%;
2285
+ transform: translateX(-50%);
2286
+ width: 1rem;
2287
+ background: var(--color-accent-400);
2288
+ z-index: 0;
2289
+ -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
2290
+ mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
2291
+ }
2292
+
2293
+ .canopy-timeline__step {
2294
+ position: absolute;
2295
+ left: calc(50% - 0.75rem);
2296
+ margin-top: -1px;
2297
+ display: flex;
2298
+ pointer-events: none;
2299
+ z-index: 1;
2300
+ }
2301
+ .canopy-timeline__step--start .canopy-timeline__step-line {
2302
+ background: transparent;
2303
+ }
2304
+ .canopy-timeline__step--end .canopy-timeline__step-line {
2305
+ background: transparent;
2306
+ }
2307
+
2308
+ .canopy-timeline__step-line {
2309
+ width: 1.5rem;
2310
+ height: 0.125rem;
2311
+ background: var(--color-gray-50);
2312
+ }
2313
+
2314
+ .canopy-timeline__step-label {
2315
+ font-size: 0.8333rem;
2316
+ font-weight: 300;
2317
+ color: var(--color-gray-700);
2318
+ transform: translateX(0.5rem);
2319
+ margin-top: -0.618rem;
2320
+ margin-left: -0.382rem;
2321
+ }
2322
+
2323
+ .canopy-timeline__point-wrapper {
2324
+ position: absolute;
2325
+ width: 50%;
2326
+ display: flex;
2327
+ align-items: center;
2328
+ transform: translateY(-50%);
2329
+ }
2330
+
2331
+ .canopy-timeline__point-wrapper--left {
2332
+ right: 50%;
2333
+ justify-content: flex-end;
2334
+ padding-right: 0.2rem;
2335
+ text-align: right;
2336
+ }
2337
+
2338
+ .canopy-timeline__point-wrapper--right {
2339
+ left: 50%;
2340
+ justify-content: flex-start;
2341
+ padding-left: 0.2rem;
2342
+ text-align: left;
2343
+ }
2344
+
2345
+ .canopy-timeline__point,
2346
+ .canopy-timeline__group {
2347
+ width: min(100%, 28rem);
2348
+ border-radius: 1.25rem;
2349
+ border: 1px solid var(--color-gray-200);
2350
+ background: var(--color-gray-50);
2351
+ padding: 1rem 1.25rem;
2352
+ box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
2353
+ transition: border-color 150ms ease, box-shadow 150ms ease;
2354
+ display: flex;
2355
+ flex-direction: column;
2356
+ }
2357
+
2358
+ .canopy-timeline__point-date,
2359
+ .canopy-timeline__group-point-date {
2360
+ font-size: 1.111rem;
2361
+ letter-spacing: 0.0125em;
2362
+ color: var(--color-gray-700);
2363
+ font-weight: 300;
2364
+ margin-bottom: 0.382rem;
2365
+ }
2366
+
2367
+ .canopy-timeline__point-title,
2368
+ .canopy-timeline__group-point-title {
2369
+ display: block;
2370
+ font-size: 1rem;
2371
+ font-weight: 600;
2372
+ color: var(--color-gray-900);
2373
+ margin-top: 0.382rem 0;
2374
+ }
2375
+
2376
+ .canopy-timeline__point-summary,
2377
+ .canopy-timeline__group-count {
2378
+ font-size: 0.9222rem;
2379
+ font-weight: 300;
2380
+ color: var(--color-gray-700);
2381
+ }
2382
+
2383
+ .canopy-timeline__connector {
2384
+ display: inline-flex;
2385
+ align-items: center;
2386
+ flex-shrink: 0;
2387
+ }
2388
+
2389
+ .canopy-timeline__connector-line {
2390
+ width: clamp(2.618rem, 6vw, 2.618rem);
2391
+ height: 0.125rem;
2392
+ border-radius: 999px;
2393
+ background: var(--color-accent-700);
2394
+ }
2395
+
2396
+ .canopy-timeline__connector-dot {
2397
+ width: 0.618rem;
2398
+ height: 0.618rem;
2399
+ border-radius: 50%;
2400
+ background: var(--color-accent-700);
2401
+ border: 2px solid var(--color-accent-700);
2402
+ }
2403
+
2404
+ .canopy-timeline__connector-dot.is-active {
2405
+ width: 1rem;
2406
+ height: 1rem;
2407
+ background: var(--color-accent-700);
2408
+ border-color: var(--color-accent-700);
2409
+ }
2410
+
2411
+ .canopy-timeline__resources {
2412
+ margin-top: 1rem;
2413
+ }
2414
+
2415
+ .canopy-timeline__resources-list {
2416
+ list-style: none;
2417
+ margin: 0;
2418
+ padding: 0;
2419
+ display: flex;
2420
+ flex-direction: column;
2421
+ gap: 0.75rem;
2422
+ }
2423
+
2424
+ .canopy-teaser-card {
2425
+ width: 100%;
2426
+ }
2427
+
2428
+ .canopy-timeline__group-header {
2429
+ display: flex;
2430
+ justify-content: space-between;
2431
+ gap: 0.75rem;
2432
+ align-items: center;
2433
+ }
2434
+
2435
+ .canopy-timeline__group-summary {
2436
+ display: flex;
2437
+ flex-direction: column;
2438
+ }
2439
+
2440
+ .canopy-timeline__group-toggle {
2441
+ font-size: 1rem;
2442
+ background: transparent;
2443
+ border: none;
2444
+ color: var(--color-accent-default);
2445
+ font-weight: 600;
2446
+ cursor: pointer;
2447
+ }
2448
+
2449
+ .canopy-timeline__group-points {
2450
+ margin-top: 0.75rem;
2451
+ display: flex;
2452
+ flex-direction: column;
2453
+ gap: 0.5rem;
2454
+ }
2455
+
2456
+ .canopy-timeline__group-point {
2457
+ width: 100%;
2458
+ border-radius: 0.85rem;
2459
+ border: 1px solid var(--color-gray-200);
2460
+ background: color-mix(in srgb, var(--color-gray-50) 70%, #fff);
2461
+ padding: 0.75rem 1rem;
2462
+ text-align: left;
2463
+ cursor: pointer;
2464
+ }
2465
+
2466
+ .canopy-timeline__group-point.is-active {
2467
+ border-color: var(--color-accent-400);
2468
+ }
2469
+
2470
+ @media (max-width: 900px) {
2471
+ .canopy-timeline__list {
2472
+ height: unset;
2473
+ min-height: unset !important;
2474
+ }
2475
+ .canopy-timeline__point-wrapper {
2476
+ position: static;
2477
+ width: 100%;
2478
+ padding: 0 !important;
2479
+ margin-bottom: 1rem;
2480
+ transform: none;
2481
+ }
2482
+ .canopy-timeline__point-wrapper--left {
2483
+ justify-content: flex-start;
2484
+ text-align: left;
2485
+ }
2486
+ .canopy-timeline__list {
2487
+ min-height: auto;
2488
+ }
2489
+ .canopy-timeline__spine {
2490
+ left: -1.5rem;
2491
+ transform: none;
2492
+ width: 0.35rem;
2493
+ display: none;
2494
+ }
2495
+ .canopy-timeline__step,
2496
+ .canopy-timeline__connector {
2497
+ display: none;
2498
+ }
2499
+ .canopy-timeline__point,
2500
+ .canopy-timeline__group {
2501
+ width: 100%;
2502
+ }
2503
+ .canopy-timeline__body {
2504
+ padding: 1rem 0 0;
2505
+ }
2506
+ }
2238
2507
  /**
2239
2508
  * Define source files for utility classes
2240
2509
  */