@undrr/undrr-mangrove 1.8.2 → 2.0.0-alpha.1
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/components/BookCard.js +2 -2
- package/components/BookCard.js.LICENSE.txt +2 -2
- package/components/Breadcrumbs.js +3 -2
- package/components/Checkbox.js +3 -2
- package/components/Chips.js +3 -2
- package/components/CtaButton.js +3 -2
- package/components/EmbedContainer.js +3 -2
- package/components/Footer.js +2 -2
- package/components/Footer.js.LICENSE.txt +1 -1
- package/components/FormErrorSummary.js +3 -2
- package/components/FormGroup.js +3 -2
- package/components/FullWidth.js +3 -2
- package/components/Gallery.js +2 -2
- package/components/Gallery.js.LICENSE.txt +1 -1
- package/components/Hero.js +2 -2
- package/components/Hero.js.LICENSE.txt +1 -1
- package/components/HighlightBox.js +3 -2
- package/components/HorizontalBookCard.js +2 -2
- package/components/HorizontalBookCard.js.LICENSE.txt +2 -2
- package/components/HorizontalCard.js +2 -2
- package/components/HorizontalCard.js.LICENSE.txt +2 -2
- package/components/IconCard.js +2 -2
- package/components/IconCard.js.LICENSE.txt +2 -2
- package/components/Loader.js +3 -2
- package/components/MegaMenu.js +2 -2
- package/components/MegaMenu.js.LICENSE.txt +1 -1
- package/components/PageHeader.js +3 -2
- package/components/Pager.js +2 -2
- package/components/Pager.js.LICENSE.txt +1 -1
- package/components/QuoteHighlight.js +3 -2
- package/components/Radio.js +3 -2
- package/components/ScrollContainer.js +3 -2
- package/components/Select.js +3 -2
- package/components/ShareButtons.js +2 -2
- package/components/ShareButtons.js.LICENSE.txt +1 -1
- package/components/ShowMore.js +3 -2
- package/components/StatsCard.js +2 -2
- package/components/StatsCard.js.LICENSE.txt +11 -1
- package/components/SyndicationSearchWidget.js +2 -2
- package/components/SyndicationSearchWidget.js.LICENSE.txt +1 -1
- package/components/Tab.js +3 -2
- package/components/TextCta.js +2 -2
- package/components/TextCta.js.LICENSE.txt +11 -1
- package/components/TextInput.js +3 -2
- package/components/Textarea.js +3 -2
- package/components/VerticalCard.js +2 -2
- package/components/VerticalCard.js.LICENSE.txt +2 -2
- package/components/hydrate.js +1 -1
- package/css/style-all.css +384 -0
- package/css/style-all.css.map +1 -0
- package/css/style-delta.css +81 -168
- package/css/style-delta.css.map +1 -1
- package/css/style-gutenberg.css +14 -85
- package/css/style-gutenberg.css.map +1 -1
- package/css/style-irp.css +81 -158
- package/css/style-irp.css.map +1 -1
- package/css/style-mcr.css +81 -158
- package/css/style-mcr.css.map +1 -1
- package/css/style-preventionweb.css +81 -158
- package/css/style-preventionweb.css.map +1 -1
- package/css/style.css +79 -150
- package/css/style.css.map +1 -1
- package/package.json +1 -1
- package/scss/Atom/BaseTypography/Abbr/abbr.scss +1 -1
- package/scss/Atom/BaseTypography/Code/code.scss +34 -34
- package/scss/Atom/BaseTypography/Mark/mark.scss +2 -2
- package/scss/Atom/Images/AuthorImage/author-image.scss +8 -8
- package/scss/Atom/Images/ImageCaptionCredit/image-caption-credit.scss +9 -9
- package/scss/Atom/Layout/Container/container.scss +2 -4
- package/scss/Atom/Layout/Grid/grid.scss +15 -15
- package/scss/Atom/Navigation/MenuItems/menu-items.scss +3 -3
- package/scss/Atom/ReachElement/Details/details.scss +7 -7
- package/scss/Atom/Table/table.scss +8 -8
- package/scss/Atom/Tag/tag.scss +32 -32
- package/scss/Components/Boilerplate/boilerplate.scss +7 -7
- package/scss/Components/Breadcrumbs/breadcrumbs.scss +9 -9
- package/scss/Components/Buttons/Chips/chips.scss +8 -8
- package/scss/Components/Buttons/CtaButton/cta-button.scss +43 -16
- package/scss/Components/Buttons/ShareButtons/share-buttons.scss +16 -16
- package/scss/Components/Cards/Card/card.scss +44 -44
- package/scss/Components/Cards/StatsCard/stats-card.scss +32 -32
- package/scss/Components/CookieConsentBanner/cookie-consent-banner.scss +27 -27
- package/scss/Components/ErrorPages/error-pages.scss +7 -7
- package/scss/Components/Footer/footer.scss +12 -12
- package/scss/Components/Forms/FormGroup/form-group.scss +3 -3
- package/scss/Components/Forms/Select/select.scss +1 -1
- package/scss/Components/Forms/TextInput/text-input.scss +1 -1
- package/scss/Components/Forms/_form-base.scss +54 -54
- package/scss/Components/Gallery/gallery.scss +69 -69
- package/scss/Components/Hero/hero.scss +52 -52
- package/scss/Components/HighlightBox/highlight-box.scss +3 -3
- package/scss/Components/MegaMenu/mega-menu.scss +70 -70
- package/scss/Components/OnThisPageNav/on-this-page-nav.scss +30 -30
- package/scss/Components/PageHeader/page-header.scss +7 -7
- package/scss/Components/Pager/pager.scss +43 -43
- package/scss/Components/Pagination/pagination.scss +2 -2
- package/scss/Components/PreviewAccess/preview-access.scss +35 -35
- package/scss/Components/QuoteHighlight/quote-highlight.scss +32 -32
- package/scss/Components/ScrollContainer/scroll-container.scss +16 -16
- package/scss/Components/Snackbar/snackbar.scss +20 -24
- package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +135 -135
- package/scss/Components/Tab/tab.scss +34 -34
- package/scss/Components/TableOfContents/table-of-contents.scss +6 -6
- package/scss/Components/TextCta/text-cta.scss +21 -21
- package/scss/Molecules/ImageCaption/image-caption.scss +16 -16
- package/scss/Molecules/SectionHeader/section-header.scss +1 -1
- package/scss/Utilities/FullWidth/full-width.scss +1 -1
- package/scss/Utilities/Loader/loader.scss +4 -4
- package/scss/assets/scss/_components.scss +0 -1
- package/scss/assets/scss/_foundational.scss +20 -25
- package/scss/assets/scss/_mixins.scss +1 -1
- package/scss/assets/scss/_theme-delta.scss +68 -0
- package/scss/assets/scss/_theme-irp.scss +39 -0
- package/scss/assets/scss/_theme-mcr.scss +56 -0
- package/scss/assets/scss/_theme-preventionweb.scss +37 -0
- package/scss/assets/scss/_utility.scss +112 -112
- package/scss/assets/scss/_variables.scss +289 -348
- package/scss/assets/scss/style-all.scss +19 -0
- package/scss/assets/scss/style-delta.scss +1 -1
- package/scss/assets/scss/style-irp.scss +1 -1
- package/scss/assets/scss/style-mcr.scss +1 -1
- package/scss/assets/scss/style-preventionweb.scss +1 -1
- package/css/style-irp-legacy.css +0 -476
- package/css/style-irp-legacy.css.map +0 -1
- package/css/style-legacy.css +0 -469
- package/css/style-legacy.css.map +0 -1
- package/css/style-mcr-legacy.css +0 -476
- package/css/style-mcr-legacy.css.map +0 -1
- package/css/style-preventionweb-legacy.css +0 -476
- package/css/style-preventionweb-legacy.css.map +0 -1
- package/scss/Components/Forms/_form-legacy.scss +0 -152
- package/scss/assets/scss/_variables-delta.scss +0 -110
- package/scss/assets/scss/_variables-irp.scss +0 -50
- package/scss/assets/scss/_variables-mcr.scss +0 -65
- package/scss/assets/scss/_variables-preventionweb.scss +0 -48
- package/scss/assets/scss/style-irp-legacy.scss +0 -20
- package/scss/assets/scss/style-legacy.scss +0 -20
- package/scss/assets/scss/style-mcr-legacy.scss +0 -20
- package/scss/assets/scss/style-preventionweb-legacy.scss +0 -20
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.mg-mega-wrapper {
|
|
2
2
|
position: relative;
|
|
3
|
-
background:
|
|
3
|
+
background: rgb(var(--mg-color-white));
|
|
4
4
|
box-shadow: 0 2px 3px 0 rgb(51 51 51 / 0.31);
|
|
5
|
-
z-index:
|
|
5
|
+
z-index: var(--mg-z-index-nav);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.mg-mega-topbar {
|
|
9
9
|
width: 100%;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: flex-start;
|
|
12
|
-
z-index:
|
|
12
|
+
z-index: var(--mg-z-index-nav);
|
|
13
13
|
padding: 0;
|
|
14
14
|
max-width: $mg-breakpoint-desktop;
|
|
15
15
|
margin: 0 auto;
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
position: relative;
|
|
39
39
|
width: auto;
|
|
40
40
|
margin-inline-start: auto;
|
|
41
|
-
background:
|
|
41
|
+
background: rgb(var(--mg-color-white));
|
|
42
42
|
flex-shrink: 0;
|
|
43
43
|
box-shadow: -3px 0 6px -2px rgb(0 0 0 / 0.15);
|
|
44
44
|
|
|
45
45
|
&:has(.mg-icon-angle-circled-left) {
|
|
46
|
-
background:
|
|
46
|
+
background: rgb(var(--mg-color-white));
|
|
47
47
|
box-shadow: -3px 0 6px -2px rgb(0 0 0 / 0.15);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
min-width: 0; // allow shrinking below intrinsic size
|
|
66
66
|
display: flex;
|
|
67
67
|
align-items: center;
|
|
68
|
-
padding:
|
|
68
|
+
padding: var(--mg-spacing-100) var(--mg-spacing-150);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
// Logo image
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
font-size: $mg-font-size-300;
|
|
113
|
-
color:
|
|
113
|
+
color: rgb(var(--mg-color-interactive));
|
|
114
114
|
font-weight: bold;
|
|
115
115
|
list-style: none;
|
|
116
116
|
padding: 0;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
> a,
|
|
124
124
|
> button {
|
|
125
|
-
padding:
|
|
125
|
+
padding: var(--mg-spacing-150);
|
|
126
126
|
display: block;
|
|
127
127
|
cursor: pointer;
|
|
128
128
|
line-height: mg-rem(18); // normalization
|
|
@@ -135,16 +135,16 @@
|
|
|
135
135
|
|
|
136
136
|
@media screen and (min-width: $mg-breakpoint-tablet) {
|
|
137
137
|
&--active {
|
|
138
|
-
background:
|
|
138
|
+
background: rgb(var(--mg-color-blue-900) / 0.2);
|
|
139
139
|
|
|
140
140
|
a,
|
|
141
141
|
.mg-mega-topbar__item-link {
|
|
142
|
-
color:
|
|
142
|
+
color: rgb(var(--mg-color-interactive));
|
|
143
143
|
text-decoration: none;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
a.mg-button-primary {
|
|
147
|
-
color:
|
|
147
|
+
color: rgb(var(--mg-color-white));
|
|
148
148
|
text-decoration: none;
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
|
|
158
158
|
&__item-link {
|
|
159
159
|
font-family: $mg-font-family-headings;
|
|
160
|
-
color:
|
|
160
|
+
color: rgb(var(--mg-color-interactive));
|
|
161
161
|
background: none;
|
|
162
162
|
border: none;
|
|
163
163
|
font-weight: bold;
|
|
@@ -189,9 +189,9 @@
|
|
|
189
189
|
top: 1px;
|
|
190
190
|
align-items: flex-start;
|
|
191
191
|
justify-content: start;
|
|
192
|
-
background-color:
|
|
192
|
+
background-color: rgb(var(--mg-color-neutral-0) / 0.7);
|
|
193
193
|
backdrop-filter: blur(10px);
|
|
194
|
-
border-radius:
|
|
194
|
+
border-radius: var(--mg-radius-tab);
|
|
195
195
|
box-shadow: -1px 5px 10px -1px rgb(0 0 0 / 0.25);
|
|
196
196
|
inset-inline-start: 0;
|
|
197
197
|
z-index: 1; // submenu floats above page content within mega-menu stacking context
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
&__left {
|
|
222
222
|
height: 100%;
|
|
223
223
|
width: 100%; // mobile-first
|
|
224
|
-
background-color:
|
|
224
|
+
background-color: rgb(var(--mg-color-neutral-0) / 0.8);
|
|
225
225
|
|
|
226
226
|
@media screen and (min-width: $mg-breakpoint-tablet) {
|
|
227
227
|
flex-basis: 33%;
|
|
@@ -231,12 +231,12 @@
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
&__banner {
|
|
234
|
-
padding:
|
|
234
|
+
padding: var(--mg-spacing-250);
|
|
235
235
|
header {
|
|
236
236
|
font-family: $mg-font-family-headings;
|
|
237
237
|
font-size: $mg-font-size-500;
|
|
238
238
|
font-weight: bold;
|
|
239
|
-
padding-bottom:
|
|
239
|
+
padding-bottom: var(--mg-spacing-100);
|
|
240
240
|
}
|
|
241
241
|
p {
|
|
242
242
|
a {
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
box-shadow: inset 0 5px 5px -3px rgb(0 0 0 / 0.2);
|
|
264
264
|
|
|
265
265
|
// RTL-friendly border
|
|
266
|
-
border-inline-end: 2px solid
|
|
266
|
+
border-inline-end: 2px solid rgb(var(--mg-color-neutral-800) / 0.2);
|
|
267
267
|
|
|
268
268
|
// Mobile-first: Hide section list on mobile
|
|
269
269
|
.mg-mega-content__section-list {
|
|
@@ -276,12 +276,12 @@
|
|
|
276
276
|
|
|
277
277
|
.mg-mega-content__section-list-link:hover,
|
|
278
278
|
.mg-mega-content__section-list-link {
|
|
279
|
-
color:
|
|
279
|
+
color: rgb(var(--mg-color-interactive-active));
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.mg-mega-content__section-list {
|
|
284
|
-
padding-inline:
|
|
284
|
+
padding-inline: var(--mg-spacing-200);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.mg-mega-content__section-list-item {
|
|
@@ -296,8 +296,8 @@
|
|
|
296
296
|
// RTL-friendly: Use logical properties for better improvements
|
|
297
297
|
letter-spacing: 0.2px;
|
|
298
298
|
position: relative;
|
|
299
|
-
padding:
|
|
300
|
-
margin-inline:
|
|
299
|
+
padding: var(--mg-spacing-150) var(--mg-spacing-250);
|
|
300
|
+
margin-inline: calc(-1 * var(--mg-spacing-200)); // extend hit area to both edges
|
|
301
301
|
font-weight: 600;
|
|
302
302
|
transition:
|
|
303
303
|
background-color 150ms ease,
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
|
|
307
307
|
&:hover,
|
|
308
308
|
&:focus-visible {
|
|
309
|
-
background:
|
|
309
|
+
background: rgb(var(--mg-color-blue-900) / 0.15);
|
|
310
310
|
text-decoration: underline;
|
|
311
311
|
}
|
|
312
312
|
|
|
@@ -317,8 +317,8 @@
|
|
|
317
317
|
position: absolute;
|
|
318
318
|
font-size: mg-rem(30);
|
|
319
319
|
inset-inline-end: auto;
|
|
320
|
-
padding-inline-start:
|
|
321
|
-
margin-inline-end:
|
|
320
|
+
padding-inline-start: var(--mg-spacing-150);
|
|
321
|
+
margin-inline-end: var(--mg-spacing-150);
|
|
322
322
|
transition:
|
|
323
323
|
transform 150ms ease,
|
|
324
324
|
inset-inline-start 200ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
@@ -328,11 +328,11 @@
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
&--active {
|
|
331
|
-
padding:
|
|
332
|
-
margin-inline-start:
|
|
333
|
-
border-inline-start: 4px solid
|
|
331
|
+
padding: var(--mg-spacing-150) var(--mg-spacing-250);
|
|
332
|
+
margin-inline-start: calc(-1 * var(--mg-spacing-200));
|
|
333
|
+
border-inline-start: 4px solid rgb(var(--mg-color-interactive)); // RTL-friendly vertical rule
|
|
334
334
|
text-decoration: underline;
|
|
335
|
-
background:
|
|
335
|
+
background: rgb(var(--mg-color-blue-900) / 0.15);
|
|
336
336
|
|
|
337
337
|
&::after {
|
|
338
338
|
opacity: 1;
|
|
@@ -353,18 +353,18 @@
|
|
|
353
353
|
@keyframes mg-mega-tab-pulse {
|
|
354
354
|
0% {
|
|
355
355
|
box-shadow:
|
|
356
|
-
inset 4px 0 0 0
|
|
357
|
-
0 0 0 0
|
|
356
|
+
inset 4px 0 0 0 rgb(var(--mg-color-button)),
|
|
357
|
+
0 0 0 0 rgb(var(--mg-color-blue-900) / 0);
|
|
358
358
|
}
|
|
359
359
|
60% {
|
|
360
360
|
box-shadow:
|
|
361
|
-
inset 4px 0 0 0
|
|
362
|
-
0 0 0 8px
|
|
361
|
+
inset 4px 0 0 0 rgb(var(--mg-color-button)),
|
|
362
|
+
0 0 0 8px rgb(var(--mg-color-blue-900) / 0.12);
|
|
363
363
|
}
|
|
364
364
|
100% {
|
|
365
365
|
box-shadow:
|
|
366
|
-
inset 4px 0 0 0
|
|
367
|
-
0 0 0 0
|
|
366
|
+
inset 4px 0 0 0 rgb(var(--mg-color-button)),
|
|
367
|
+
0 0 0 0 rgb(var(--mg-color-blue-900) / 0);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
|
|
391
391
|
/* Stronger keyboard focus ring for accessibility */
|
|
392
392
|
.mg-mega-content__section-list-link:focus-visible {
|
|
393
|
-
outline: 2px solid
|
|
393
|
+
outline: 2px solid rgb(var(--mg-color-white));
|
|
394
394
|
outline-offset: -2px;
|
|
395
395
|
}
|
|
396
396
|
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
|
|
450
450
|
ul {
|
|
451
451
|
flex: 1;
|
|
452
|
-
padding:
|
|
452
|
+
padding: var(--mg-spacing-150);
|
|
453
453
|
list-style: none;
|
|
454
454
|
|
|
455
455
|
// Multicolumn layout only on desktop. This is primarily a Safari fix:
|
|
@@ -466,14 +466,14 @@
|
|
|
466
466
|
// 300px was too wide — 3 columns never formed within the normal
|
|
467
467
|
// constrained layout. See https://github.com/unisdr/undrr-mangrove/issues/970.
|
|
468
468
|
column-width: 280px;
|
|
469
|
-
column-gap:
|
|
469
|
+
column-gap: var(--mg-spacing-200);
|
|
470
470
|
column-fill: balance;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
// nested menus - RTL-friendly
|
|
474
474
|
ul {
|
|
475
475
|
padding-block: 0;
|
|
476
|
-
padding-inline:
|
|
476
|
+
padding-inline: var(--mg-spacing-150);
|
|
477
477
|
opacity: 0.8;
|
|
478
478
|
break-inside: avoid;
|
|
479
479
|
}
|
|
@@ -485,15 +485,15 @@
|
|
|
485
485
|
|
|
486
486
|
a {
|
|
487
487
|
display: block;
|
|
488
|
-
padding:
|
|
488
|
+
padding: var(--mg-spacing-50);
|
|
489
489
|
overflow: hidden;
|
|
490
490
|
white-space: wrap;
|
|
491
491
|
text-overflow: clip;
|
|
492
|
-
color:
|
|
492
|
+
color: rgb(var(--mg-color-black));
|
|
493
493
|
font-weight: bold;
|
|
494
494
|
|
|
495
495
|
&:hover {
|
|
496
|
-
color:
|
|
496
|
+
color: rgb(var(--mg-color-black));
|
|
497
497
|
text-decoration: underline;
|
|
498
498
|
}
|
|
499
499
|
}
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
0% {
|
|
507
507
|
background: linear-gradient(
|
|
508
508
|
to bottom,
|
|
509
|
-
|
|
509
|
+
rgb(var(--mg-color-blue-900) / 0.06) 0%,
|
|
510
510
|
transparent 100%
|
|
511
511
|
);
|
|
512
512
|
}
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
.mg-icon-button {
|
|
531
|
-
padding:
|
|
531
|
+
padding: var(--mg-spacing-100);
|
|
532
532
|
background-color: transparent;
|
|
533
533
|
border: none;
|
|
534
534
|
cursor: pointer;
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
justify-content: center;
|
|
538
538
|
|
|
539
539
|
&:hover {
|
|
540
|
-
background-color:
|
|
540
|
+
background-color: rgb(var(--mg-color-interactive-active));
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
|
|
@@ -554,17 +554,17 @@
|
|
|
554
554
|
|
|
555
555
|
ol li {
|
|
556
556
|
list-style: none;
|
|
557
|
-
padding-block:
|
|
558
|
-
padding-inline-start:
|
|
557
|
+
padding-block: var(--mg-spacing-50);
|
|
558
|
+
padding-inline-start: var(--mg-spacing-300); // RTL-friendly
|
|
559
559
|
margin: 0;
|
|
560
560
|
|
|
561
561
|
a {
|
|
562
|
-
color:
|
|
562
|
+
color: rgb(var(--mg-color-white));
|
|
563
563
|
text-decoration: none;
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
&:hover {
|
|
567
|
-
background:
|
|
567
|
+
background: rgb(var(--mg-color-interactive-active));
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
}
|
|
@@ -574,15 +574,15 @@
|
|
|
574
574
|
display: flex;
|
|
575
575
|
align-items: center;
|
|
576
576
|
justify-content: space-between;
|
|
577
|
-
color:
|
|
577
|
+
color: rgb(var(--mg-color-white));
|
|
578
578
|
cursor: pointer;
|
|
579
|
-
padding:
|
|
579
|
+
padding: var(--mg-spacing-100) var(--mg-spacing-250);
|
|
580
580
|
|
|
581
581
|
// Mobile-first: Start with mobile styles
|
|
582
|
-
background:
|
|
582
|
+
background: rgb(var(--mg-color-interactive));
|
|
583
583
|
width: 100%;
|
|
584
584
|
border: none;
|
|
585
|
-
border-block-end: 1px solid
|
|
585
|
+
border-block-end: 1px solid rgb(var(--mg-color-white)); // RTL-friendly
|
|
586
586
|
|
|
587
587
|
// Desktop: Remove mobile-specific styles
|
|
588
588
|
@media screen and (min-width: $mg-breakpoint-tablet) {
|
|
@@ -591,8 +591,8 @@
|
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
&:hover {
|
|
594
|
-
background:
|
|
595
|
-
color:
|
|
594
|
+
background: rgb(var(--mg-color-interactive-active));
|
|
595
|
+
color: rgb(var(--mg-color-white));
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
&:focus-visible {
|
|
@@ -624,8 +624,8 @@
|
|
|
624
624
|
.mg-mega-sidebar {
|
|
625
625
|
position: absolute;
|
|
626
626
|
overflow: auto;
|
|
627
|
-
background-color:
|
|
628
|
-
z-index:
|
|
627
|
+
background-color: rgb(var(--mg-color-interactive-active));
|
|
628
|
+
z-index: var(--mg-z-index-nav);
|
|
629
629
|
|
|
630
630
|
// Mobile-first: Full-width mobile sidebar
|
|
631
631
|
width: 100%;
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
.mg-mega-sidebar__list {
|
|
662
|
-
background:
|
|
662
|
+
background: rgb(var(--mg-color-white));
|
|
663
663
|
display: flex;
|
|
664
664
|
flex-direction: column;
|
|
665
665
|
padding: 0;
|
|
@@ -673,12 +673,12 @@
|
|
|
673
673
|
display: flex;
|
|
674
674
|
align-items: center;
|
|
675
675
|
justify-content: space-between;
|
|
676
|
-
padding:
|
|
677
|
-
color:
|
|
676
|
+
padding: var(--mg-spacing-150) var(--mg-spacing-300);
|
|
677
|
+
color: rgb(var(--mg-color-white));
|
|
678
678
|
cursor: pointer;
|
|
679
679
|
|
|
680
680
|
&:hover {
|
|
681
|
-
background:
|
|
681
|
+
background: rgb(var(--mg-color-interactive-active));
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
|
|
@@ -687,16 +687,16 @@
|
|
|
687
687
|
position: absolute;
|
|
688
688
|
inset-inline-end: 0; // RTL-friendly
|
|
689
689
|
background: rgb(0 0 0 / 0); // we let the menu items show through to advertise the contents
|
|
690
|
-
color:
|
|
690
|
+
color: rgb(var(--mg-color-interactive));
|
|
691
691
|
font-size: mg-rem(20);
|
|
692
692
|
width: 100vw;
|
|
693
693
|
height: 100%;
|
|
694
|
-
padding:
|
|
694
|
+
padding: var(--mg-spacing-100);
|
|
695
695
|
border: none;
|
|
696
696
|
cursor: pointer;
|
|
697
697
|
align-items: start;
|
|
698
698
|
justify-content: start;
|
|
699
|
-
z-index:
|
|
699
|
+
z-index: var(--mg-z-index-nav-toggle);
|
|
700
700
|
display: flex;
|
|
701
701
|
|
|
702
702
|
// Hide mobile button on desktop
|
|
@@ -705,8 +705,8 @@
|
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
&:hover {
|
|
708
|
-
// background:
|
|
709
|
-
color:
|
|
708
|
+
// background: rgb(var(--mg-color-interactive-active));
|
|
709
|
+
color: rgb(var(--mg-color-blue-900) / 0.9);
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
.mg-mega-topbar {
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
|
|
716
716
|
&:has(.mg-icon-angle-circled-left) {
|
|
717
717
|
background: rgb(255 255 255 / 0.8);
|
|
718
|
-
color:
|
|
718
|
+
color: rgb(var(--mg-color-interactive-active));
|
|
719
719
|
box-shadow: 0 0 4px rgb(0 0 0 / 0.2);
|
|
720
720
|
}
|
|
721
721
|
}
|
|
@@ -727,10 +727,10 @@
|
|
|
727
727
|
position: absolute;
|
|
728
728
|
top: 0;
|
|
729
729
|
inset-inline-start: 0; // RTL-friendly
|
|
730
|
-
z-index:
|
|
730
|
+
z-index: calc(var(--mg-z-index-nav) - 1);
|
|
731
731
|
display: block;
|
|
732
732
|
overflow: auto;
|
|
733
|
-
background-color:
|
|
733
|
+
background-color: rgb(var(--mg-color-interactive));
|
|
734
734
|
max-height: 80vh;
|
|
735
735
|
height: 80vh;
|
|
736
736
|
transform: translateY(-100vh);
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
border: none;
|
|
758
758
|
padding: 0;
|
|
759
759
|
cursor: pointer;
|
|
760
|
-
z-index:
|
|
760
|
+
z-index: calc(var(--mg-z-index-nav) - 1);
|
|
761
761
|
|
|
762
762
|
// Desktop: Hide
|
|
763
763
|
@media screen and (min-width: $mg-breakpoint-tablet) {
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
// Set this in your theme CSS to dock below a sticky MegaMenu or header.
|
|
10
10
|
position: sticky;
|
|
11
11
|
top: var(--mg-on-this-page-nav-offset, 0);
|
|
12
|
-
z-index:
|
|
12
|
+
z-index: var(--mg-z-index-sticky); // above MegaMenu, below PageHeader
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
|
-
background:
|
|
15
|
+
background: rgb(var(--mg-color-neutral-0));
|
|
16
16
|
box-shadow: 0 2px 3px 0 rgb(51 51 51 / 0.31);
|
|
17
|
-
padding: 0
|
|
17
|
+
padding: 0 var(--mg-container-spacer);
|
|
18
18
|
|
|
19
19
|
// Full-bleed: break out of any parent container to span the viewport.
|
|
20
20
|
// Works even when nested inside an mg-container or Drupal content column.
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
@media screen and (height <= 400px) {
|
|
28
28
|
position: static;
|
|
29
29
|
box-shadow: none;
|
|
30
|
-
border-bottom: 1px solid
|
|
30
|
+
border-bottom: 1px solid rgb(var(--mg-color-neutral-50));
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@media screen and (min-width: $mg-breakpoint-tablet) {
|
|
34
|
-
padding: 0
|
|
34
|
+
padding: 0 var(--mg-spacing-200);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&--hidden {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
// Fade gradient on the trailing edge signals more content is scrollable.
|
|
52
52
|
// Uses mask-image so the fade is transparent (works on any background).
|
|
53
53
|
// padding-inline-end gives the fade space so text isn't masked mid-character.
|
|
54
|
-
padding-inline-end:
|
|
55
|
-
-webkit-mask-image: linear-gradient(to right, #000 calc(100% -
|
|
56
|
-
mask-image: linear-gradient(to right, #000 calc(100% -
|
|
54
|
+
padding-inline-end: var(--mg-spacing-300);
|
|
55
|
+
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--mg-spacing-500)), transparent);
|
|
56
|
+
mask-image: linear-gradient(to right, #000 calc(100% - var(--mg-spacing-500)), transparent);
|
|
57
57
|
|
|
58
58
|
// Hide scrollbar but keep functional
|
|
59
59
|
scrollbar-width: none;
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
// When content is scrolled left, also fade the leading edge so users know
|
|
66
66
|
// items are hidden behind the scroll button on that side.
|
|
67
67
|
.mg-on-this-page-nav--has-left-overflow & {
|
|
68
|
-
padding-inline-start:
|
|
69
|
-
-webkit-mask-image: linear-gradient(to right, transparent, #000
|
|
70
|
-
mask-image: linear-gradient(to right, transparent, #000
|
|
68
|
+
padding-inline-start: var(--mg-spacing-300);
|
|
69
|
+
-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--mg-spacing-500), #000 calc(100% - var(--mg-spacing-500)), transparent);
|
|
70
|
+
mask-image: linear-gradient(to right, transparent, #000 var(--mg-spacing-500), #000 calc(100% - var(--mg-spacing-500)), transparent);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
|
|
79
79
|
&__link {
|
|
80
80
|
display: block;
|
|
81
|
-
padding:
|
|
81
|
+
padding: var(--mg-spacing-150) var(--mg-spacing-150);
|
|
82
82
|
font-family: $mg-font-family-headings;
|
|
83
83
|
font-size: $mg-font-size-300;
|
|
84
84
|
font-weight: 600;
|
|
85
|
-
color:
|
|
85
|
+
color: rgb(var(--mg-color-neutral-600));
|
|
86
86
|
text-decoration: none;
|
|
87
87
|
white-space: nowrap;
|
|
88
88
|
border-bottom: 3px solid transparent;
|
|
@@ -93,33 +93,33 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&:hover {
|
|
96
|
-
color:
|
|
97
|
-
border-bottom-color:
|
|
96
|
+
color: rgb(var(--mg-color-interactive-active));
|
|
97
|
+
border-bottom-color: rgb(var(--mg-color-interactive-active));
|
|
98
98
|
text-decoration: none;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&:focus-visible {
|
|
102
|
-
outline: 2px solid
|
|
102
|
+
outline: 2px solid rgb(var(--mg-color-interactive));
|
|
103
103
|
outline-offset: -2px;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// Active state and active+hover — active wins over hover
|
|
107
107
|
&--active,
|
|
108
108
|
&--active:hover {
|
|
109
|
-
color:
|
|
110
|
-
border-bottom-color:
|
|
109
|
+
color: rgb(var(--mg-color-interactive));
|
|
110
|
+
border-bottom-color: rgb(var(--mg-color-interactive));
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
&__cta {
|
|
115
115
|
flex-shrink: 0;
|
|
116
116
|
margin-inline-start: auto;
|
|
117
|
-
padding:
|
|
117
|
+
padding: var(--mg-spacing-150) var(--mg-spacing-150);
|
|
118
118
|
font-family: $mg-font-family-headings;
|
|
119
119
|
font-size: $mg-font-size-300;
|
|
120
120
|
font-weight: 600;
|
|
121
|
-
color:
|
|
122
|
-
background:
|
|
121
|
+
color: rgb(var(--mg-color-neutral-0));
|
|
122
|
+
background: rgb(var(--mg-color-interactive));
|
|
123
123
|
text-decoration: none;
|
|
124
124
|
white-space: nowrap;
|
|
125
125
|
border: 0;
|
|
@@ -131,13 +131,13 @@
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&:hover {
|
|
134
|
-
background:
|
|
134
|
+
background: rgb(var(--mg-color-interactive-active));
|
|
135
135
|
text-decoration: none;
|
|
136
|
-
color:
|
|
136
|
+
color: rgb(var(--mg-color-neutral-0));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&:focus-visible {
|
|
140
|
-
outline: 2px solid
|
|
140
|
+
outline: 2px solid rgb(var(--mg-color-interactive));
|
|
141
141
|
outline-offset: 2px;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -150,12 +150,12 @@
|
|
|
150
150
|
display: flex;
|
|
151
151
|
align-items: center;
|
|
152
152
|
justify-content: center;
|
|
153
|
-
min-width:
|
|
154
|
-
padding: 0
|
|
153
|
+
min-width: var(--mg-spacing-250); // WCAG 2.5.8 minimum touch target (24px)
|
|
154
|
+
padding: 0 var(--mg-spacing-150);
|
|
155
155
|
border: 0;
|
|
156
|
-
background:
|
|
156
|
+
background: rgb(var(--mg-color-neutral-0));
|
|
157
157
|
cursor: pointer;
|
|
158
|
-
color:
|
|
158
|
+
color: rgb(var(--mg-color-neutral-600));
|
|
159
159
|
transition: color 0.2s ease;
|
|
160
160
|
|
|
161
161
|
// display:flex above would otherwise override the UA [hidden]{display:none} rule
|
|
@@ -169,11 +169,11 @@
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
&:hover {
|
|
172
|
-
color:
|
|
172
|
+
color: rgb(var(--mg-color-interactive-active));
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
&:focus-visible {
|
|
176
|
-
outline: 2px solid
|
|
176
|
+
outline: 2px solid rgb(var(--mg-color-interactive));
|
|
177
177
|
outline-offset: -2px;
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
url(//www.undrr.org/themes/custom/undrr_common/images/toolbar-background.png)
|
|
13
13
|
no-repeat center center;
|
|
14
14
|
box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.3);
|
|
15
|
-
z-index:
|
|
15
|
+
z-index: var(--mg-z-index-header);
|
|
16
16
|
|
|
17
17
|
@media (width >= $mg-breakpoint-tablet) {
|
|
18
18
|
.mg-page-header__container {
|
|
@@ -110,19 +110,19 @@
|
|
|
110
110
|
display: inline-block;
|
|
111
111
|
|
|
112
112
|
&:nth-child(1) {
|
|
113
|
-
background:
|
|
113
|
+
background: var(--sendai-red-900);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&:nth-child(2) {
|
|
117
|
-
background:
|
|
117
|
+
background: var(--sendai-purple-900);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
&:nth-child(3) {
|
|
121
|
-
background:
|
|
121
|
+
background: var(--sendai-orange-900);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
&:nth-child(4) {
|
|
125
|
-
background:
|
|
125
|
+
background: var(--sendai-turquoise-900);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
display: inline-block;
|
|
133
133
|
font-size: $mg-font-tag;
|
|
134
134
|
font-weight: bold;
|
|
135
|
-
margin-right:
|
|
136
|
-
padding:
|
|
135
|
+
margin-right: var(--mg-spacing-25);
|
|
136
|
+
padding: var(--mg-spacing-25) 0;
|
|
137
137
|
|
|
138
138
|
@media (max-width: $mg-breakpoint-tablet) {
|
|
139
139
|
display: none;
|