@canopy-iiif/app 0.12.1 → 0.12.3
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 +117 -49
- package/ui/dist/server.mjs.map +3 -3
- package/ui/styles/base/_common.scss +2 -1
- package/ui/styles/base/_heading.scss +8 -2
- package/ui/styles/components/_interstitial-hero.scss +38 -4
- package/ui/styles/components/_sub-navigation.scss +28 -1
- package/ui/styles/index.css +69 -10
|
@@ -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 {
|
|
@@ -116,23 +116,57 @@
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
&--hero-
|
|
120
|
-
margin-bottom: 0;
|
|
119
|
+
&--hero-breadcrumb {
|
|
120
|
+
margin-bottom: 0.618rem;
|
|
121
121
|
|
|
122
122
|
.canopy-interstitial__body {
|
|
123
123
|
align-items: center;
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-wrap: nowrap;
|
|
126
|
+
flex-direction: row;
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
padding: 0;
|
|
129
|
+
|
|
130
|
+
p {
|
|
131
|
+
flex-grow: 0;
|
|
132
|
+
}
|
|
124
133
|
}
|
|
125
134
|
|
|
126
135
|
.canopy-interstitial__panel {
|
|
127
|
-
padding: 1.618rem
|
|
136
|
+
padding: 1rem 1.618rem;
|
|
128
137
|
}
|
|
129
138
|
|
|
130
139
|
.canopy-interstitial__description {
|
|
140
|
+
font-size: 0.8333rem;
|
|
131
141
|
color: var(--color-accent-800);
|
|
132
|
-
font-
|
|
142
|
+
font-family: var(--font-mono);
|
|
133
143
|
}
|
|
134
144
|
}
|
|
135
145
|
|
|
146
|
+
&__breadcrumb {
|
|
147
|
+
display: inline-flex;
|
|
148
|
+
gap: 0.5rem;
|
|
149
|
+
font-size: 0.8333rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&__breadcrumb a {
|
|
153
|
+
color: inherit;
|
|
154
|
+
text-decoration: none;
|
|
155
|
+
color: var(--color-gray-700);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&__breadcrumb a:hover,
|
|
159
|
+
&__breadcrumb a:focus-visible {
|
|
160
|
+
color: var(--color-accent-700);
|
|
161
|
+
outline: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&__breadcrumb-separator,
|
|
165
|
+
&__breadcrumb-current {
|
|
166
|
+
color: var(--color-gray-900);
|
|
167
|
+
font-weight: 600;
|
|
168
|
+
}
|
|
169
|
+
|
|
136
170
|
&__slider {
|
|
137
171
|
position: relative;
|
|
138
172
|
width: 100%;
|
|
@@ -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
|
@@ -84,10 +84,11 @@
|
|
|
84
84
|
}
|
|
85
85
|
p {
|
|
86
86
|
line-height: 1.618;
|
|
87
|
-
|
|
87
|
+
padding: 0.5rem 0;
|
|
88
88
|
}
|
|
89
89
|
ol,
|
|
90
90
|
ul {
|
|
91
|
+
padding: 0.5rem 0;
|
|
91
92
|
padding-left: 1.618rem;
|
|
92
93
|
}
|
|
93
94
|
ol li,
|
|
@@ -114,7 +115,7 @@
|
|
|
114
115
|
}
|
|
115
116
|
@layer base {
|
|
116
117
|
h1 {
|
|
117
|
-
font-size: 2.
|
|
118
|
+
font-size: 2.61rem;
|
|
118
119
|
line-height: 1.25;
|
|
119
120
|
margin: 0 0 1rem 0;
|
|
120
121
|
}
|
|
@@ -128,7 +129,12 @@
|
|
|
128
129
|
line-height: 1.3;
|
|
129
130
|
letter-spacing: -0.0125em;
|
|
130
131
|
margin: 1.618rem 0 1rem;
|
|
131
|
-
|
|
132
|
+
}
|
|
133
|
+
h4 {
|
|
134
|
+
font-size: 1.111rem !important;
|
|
135
|
+
line-height: 1.3;
|
|
136
|
+
letter-spacing: -0.0125em !important;
|
|
137
|
+
margin: 1.382rem 0 0.618rem 0;
|
|
132
138
|
}
|
|
133
139
|
.canopy-lead {
|
|
134
140
|
font-size: 1.382rem;
|
|
@@ -1017,18 +1023,45 @@ section[data-footnotes] ul li,
|
|
|
1017
1023
|
font-size: 2.618rem;
|
|
1018
1024
|
}
|
|
1019
1025
|
}
|
|
1020
|
-
.canopy-interstitial--hero-
|
|
1021
|
-
margin-bottom: 0;
|
|
1026
|
+
.canopy-interstitial--hero-breadcrumb {
|
|
1027
|
+
margin-bottom: 0.618rem;
|
|
1022
1028
|
}
|
|
1023
|
-
.canopy-interstitial--hero-
|
|
1029
|
+
.canopy-interstitial--hero-breadcrumb .canopy-interstitial__body {
|
|
1024
1030
|
align-items: center;
|
|
1031
|
+
display: flex;
|
|
1032
|
+
flex-wrap: nowrap;
|
|
1033
|
+
flex-direction: row;
|
|
1034
|
+
justify-content: space-between;
|
|
1035
|
+
padding: 0;
|
|
1025
1036
|
}
|
|
1026
|
-
.canopy-interstitial--hero-
|
|
1027
|
-
|
|
1037
|
+
.canopy-interstitial--hero-breadcrumb .canopy-interstitial__body p {
|
|
1038
|
+
flex-grow: 0;
|
|
1028
1039
|
}
|
|
1029
|
-
.canopy-interstitial--hero-
|
|
1040
|
+
.canopy-interstitial--hero-breadcrumb .canopy-interstitial__panel {
|
|
1041
|
+
padding: 1rem 1.618rem;
|
|
1042
|
+
}
|
|
1043
|
+
.canopy-interstitial--hero-breadcrumb .canopy-interstitial__description {
|
|
1044
|
+
font-size: 0.8333rem;
|
|
1030
1045
|
color: var(--color-accent-800);
|
|
1031
|
-
font-
|
|
1046
|
+
font-family: var(--font-mono);
|
|
1047
|
+
}
|
|
1048
|
+
.canopy-interstitial__breadcrumb {
|
|
1049
|
+
display: inline-flex;
|
|
1050
|
+
gap: 0.5rem;
|
|
1051
|
+
font-size: 0.8333rem;
|
|
1052
|
+
}
|
|
1053
|
+
.canopy-interstitial__breadcrumb a {
|
|
1054
|
+
color: inherit;
|
|
1055
|
+
text-decoration: none;
|
|
1056
|
+
color: var(--color-gray-700);
|
|
1057
|
+
}
|
|
1058
|
+
.canopy-interstitial__breadcrumb a:hover, .canopy-interstitial__breadcrumb a:focus-visible {
|
|
1059
|
+
color: var(--color-accent-700);
|
|
1060
|
+
outline: none;
|
|
1061
|
+
}
|
|
1062
|
+
.canopy-interstitial__breadcrumb-separator, .canopy-interstitial__breadcrumb-current {
|
|
1063
|
+
color: var(--color-gray-900);
|
|
1064
|
+
font-weight: 600;
|
|
1032
1065
|
}
|
|
1033
1066
|
.canopy-interstitial__slider {
|
|
1034
1067
|
position: relative;
|
|
@@ -2010,6 +2043,32 @@ html.dark .canopy-iiif-image .clover-iiif-image-openseadragon .clover-iiif-image
|
|
|
2010
2043
|
color: var(--color-gray-600);
|
|
2011
2044
|
}
|
|
2012
2045
|
|
|
2046
|
+
.canopy-sub-navigation__link.is-disabled {
|
|
2047
|
+
cursor: default;
|
|
2048
|
+
color: var(--color-gray-700);
|
|
2049
|
+
font-style: italic;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
.canopy-sub-navigation__badge {
|
|
2053
|
+
display: inline-flex;
|
|
2054
|
+
align-items: center;
|
|
2055
|
+
justify-content: center;
|
|
2056
|
+
border-radius: 3px;
|
|
2057
|
+
font-size: 0.6111rem;
|
|
2058
|
+
font-weight: 600;
|
|
2059
|
+
line-height: 1;
|
|
2060
|
+
white-space: nowrap;
|
|
2061
|
+
z-index: 0;
|
|
2062
|
+
position: relative;
|
|
2063
|
+
background: var(--color-accent-200);
|
|
2064
|
+
color: var(--color-accent-700);
|
|
2065
|
+
font-family: var(--font-sans);
|
|
2066
|
+
padding: 0.175rem 0.175rem;
|
|
2067
|
+
top: -1px;
|
|
2068
|
+
margin-left: 0.25rem;
|
|
2069
|
+
letter-spacing: -0.0125em;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2013
2072
|
.canopy-sub-navigation__link.is-active {
|
|
2014
2073
|
color: var(--color-gray-900);
|
|
2015
2074
|
font-weight: 600;
|