@canopy-iiif/app 1.4.7 → 1.4.9
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/lib/build/build.js +11 -0
- package/lib/components/bibliography.js +197 -0
- package/package.json +7 -1
- package/ui/dist/server.mjs +159 -110
- package/ui/dist/server.mjs.map +4 -4
- package/ui/styles/components/_biblography.scss +88 -0
- package/ui/styles/components/index.scss +1 -0
- package/ui/styles/index.css +88 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.biblography {
|
|
2
|
+
margin: clamp(2rem, 6vw, 4rem) 0;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 1rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.biblography__pages {
|
|
9
|
+
display: grid;
|
|
10
|
+
gap: clamp(1rem, 2vw, 1.75rem);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (min-width: 900px) {
|
|
14
|
+
.biblography__pages {
|
|
15
|
+
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.biblography__page {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 1rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.biblography__page-header {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 0.382rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.biblography__page-title {
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
margin: 0;
|
|
34
|
+
line-height: 1.35;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.biblography__page-link {
|
|
38
|
+
font-size: 0.9222rem;
|
|
39
|
+
color: var(--color-accent-default);
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
word-break: break-word;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.biblography__page-link:hover {
|
|
45
|
+
text-decoration: underline;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.biblography__notes {
|
|
49
|
+
list-style: none;
|
|
50
|
+
margin: 0;
|
|
51
|
+
padding: 0;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
gap: 0.75rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.biblography__note {
|
|
58
|
+
display: grid;
|
|
59
|
+
grid-template-columns: auto 1fr;
|
|
60
|
+
gap: 0.5rem;
|
|
61
|
+
border-top: 1px solid var(--color-gray-100);
|
|
62
|
+
padding-top: 0.65rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.biblography__note:first-child {
|
|
66
|
+
border-top: none;
|
|
67
|
+
padding-top: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.biblography__note-label {
|
|
71
|
+
font-variant-numeric: tabular-nums;
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
color: var(--color-gray-500);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.biblography__note-body {
|
|
77
|
+
color: var(--color-gray-900);
|
|
78
|
+
font-size: 0.95rem;
|
|
79
|
+
line-height: 1.5;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.biblography__note-body p {
|
|
83
|
+
margin: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.biblography__note-body p + p {
|
|
87
|
+
margin-top: 0.6rem;
|
|
88
|
+
}
|
package/ui/styles/index.css
CHANGED
|
@@ -460,6 +460,94 @@ section[data-footnotes] ul li,
|
|
|
460
460
|
font-style: italic;
|
|
461
461
|
}
|
|
462
462
|
|
|
463
|
+
.biblography {
|
|
464
|
+
margin: clamp(2rem, 6vw, 4rem) 0;
|
|
465
|
+
display: flex;
|
|
466
|
+
flex-direction: column;
|
|
467
|
+
gap: 1rem;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.biblography__pages {
|
|
471
|
+
display: grid;
|
|
472
|
+
gap: clamp(1rem, 2vw, 1.75rem);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
@media (min-width: 900px) {
|
|
476
|
+
.biblography__pages {
|
|
477
|
+
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
.biblography__page {
|
|
481
|
+
display: flex;
|
|
482
|
+
flex-direction: column;
|
|
483
|
+
gap: 1rem;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.biblography__page-header {
|
|
487
|
+
display: flex;
|
|
488
|
+
flex-direction: column;
|
|
489
|
+
gap: 0.382rem;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.biblography__page-title {
|
|
493
|
+
font-size: 1rem;
|
|
494
|
+
margin: 0;
|
|
495
|
+
line-height: 1.35;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.biblography__page-link {
|
|
499
|
+
font-size: 0.9222rem;
|
|
500
|
+
color: var(--color-accent-default);
|
|
501
|
+
text-decoration: none;
|
|
502
|
+
word-break: break-word;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.biblography__page-link:hover {
|
|
506
|
+
text-decoration: underline;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.biblography__notes {
|
|
510
|
+
list-style: none;
|
|
511
|
+
margin: 0;
|
|
512
|
+
padding: 0;
|
|
513
|
+
display: flex;
|
|
514
|
+
flex-direction: column;
|
|
515
|
+
gap: 0.75rem;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.biblography__note {
|
|
519
|
+
display: grid;
|
|
520
|
+
grid-template-columns: auto 1fr;
|
|
521
|
+
gap: 0.5rem;
|
|
522
|
+
border-top: 1px solid var(--color-gray-100);
|
|
523
|
+
padding-top: 0.65rem;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.biblography__note:first-child {
|
|
527
|
+
border-top: none;
|
|
528
|
+
padding-top: 0;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.biblography__note-label {
|
|
532
|
+
font-variant-numeric: tabular-nums;
|
|
533
|
+
font-weight: 600;
|
|
534
|
+
color: var(--color-gray-500);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.biblography__note-body {
|
|
538
|
+
color: var(--color-gray-900);
|
|
539
|
+
font-size: 0.95rem;
|
|
540
|
+
line-height: 1.5;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.biblography__note-body p {
|
|
544
|
+
margin: 0;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.biblography__note-body p + p {
|
|
548
|
+
margin-top: 0.6rem;
|
|
549
|
+
}
|
|
550
|
+
|
|
463
551
|
@layer components {
|
|
464
552
|
.canopy-header {
|
|
465
553
|
position: relative;
|