@canopy-iiif/app 0.12.0 → 0.12.2
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/mdx.js +16 -0
- package/lib/build/pages.js +20 -4
- package/lib/components/navigation.js +18 -0
- package/package.json +1 -1
- package/ui/dist/server.mjs +40 -27
- package/ui/dist/server.mjs.map +2 -2
- package/ui/styles/base/_heading.scss +8 -2
- package/ui/styles/components/_interstitial-hero.scss +1 -1
- package/ui/styles/components/_sub-navigation.scss +28 -1
- package/ui/styles/index.css +34 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@layer base {
|
|
2
2
|
h1 {
|
|
3
|
-
font-size: 2.
|
|
3
|
+
font-size: 2.61rem;
|
|
4
4
|
line-height: 1.25;
|
|
5
5
|
margin: 0 0 1rem 0;
|
|
6
6
|
}
|
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
line-height: 1.3;
|
|
17
17
|
letter-spacing: -0.0125em;
|
|
18
18
|
margin: 1.618rem 0 1rem;
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
h4 {
|
|
22
|
+
font-size: 1.111rem !important;
|
|
23
|
+
line-height: 1.3;
|
|
24
|
+
letter-spacing: -0.0125em !important;
|
|
25
|
+
margin: 1.382rem 0 0.618rem 0;
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
.canopy-lead {
|
|
@@ -40,6 +40,32 @@
|
|
|
40
40
|
color: var(--color-gray-600);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
.canopy-sub-navigation__link.is-disabled {
|
|
44
|
+
cursor: default;
|
|
45
|
+
color: var(--color-gray-700);
|
|
46
|
+
font-style: italic;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.canopy-sub-navigation__badge {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
border-radius: 3px;
|
|
54
|
+
font-size: 0.6111rem;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
line-height: 1;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
z-index: 0;
|
|
59
|
+
position: relative;
|
|
60
|
+
background: var(--color-accent-200);
|
|
61
|
+
color: var(--color-accent-700);
|
|
62
|
+
font-family: var(--font-sans);
|
|
63
|
+
padding: 0.175rem 0.175rem;
|
|
64
|
+
top: -1px;
|
|
65
|
+
margin-left: 0.25rem;
|
|
66
|
+
letter-spacing: -0.0125em;
|
|
67
|
+
}
|
|
68
|
+
|
|
43
69
|
.canopy-sub-navigation__link.is-active {
|
|
44
70
|
color: var(--color-gray-900);
|
|
45
71
|
font-weight: 600;
|
|
@@ -92,7 +118,8 @@
|
|
|
92
118
|
background-color: rgba(255, 255, 255, 1);
|
|
93
119
|
border-color: var(--color-gray-300);
|
|
94
120
|
outline: none;
|
|
95
|
-
box-shadow: 0 0 0 2px
|
|
121
|
+
box-shadow: 0 0 0 2px
|
|
122
|
+
color-mix(in srgb, var(--color-accent-200) 60%, transparent);
|
|
96
123
|
}
|
|
97
124
|
|
|
98
125
|
.canopy-layout__content-nav.is-collapsed .canopy-content-navigation {
|
package/ui/styles/index.css
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
@layer base {
|
|
116
116
|
h1 {
|
|
117
|
-
font-size: 2.
|
|
117
|
+
font-size: 2.61rem;
|
|
118
118
|
line-height: 1.25;
|
|
119
119
|
margin: 0 0 1rem 0;
|
|
120
120
|
}
|
|
@@ -128,7 +128,12 @@
|
|
|
128
128
|
line-height: 1.3;
|
|
129
129
|
letter-spacing: -0.0125em;
|
|
130
130
|
margin: 1.618rem 0 1rem;
|
|
131
|
-
|
|
131
|
+
}
|
|
132
|
+
h4 {
|
|
133
|
+
font-size: 1.111rem !important;
|
|
134
|
+
line-height: 1.3;
|
|
135
|
+
letter-spacing: -0.0125em !important;
|
|
136
|
+
margin: 1.382rem 0 0.618rem 0;
|
|
132
137
|
}
|
|
133
138
|
.canopy-lead {
|
|
134
139
|
font-size: 1.382rem;
|
|
@@ -1018,7 +1023,7 @@ section[data-footnotes] ul li,
|
|
|
1018
1023
|
}
|
|
1019
1024
|
}
|
|
1020
1025
|
.canopy-interstitial--hero-text {
|
|
1021
|
-
margin-bottom: 0;
|
|
1026
|
+
margin-bottom: 0.618rem;
|
|
1022
1027
|
}
|
|
1023
1028
|
.canopy-interstitial--hero-text .canopy-interstitial__body {
|
|
1024
1029
|
align-items: center;
|
|
@@ -2010,6 +2015,32 @@ html.dark .canopy-iiif-image .clover-iiif-image-openseadragon .clover-iiif-image
|
|
|
2010
2015
|
color: var(--color-gray-600);
|
|
2011
2016
|
}
|
|
2012
2017
|
|
|
2018
|
+
.canopy-sub-navigation__link.is-disabled {
|
|
2019
|
+
cursor: default;
|
|
2020
|
+
color: var(--color-gray-700);
|
|
2021
|
+
font-style: italic;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
.canopy-sub-navigation__badge {
|
|
2025
|
+
display: inline-flex;
|
|
2026
|
+
align-items: center;
|
|
2027
|
+
justify-content: center;
|
|
2028
|
+
border-radius: 3px;
|
|
2029
|
+
font-size: 0.6111rem;
|
|
2030
|
+
font-weight: 600;
|
|
2031
|
+
line-height: 1;
|
|
2032
|
+
white-space: nowrap;
|
|
2033
|
+
z-index: 0;
|
|
2034
|
+
position: relative;
|
|
2035
|
+
background: var(--color-accent-200);
|
|
2036
|
+
color: var(--color-accent-700);
|
|
2037
|
+
font-family: var(--font-sans);
|
|
2038
|
+
padding: 0.175rem 0.175rem;
|
|
2039
|
+
top: -1px;
|
|
2040
|
+
margin-left: 0.25rem;
|
|
2041
|
+
letter-spacing: -0.0125em;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2013
2044
|
.canopy-sub-navigation__link.is-active {
|
|
2014
2045
|
color: var(--color-gray-900);
|
|
2015
2046
|
font-weight: 600;
|