@museumwnf/viewer-layout 3.2.2 → 3.4.0
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/README.md +167 -12
- package/dist/ItemDetailView-I__hm63H.js +298 -0
- package/dist/SiteShell-4vV2jIzf.js +192 -0
- package/dist/{Theme-Dd8G1RA3.js → Theme-B5J0XRe1.js} +3 -3
- package/dist/{TimelineResultsView-5Cy-OkZY.js → TimelineResultsView-ChkBn27W.js} +489 -485
- package/dist/chrome-DPuPeWzV.js +1141 -0
- package/dist/components.js +1 -1
- package/dist/data-CJlLA-Mf.js +38 -0
- package/dist/data-DTbAYdr2.js +40 -0
- package/dist/dxa.js +619 -502
- package/dist/index.js +6 -6
- package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +1 -1
- package/package.json +8 -2
- package/src/dxa/testing.js +857 -0
- package/src/styles/dxa-exhibition.css +389 -0
- package/src/styles/dxa-gallery.css +589 -0
- package/src/tokens.reference.css +25 -7
- package/dist/ItemDetailView-C-X-LgJU.js +0 -284
- package/dist/PageShell-CbJ9lQoQ.js +0 -961
- package/dist/SiteShell-C3OgZO8p.js +0 -154
- package/dist/data-BfyYB8ff.js +0 -33
- package/dist/data-G8uXeEfE.js +0 -35
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The DXA gallery family's stylesheet: what every gallery shares beyond the
|
|
3
|
+
* components — its fonts, its page reset, its theme as a function of the
|
|
4
|
+
* palette, and the page column and menu legacy's galleries all had.
|
|
5
|
+
*
|
|
6
|
+
* A gallery imports it after the package's own stylesheet and before its
|
|
7
|
+
* theme, so that the theme's values win:
|
|
8
|
+
*
|
|
9
|
+
* import '@museumwnf/viewer-layout/style.css'
|
|
10
|
+
* import '@museumwnf/viewer-layout/dxa/gallery.css'
|
|
11
|
+
* import '../theme/tokens.css'
|
|
12
|
+
* import '../theme/overrides.css'
|
|
13
|
+
*
|
|
14
|
+
* The gallery's theme/tokens.css sets the palette — legacy's five colours,
|
|
15
|
+
* from inventory-app's .legacy-code/dxa-client/src/sites/<code>/_variables.scss:
|
|
16
|
+
*
|
|
17
|
+
* --theme-dark banner, header, footer
|
|
18
|
+
* --theme-medium-dark dark menu items
|
|
19
|
+
* --theme-medium text background, search button
|
|
20
|
+
* --theme-light light menu items
|
|
21
|
+
* --background-color page background
|
|
22
|
+
*
|
|
23
|
+
* Every token below can be set again in the gallery's theme/tokens.css; the
|
|
24
|
+
* gallery's value wins. Legacy drew white text on both menu shades and on the
|
|
25
|
+
* header buttons whatever the palette, and so does this file.
|
|
26
|
+
*/
|
|
27
|
+
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,400&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');
|
|
28
|
+
|
|
29
|
+
/* ── Theme: the family's tokens, read from the palette ───────────────────── */
|
|
30
|
+
:root {
|
|
31
|
+
/* ---------- Global ---------- */
|
|
32
|
+
--mwnf-font-body: 'Roboto Condensed', 'Roboto', Arial, sans-serif;
|
|
33
|
+
--mwnf-font-heading: 'Roboto Condensed', 'Roboto', Arial, sans-serif;
|
|
34
|
+
--mwnf-line-height: 1.4;
|
|
35
|
+
--mwnf-weight-heading: 700;
|
|
36
|
+
--mwnf-color-text: #1a1a1a;
|
|
37
|
+
--mwnf-color-background: var(--background-color);
|
|
38
|
+
--mwnf-color-accent: var(--theme-dark);
|
|
39
|
+
--mwnf-color-muted: #555555;
|
|
40
|
+
--mwnf-color-border: var(--theme-medium);
|
|
41
|
+
--mwnf-content-width: 100%;
|
|
42
|
+
--mwnf-content-padding: 0rem;
|
|
43
|
+
--mwnf-space: 0.75rem;
|
|
44
|
+
--mwnf-radius: 0;
|
|
45
|
+
--mwnf-section-border: none;
|
|
46
|
+
--mwnf-section-title-size: 1rem;
|
|
47
|
+
|
|
48
|
+
/* ---------- Header ---------- */
|
|
49
|
+
--mwnf-header-padding: 0;
|
|
50
|
+
--mwnf-header-background: var(--theme-dark);
|
|
51
|
+
--mwnf-header-text: #ffffff;
|
|
52
|
+
--mwnf-header-title-size: 1.75rem;
|
|
53
|
+
--mwnf-header-subtitle-size: 0.875rem;
|
|
54
|
+
--mwnf-header-subtitle-color: #ffffff;
|
|
55
|
+
|
|
56
|
+
/* ---------- Banner ---------- */
|
|
57
|
+
--mwnf-banner-padding: 0;
|
|
58
|
+
--mwnf-banner-background: var(--theme-dark);
|
|
59
|
+
--mwnf-banner-text-color: #ffffff;
|
|
60
|
+
--mwnf-banner-text-size: 1.25rem;
|
|
61
|
+
--mwnf-banner-max-height: 28rem;
|
|
62
|
+
|
|
63
|
+
/* ---------- Navigation ---------- */
|
|
64
|
+
--mwnf-nav-padding: 0;
|
|
65
|
+
--mwnf-nav-background: var(--theme-dark);
|
|
66
|
+
--mwnf-nav-border: none;
|
|
67
|
+
--mwnf-nav-gap: 0px;
|
|
68
|
+
--mwnf-nav-link-color: #ffffff;
|
|
69
|
+
--mwnf-nav-link-active-color: #ffffff;
|
|
70
|
+
--mwnf-nav-link-weight: 400;
|
|
71
|
+
|
|
72
|
+
/* ---------- Content ---------- */
|
|
73
|
+
--mwnf-content-padding-block: 0;
|
|
74
|
+
--mwnf-content-background: var(--background-color);
|
|
75
|
+
|
|
76
|
+
/* ---------- Hyperlinks ---------- */
|
|
77
|
+
--mwnf-hyperlinks-padding: 1rem;
|
|
78
|
+
--mwnf-hyperlinks-background: transparent;
|
|
79
|
+
--mwnf-hyperlinks-link-color: #0000ff;
|
|
80
|
+
|
|
81
|
+
/* ---------- Sponsors ---------- */
|
|
82
|
+
--mwnf-sponsors-padding: 1rem;
|
|
83
|
+
--mwnf-sponsors-background: transparent;
|
|
84
|
+
--mwnf-sponsors-gap: 1.5rem;
|
|
85
|
+
--mwnf-sponsors-logo-height: 2.5rem;
|
|
86
|
+
|
|
87
|
+
/* ---------- Footer ---------- */
|
|
88
|
+
--mwnf-footer-padding: 0.5rem;
|
|
89
|
+
--mwnf-footer-background: var(--theme-dark);
|
|
90
|
+
--mwnf-footer-text-color: #ffffff;
|
|
91
|
+
--mwnf-footer-text-size: 0.875rem;
|
|
92
|
+
--mwnf-footer-justify: center;
|
|
93
|
+
--mwnf-footer-gap: 0.5rem;
|
|
94
|
+
--mwnf-footer-link-color: #ffffff;
|
|
95
|
+
|
|
96
|
+
/* ---------- Header: mark, title cell, links, search, switcher ---------- */
|
|
97
|
+
--mwnf-header-gap: 0.875rem;
|
|
98
|
+
--mwnf-header-eyebrow-size: 0.875rem;
|
|
99
|
+
--mwnf-header-title-line-height: 1.05;
|
|
100
|
+
--mwnf-header-tools-size: 0.875rem;
|
|
101
|
+
--mwnf-header-link-color: #ffffff;
|
|
102
|
+
--mwnf-header-links-separator: "|";
|
|
103
|
+
--mwnf-header-control-border: 2px solid #ffffff;
|
|
104
|
+
--mwnf-header-control-background: #ffffff;
|
|
105
|
+
--mwnf-header-control-text: #1a1a1a;
|
|
106
|
+
--mwnf-header-button-border: 2px solid var(--theme-medium);
|
|
107
|
+
--mwnf-header-button-background: var(--theme-medium);
|
|
108
|
+
--mwnf-header-button-text: #ffffff;
|
|
109
|
+
--mwnf-header-button-active-background: var(--theme-medium);
|
|
110
|
+
--mwnf-header-button-active-text: #ffffff;
|
|
111
|
+
|
|
112
|
+
/* ---------- Banner: the tall home strip and the narrow section strip ---------- */
|
|
113
|
+
--mwnf-banner-media-background: var(--theme-dark);
|
|
114
|
+
--mwnf-banner-fallback: linear-gradient(160deg, var(--theme-dark), var(--theme-medium));
|
|
115
|
+
--mwnf-banner-strip-height: 45vh;
|
|
116
|
+
--mwnf-banner-strip-max-height: 450px;
|
|
117
|
+
--mwnf-banner-strip-eyebrow-size: 30px;
|
|
118
|
+
--mwnf-banner-strip-title-size: 70px;
|
|
119
|
+
--mwnf-banner-overlay-text: #ffffff;
|
|
120
|
+
--mwnf-banner-overlay-background: color-mix(in srgb, var(--theme-dark) 60%, transparent);
|
|
121
|
+
--mwnf-banner-caption-background: rgba(0, 0, 0, 0.6);
|
|
122
|
+
--mwnf-banner-caption-text: rgba(255, 255, 255, 0.85);
|
|
123
|
+
--mwnf-banner-section-height: 20vh;
|
|
124
|
+
--mwnf-banner-section-max-height: 150px;
|
|
125
|
+
--mwnf-banner-section-title-size: 190%;
|
|
126
|
+
|
|
127
|
+
/* ---------- Content: the record page ---------- */
|
|
128
|
+
/* The sheet as the legacy gallery set it: bold labels in the text colour over
|
|
129
|
+
plain values, no cell borders, the photo gallery on the page ground. */
|
|
130
|
+
--mwnf-sheet-text-size: 0.9375rem;
|
|
131
|
+
--mwnf-sheet-label-size: 0.9375rem;
|
|
132
|
+
--mwnf-sheet-label-weight: 700;
|
|
133
|
+
--mwnf-sheet-label-color: inherit;
|
|
134
|
+
--mwnf-sheet-gap: 0.75rem;
|
|
135
|
+
--mwnf-sheet-toggle-color: var(--theme-dark);
|
|
136
|
+
--mwnf-sheet-term-color: var(--theme-medium-dark);
|
|
137
|
+
--mwnf-sheet-term-underline: var(--theme-medium-dark);
|
|
138
|
+
--mwnf-sheet-section-border: 1px solid var(--theme-light);
|
|
139
|
+
--mwnf-sheet-heading-size: 1rem;
|
|
140
|
+
--mwnf-sheet-heading-color: var(--theme-dark);
|
|
141
|
+
--mwnf-credits-border: 1px solid var(--theme-light);
|
|
142
|
+
--mwnf-credits-size: 0.875rem;
|
|
143
|
+
--mwnf-credits-color: #1a1a1a;
|
|
144
|
+
--mwnf-languages-gap: 0.125rem;
|
|
145
|
+
--mwnf-languages-button-border: 1px solid var(--theme-medium);
|
|
146
|
+
--mwnf-languages-button-text: var(--theme-dark);
|
|
147
|
+
--mwnf-languages-button-size: 0.8125rem;
|
|
148
|
+
--mwnf-languages-active-background: var(--theme-medium-dark);
|
|
149
|
+
--mwnf-languages-active-text: #ffffff;
|
|
150
|
+
--mwnf-media-background: var(--background-color);
|
|
151
|
+
--mwnf-media-thumb-active-border: 2px solid var(--theme-medium-dark);
|
|
152
|
+
--mwnf-media-caption-color: #555555;
|
|
153
|
+
--mwnf-popover-border: 2px solid var(--theme-medium-dark);
|
|
154
|
+
--mwnf-popover-title-background: var(--theme-dark);
|
|
155
|
+
--mwnf-grid-card-background: color-mix(in srgb, var(--theme-dark) 93%, transparent);
|
|
156
|
+
|
|
157
|
+
/* ---------- Content: the lists ---------- */
|
|
158
|
+
/* The tile grid, the "filter further by" column, the summary line and the
|
|
159
|
+
page links as the legacy gallery drew them: white controls with the grey
|
|
160
|
+
border on the page-ground panel, the active page in the dark tone. */
|
|
161
|
+
--mwnf-grid-columns: 3;
|
|
162
|
+
--mwnf-grid-gap: 4px;
|
|
163
|
+
--mwnf-grid-tile-background: #ffffff;
|
|
164
|
+
--mwnf-grid-card-text: #ffffff;
|
|
165
|
+
--mwnf-filter-padding: 14px;
|
|
166
|
+
--mwnf-filter-border: none;
|
|
167
|
+
--mwnf-filter-background: var(--background-color);
|
|
168
|
+
--mwnf-filter-gap: 10px;
|
|
169
|
+
--mwnf-filter-title-size: 1rem;
|
|
170
|
+
--mwnf-filter-title-color: #1a1a1a;
|
|
171
|
+
--mwnf-filter-control-border: 1px solid #999999;
|
|
172
|
+
--mwnf-filter-control-background: #ffffff;
|
|
173
|
+
--mwnf-filter-control-padding: 5px;
|
|
174
|
+
--mwnf-filter-reset-background: var(--theme-medium-dark);
|
|
175
|
+
--mwnf-filter-reset-text: #ffffff;
|
|
176
|
+
--mwnf-summary-size: 0.9375rem;
|
|
177
|
+
--mwnf-summary-color: #1a1a1a;
|
|
178
|
+
--mwnf-summary-value-color: #1a1a1a;
|
|
179
|
+
--mwnf-summary-border: none;
|
|
180
|
+
--mwnf-summary-padding: 0;
|
|
181
|
+
--mwnf-pagination-size: 0.8125rem;
|
|
182
|
+
--mwnf-pagination-button-border: 1px solid var(--theme-medium);
|
|
183
|
+
--mwnf-pagination-button-background: #ffffff;
|
|
184
|
+
--mwnf-pagination-button-text: var(--theme-dark);
|
|
185
|
+
--mwnf-pagination-button-hover-background: var(--background-color);
|
|
186
|
+
--mwnf-pagination-active-background: var(--theme-medium-dark);
|
|
187
|
+
--mwnf-pagination-active-text: #ffffff;
|
|
188
|
+
|
|
189
|
+
/* ---------- Navigation: the menu button and the standing notice ---------- */
|
|
190
|
+
--mwnf-nav-toggle-background: var(--theme-dark);
|
|
191
|
+
--mwnf-nav-toggle-color: #ffffff;
|
|
192
|
+
--mwnf-nav-notice-margin: 0;
|
|
193
|
+
--mwnf-nav-notice-padding: 5px 15px;
|
|
194
|
+
--mwnf-nav-notice-size: 90%;
|
|
195
|
+
--mwnf-nav-notice-background: var(--theme-dark);
|
|
196
|
+
--mwnf-nav-notice-color: #ffffff;
|
|
197
|
+
|
|
198
|
+
/* ---------- Content classes ---------- */
|
|
199
|
+
/* The partner profile's "View objects" button and the loading message, in
|
|
200
|
+
legacy's own `.legacy-button`/`.loader` colours. */
|
|
201
|
+
--mwnf-button-background: var(--theme-medium-dark);
|
|
202
|
+
--mwnf-button-text: #ffffff;
|
|
203
|
+
--mwnf-button-hover-background: var(--theme-dark);
|
|
204
|
+
--mwnf-loader-text: var(--theme-dark);
|
|
205
|
+
|
|
206
|
+
/* ---------- Links ---------- */
|
|
207
|
+
/* Legacy's `$link-blue` for the content links (About, Credits, the search
|
|
208
|
+
how-to, the partner profile, the search results), and black for the
|
|
209
|
+
controls it drew as text: the Back button and the item sheet's museum and
|
|
210
|
+
catalogue links. */
|
|
211
|
+
--mwnf-link-text: #0000ff;
|
|
212
|
+
--mwnf-back-link-color: #000000;
|
|
213
|
+
--mwnf-dxa-item-link: #000000;
|
|
214
|
+
|
|
215
|
+
/* ---------- Content: PartnerListView ---------- */
|
|
216
|
+
/* The country-group heading, in the dark tone over a medium rule. */
|
|
217
|
+
--mwnf-partner-list-group-title-color: var(--theme-dark);
|
|
218
|
+
--mwnf-partner-list-group-border: 2px solid var(--theme-medium);
|
|
219
|
+
|
|
220
|
+
/* ---------- The family pages ---------- */
|
|
221
|
+
/* The partner profile's tab strip and headings in the dark tone; the bands
|
|
222
|
+
(language switcher, tab-strip surround, "Timeline for this Search" box)
|
|
223
|
+
on the page ground. */
|
|
224
|
+
--mwnf-dxa-heading-color: var(--theme-dark);
|
|
225
|
+
--mwnf-dxa-band-background: var(--background-color);
|
|
226
|
+
/* The item sheet's Related Content sidebar: white on the light tone, its
|
|
227
|
+
headings underlined in the dark tone (legacy's `$theme-light`). */
|
|
228
|
+
--mwnf-dxa-related-background: var(--theme-light);
|
|
229
|
+
--mwnf-dxa-related-text: #ffffff;
|
|
230
|
+
--mwnf-dxa-related-heading-color: var(--theme-dark);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* ── Page reset ──────────────────────────────────────────────────────────── */
|
|
234
|
+
|
|
235
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
236
|
+
|
|
237
|
+
body {
|
|
238
|
+
background: var(--background-color);
|
|
239
|
+
color: var(--mwnf-color-text);
|
|
240
|
+
display: flex;
|
|
241
|
+
justify-content: center;
|
|
242
|
+
align-items: flex-start;
|
|
243
|
+
overflow-x: hidden;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
html[dir='rtl'] body { direction: rtl; }
|
|
247
|
+
|
|
248
|
+
a { color: inherit; }
|
|
249
|
+
|
|
250
|
+
/* ── The page column and the menu ────────────────────────────────────────── */
|
|
251
|
+
/* The legacy gallery is a fixed-width page column with edge-to-edge chrome
|
|
252
|
+
inside it, a six-column menu bar, and an upper-cased title and menu. What
|
|
253
|
+
a token cannot express is set here, on PageShell's own classes. */
|
|
254
|
+
|
|
255
|
+
/* A 1350px column centred on the viewport, with a drop shadow marking its
|
|
256
|
+
edges. */
|
|
257
|
+
.mwnf-page {
|
|
258
|
+
width: 1350px;
|
|
259
|
+
max-width: 100vw;
|
|
260
|
+
box-shadow: 0 2px 8px 2px #707070;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* The header stays put while the page scrolls; the navigation does not,
|
|
264
|
+
because the language switcher makes the header's height variable. */
|
|
265
|
+
.mwnf-header {
|
|
266
|
+
position: sticky;
|
|
267
|
+
top: 0;
|
|
268
|
+
z-index: 90;
|
|
269
|
+
}
|
|
270
|
+
.mwnf-nav {
|
|
271
|
+
z-index: 89;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* The header row: the mark, the centred title cell, the tools at the end. */
|
|
275
|
+
.mwnf-header__inner {
|
|
276
|
+
min-height: 80px;
|
|
277
|
+
padding-inline: 14px 12px;
|
|
278
|
+
}
|
|
279
|
+
.mwnf-header__title {
|
|
280
|
+
text-transform: uppercase;
|
|
281
|
+
}
|
|
282
|
+
.mwnf-header__search-input {
|
|
283
|
+
margin-inline-end: 5px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* The menu: one equal column per entry, alternating the two menu shades,
|
|
287
|
+
upper-cased in CSS so each entry is stored in its natural case — the only
|
|
288
|
+
form a translator can work with, and the only form that means anything in
|
|
289
|
+
Arabic. */
|
|
290
|
+
.mwnf-nav__bar {
|
|
291
|
+
display: block;
|
|
292
|
+
}
|
|
293
|
+
.mwnf-nav__links {
|
|
294
|
+
display: grid;
|
|
295
|
+
grid-template-columns: repeat(6, 1fr);
|
|
296
|
+
width: 100%;
|
|
297
|
+
}
|
|
298
|
+
.mwnf-nav__links li {
|
|
299
|
+
display: flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
justify-content: center;
|
|
302
|
+
line-height: 28px;
|
|
303
|
+
}
|
|
304
|
+
.mwnf-nav__links li:nth-child(odd) { background: var(--theme-medium-dark); }
|
|
305
|
+
.mwnf-nav__links li:nth-child(even) { background: var(--theme-light); }
|
|
306
|
+
.mwnf-nav__link {
|
|
307
|
+
width: 100%;
|
|
308
|
+
text-align: center;
|
|
309
|
+
padding: 2px 4px;
|
|
310
|
+
text-transform: uppercase;
|
|
311
|
+
}
|
|
312
|
+
.mwnf-nav__link--active {
|
|
313
|
+
background: rgba(0, 0, 0, 0.18);
|
|
314
|
+
text-decoration: none;
|
|
315
|
+
}
|
|
316
|
+
.mwnf-nav__notice-title {
|
|
317
|
+
font-weight: 700;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* The banner is edge to edge inside the column. */
|
|
321
|
+
.mwnf-banner {
|
|
322
|
+
padding-inline: 0;
|
|
323
|
+
}
|
|
324
|
+
.mwnf-banner--strip .mwnf-banner__title {
|
|
325
|
+
font-weight: 700;
|
|
326
|
+
}
|
|
327
|
+
.mwnf-banner--strip .mwnf-banner__enter {
|
|
328
|
+
text-decoration: none;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* The footer: one centred line of links and the copyright. */
|
|
332
|
+
.mwnf-footer {
|
|
333
|
+
justify-content: center;
|
|
334
|
+
text-align: center;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@media only screen and (max-width: 974px) {
|
|
338
|
+
.mwnf-nav__links { grid-template-columns: repeat(3, 1fr); }
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
@media only screen and (max-width: 599px) {
|
|
342
|
+
.mwnf-header__inner { min-height: 65px; }
|
|
343
|
+
.mwnf-header__lockup { flex-basis: 100%; order: 3; }
|
|
344
|
+
.mwnf-nav__links { display: none; }
|
|
345
|
+
.mwnf-nav--open .mwnf-nav__links { display: grid; grid-template-columns: 1fr; }
|
|
346
|
+
.mwnf-nav__toggle { width: 100%; justify-content: center; font-size: 20px; }
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* ── The header mark and tools, the footer's icons (inventory-app#2233) ──── */
|
|
350
|
+
|
|
351
|
+
/* The tools keep to the row's end whether or not a title cell sits between
|
|
352
|
+
them and the mark (the home page has none). Legacy's logo is drawn at its
|
|
353
|
+
own size. */
|
|
354
|
+
.mwnf-header__tools {
|
|
355
|
+
margin-inline-start: auto;
|
|
356
|
+
}
|
|
357
|
+
.mwnf-header__brand-logo {
|
|
358
|
+
height: auto;
|
|
359
|
+
}
|
|
360
|
+
.mwnf-footer__social-link {
|
|
361
|
+
color: #ffffff;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/* ── The home page: legacy's FeaturedPartners, LogosComponent and
|
|
365
|
+
FeaturedGalleries ───────────────────────────────────────────────────── */
|
|
366
|
+
|
|
367
|
+
/* Featured Partners: white on the medium tone, the picture and the text
|
|
368
|
+
side by side in the middle 60% of the column, the bullets under them. */
|
|
369
|
+
.mwnf-dxa-home .mwnf-featured-partners {
|
|
370
|
+
display: flex;
|
|
371
|
+
flex-direction: column;
|
|
372
|
+
align-items: center;
|
|
373
|
+
padding: 0;
|
|
374
|
+
background: var(--theme-medium);
|
|
375
|
+
color: #ffffff;
|
|
376
|
+
}
|
|
377
|
+
.mwnf-dxa-home .mwnf-featured-partners__heading {
|
|
378
|
+
width: calc(60% + 20px);
|
|
379
|
+
margin: 40px 0 20px;
|
|
380
|
+
font-size: 125%;
|
|
381
|
+
font-weight: 400;
|
|
382
|
+
color: inherit;
|
|
383
|
+
}
|
|
384
|
+
.mwnf-dxa-home .mwnf-featured-partners__carousel {
|
|
385
|
+
width: calc(60% + 20px);
|
|
386
|
+
height: 32vh;
|
|
387
|
+
max-height: 275px;
|
|
388
|
+
min-height: 0;
|
|
389
|
+
}
|
|
390
|
+
.mwnf-dxa-home .mwnf-featured-partners__card {
|
|
391
|
+
height: 100%;
|
|
392
|
+
gap: 20px;
|
|
393
|
+
}
|
|
394
|
+
.mwnf-dxa-home .mwnf-featured-partners__image {
|
|
395
|
+
flex: 0 0 calc(50% - 10px);
|
|
396
|
+
height: 100%;
|
|
397
|
+
}
|
|
398
|
+
.mwnf-dxa-home .mwnf-featured-partners__logo {
|
|
399
|
+
height: 100%;
|
|
400
|
+
}
|
|
401
|
+
.mwnf-dxa-home .mwnf-featured-partners__body {
|
|
402
|
+
flex: 1;
|
|
403
|
+
gap: 0;
|
|
404
|
+
height: 100%;
|
|
405
|
+
}
|
|
406
|
+
.mwnf-dxa-home .mwnf-featured-partners__name {
|
|
407
|
+
font-size: inherit;
|
|
408
|
+
color: inherit;
|
|
409
|
+
}
|
|
410
|
+
.mwnf-dxa-home .mwnf-featured-partners__location {
|
|
411
|
+
font-size: inherit;
|
|
412
|
+
font-style: italic;
|
|
413
|
+
color: inherit;
|
|
414
|
+
}
|
|
415
|
+
.mwnf-dxa-home .mwnf-featured-partners__description {
|
|
416
|
+
height: 6em;
|
|
417
|
+
overflow: hidden;
|
|
418
|
+
margin-top: 20px;
|
|
419
|
+
line-height: 1.2em;
|
|
420
|
+
font-size: inherit;
|
|
421
|
+
}
|
|
422
|
+
.mwnf-dxa-home .mwnf-featured-partners__more {
|
|
423
|
+
margin-top: 5px;
|
|
424
|
+
text-align: end;
|
|
425
|
+
color: #ffffff;
|
|
426
|
+
text-decoration: none;
|
|
427
|
+
}
|
|
428
|
+
.mwnf-dxa-home .mwnf-featured-partners__more + .mwnf-featured-partners__more {
|
|
429
|
+
margin-top: 0;
|
|
430
|
+
}
|
|
431
|
+
.mwnf-dxa-home .mwnf-featured-partners__more:hover {
|
|
432
|
+
text-decoration: underline;
|
|
433
|
+
}
|
|
434
|
+
.mwnf-dxa-home .mwnf-featured-partners__controls {
|
|
435
|
+
justify-content: flex-start;
|
|
436
|
+
width: calc(60% + 20px);
|
|
437
|
+
margin: 20px 0 40px;
|
|
438
|
+
padding: 0;
|
|
439
|
+
gap: 18px;
|
|
440
|
+
}
|
|
441
|
+
.mwnf-dxa-home .mwnf-featured-partners__bullet {
|
|
442
|
+
width: 14px;
|
|
443
|
+
height: 14px;
|
|
444
|
+
background: var(--theme-dark);
|
|
445
|
+
}
|
|
446
|
+
.mwnf-dxa-home .mwnf-featured-partners__bullet--active {
|
|
447
|
+
background: var(--theme-light);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/* The logos strip (Glass's "Set up on the occasion of"). */
|
|
451
|
+
.mwnf-dxa-home-logos {
|
|
452
|
+
display: flex;
|
|
453
|
+
flex-direction: column;
|
|
454
|
+
align-items: center;
|
|
455
|
+
padding: 20px 50px;
|
|
456
|
+
background: #ffffff;
|
|
457
|
+
}
|
|
458
|
+
.mwnf-dxa-home-logos__label {
|
|
459
|
+
font-weight: 700;
|
|
460
|
+
color: var(--theme-dark);
|
|
461
|
+
}
|
|
462
|
+
.mwnf-dxa-home-logos__list {
|
|
463
|
+
display: flex;
|
|
464
|
+
flex-wrap: wrap;
|
|
465
|
+
justify-content: center;
|
|
466
|
+
list-style: none;
|
|
467
|
+
}
|
|
468
|
+
.mwnf-dxa-home-logos__logo {
|
|
469
|
+
display: flex;
|
|
470
|
+
align-items: center;
|
|
471
|
+
justify-content: center;
|
|
472
|
+
width: 90px;
|
|
473
|
+
min-height: 90px;
|
|
474
|
+
margin: 10px 20px;
|
|
475
|
+
}
|
|
476
|
+
.mwnf-dxa-home-logos__logo img {
|
|
477
|
+
max-width: 100%;
|
|
478
|
+
object-fit: contain;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* Visit MWNF Galleries and Other Virtual Museums, side by side on white:
|
|
482
|
+
four tiles named in capitals on a dark band over the picture, and the
|
|
483
|
+
three virtual museums' picture banners, each named in its colour. */
|
|
484
|
+
.mwnf-dxa-home .mwnf-sibling-galleries {
|
|
485
|
+
display: grid;
|
|
486
|
+
grid-template-columns: 75% 25%;
|
|
487
|
+
background: #ffffff;
|
|
488
|
+
}
|
|
489
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__galleries,
|
|
490
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museums {
|
|
491
|
+
display: flex;
|
|
492
|
+
flex-direction: column;
|
|
493
|
+
padding: 20px 30px;
|
|
494
|
+
background: transparent;
|
|
495
|
+
}
|
|
496
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__header {
|
|
497
|
+
margin-bottom: 12px;
|
|
498
|
+
}
|
|
499
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__heading,
|
|
500
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__see-more {
|
|
501
|
+
align-self: flex-start;
|
|
502
|
+
margin-bottom: 12px;
|
|
503
|
+
padding: 2px 0;
|
|
504
|
+
border-bottom: 1px solid var(--theme-medium-dark);
|
|
505
|
+
font-size: 115%;
|
|
506
|
+
font-weight: 400;
|
|
507
|
+
color: var(--theme-medium-dark);
|
|
508
|
+
}
|
|
509
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__header .mwnf-sibling-galleries__heading,
|
|
510
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__see-more {
|
|
511
|
+
margin-bottom: 0;
|
|
512
|
+
}
|
|
513
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__grid {
|
|
514
|
+
gap: 24px;
|
|
515
|
+
}
|
|
516
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__gallery {
|
|
517
|
+
position: relative;
|
|
518
|
+
}
|
|
519
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__image {
|
|
520
|
+
height: auto;
|
|
521
|
+
aspect-ratio: 1;
|
|
522
|
+
margin: 0;
|
|
523
|
+
}
|
|
524
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__name {
|
|
525
|
+
position: absolute;
|
|
526
|
+
inset-inline: 0;
|
|
527
|
+
bottom: 0;
|
|
528
|
+
display: flex;
|
|
529
|
+
align-items: center;
|
|
530
|
+
justify-content: center;
|
|
531
|
+
height: 3em;
|
|
532
|
+
padding: 0 4px;
|
|
533
|
+
background: rgba(0, 0, 0, 0.6);
|
|
534
|
+
color: #ffffff;
|
|
535
|
+
font-weight: 400;
|
|
536
|
+
font-size: inherit;
|
|
537
|
+
text-align: center;
|
|
538
|
+
text-transform: uppercase;
|
|
539
|
+
}
|
|
540
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museums-grid {
|
|
541
|
+
display: flex;
|
|
542
|
+
flex-direction: column;
|
|
543
|
+
justify-content: space-between;
|
|
544
|
+
flex: 1;
|
|
545
|
+
gap: 10px;
|
|
546
|
+
}
|
|
547
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museum {
|
|
548
|
+
position: relative;
|
|
549
|
+
flex: 1;
|
|
550
|
+
}
|
|
551
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museum-image--picture {
|
|
552
|
+
height: 100%;
|
|
553
|
+
background: none;
|
|
554
|
+
}
|
|
555
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museum-image--picture img {
|
|
556
|
+
display: block;
|
|
557
|
+
width: 100%;
|
|
558
|
+
height: 100%;
|
|
559
|
+
object-fit: cover;
|
|
560
|
+
}
|
|
561
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museum-image--picture + .mwnf-sibling-galleries__museum-name {
|
|
562
|
+
position: absolute;
|
|
563
|
+
inset: 0;
|
|
564
|
+
display: flex;
|
|
565
|
+
align-items: center;
|
|
566
|
+
justify-content: center;
|
|
567
|
+
margin: 0;
|
|
568
|
+
font-size: 150%;
|
|
569
|
+
font-weight: 700;
|
|
570
|
+
color: var(--mwnf-museum-bg);
|
|
571
|
+
text-shadow: 0 0 10px var(--mwnf-museum-text);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
@media only screen and (max-width: 974px) {
|
|
575
|
+
.mwnf-dxa-home .mwnf-sibling-galleries {
|
|
576
|
+
display: flex;
|
|
577
|
+
flex-direction: column;
|
|
578
|
+
}
|
|
579
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museums-grid {
|
|
580
|
+
display: grid;
|
|
581
|
+
grid-template-columns: repeat(3, 1fr);
|
|
582
|
+
column-gap: 24px;
|
|
583
|
+
}
|
|
584
|
+
.mwnf-dxa-home .mwnf-featured-partners__heading,
|
|
585
|
+
.mwnf-dxa-home .mwnf-featured-partners__carousel,
|
|
586
|
+
.mwnf-dxa-home .mwnf-featured-partners__controls {
|
|
587
|
+
width: calc(80% + 20px);
|
|
588
|
+
}
|
|
589
|
+
}
|