@undrr/undrr-mangrove 1.3.3 → 1.4.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/README.md +33 -29
- package/components/BarChart.js +2 -2
- package/components/BookCard.js +6 -0
- package/components/BookCard.js.LICENSE.txt +11 -0
- package/components/Breadcrumbs.js +6 -0
- package/components/Breadcrumbs.js.LICENSE.txt +9 -0
- package/components/Checkbox.js +6 -0
- package/components/Checkbox.js.LICENSE.txt +9 -0
- package/components/Chips.js +6 -0
- package/components/Chips.js.LICENSE.txt +9 -0
- package/components/CtaButton.js +6 -0
- package/components/CtaButton.js.LICENSE.txt +9 -0
- package/components/EmbedContainer.js +6 -0
- package/components/EmbedContainer.js.LICENSE.txt +9 -0
- package/components/Fetcher.js +2 -2
- package/components/Footer.js +6 -0
- package/components/Footer.js.LICENSE.txt +9 -0
- package/components/FormErrorSummary.js +6 -0
- package/components/FormErrorSummary.js.LICENSE.txt +9 -0
- package/components/FormGroup.js +6 -0
- package/components/FormGroup.js.LICENSE.txt +9 -0
- package/components/FullWidth.js +6 -0
- package/components/FullWidth.js.LICENSE.txt +9 -0
- package/components/Gallery.js +1 -1
- package/components/Hero.js +6 -0
- package/components/Hero.js.LICENSE.txt +9 -0
- package/components/HighlightBox.js +6 -0
- package/components/HighlightBox.js.LICENSE.txt +9 -0
- package/components/HorizontalBookCard.js +6 -0
- package/components/HorizontalBookCard.js.LICENSE.txt +11 -0
- package/components/HorizontalCard.js +6 -0
- package/components/HorizontalCard.js.LICENSE.txt +11 -0
- package/components/IconCard.js +2 -2
- package/components/Loader.js +6 -0
- package/components/Loader.js.LICENSE.txt +9 -0
- package/components/MapComponent.js +2 -2
- package/components/MegaMenu.js +2 -2
- package/components/PageHeader.js +6 -0
- package/components/PageHeader.js.LICENSE.txt +9 -0
- package/components/Pager.js +2 -2
- package/components/QuoteHighlight.js +1 -1
- package/components/Radio.js +6 -0
- package/components/Radio.js.LICENSE.txt +9 -0
- package/components/ScrollContainer.js +1 -1
- package/components/Select.js +6 -0
- package/components/Select.js.LICENSE.txt +9 -0
- package/components/ShareButtons.js +1 -1
- package/components/ShowMore.js +6 -0
- package/components/ShowMore.js.LICENSE.txt +9 -0
- package/components/StatsCard.js +2 -2
- package/components/SyndicationSearchWidget.js +2 -2
- package/components/Tab.js +6 -0
- package/components/Tab.js.LICENSE.txt +9 -0
- package/components/TextCta.js +6 -0
- package/components/TextCta.js.LICENSE.txt +11 -0
- package/components/TextInput.js +6 -0
- package/components/TextInput.js.LICENSE.txt +9 -0
- package/components/Textarea.js +6 -0
- package/components/Textarea.js.LICENSE.txt +9 -0
- package/components/VerticalCard.js +6 -0
- package/components/VerticalCard.js.LICENSE.txt +11 -0
- package/components/hydrate.js +1 -1
- package/css/style-delta.css +467 -0
- package/css/style-delta.css.map +1 -0
- package/css/style-gutenberg.css +21 -18
- package/css/style-gutenberg.css.map +1 -1
- package/css/style-irp-legacy.css +472 -0
- package/css/style-irp-legacy.css.map +1 -0
- package/css/style-irp.css +99 -103
- package/css/style-irp.css.map +1 -1
- package/css/style-legacy.css +465 -0
- package/css/style-legacy.css.map +1 -0
- package/css/style-mcr-legacy.css +472 -0
- package/css/style-mcr-legacy.css.map +1 -0
- package/css/style-mcr.css +99 -103
- package/css/style-mcr.css.map +1 -1
- package/css/style-preventionweb-legacy.css +472 -0
- package/css/style-preventionweb-legacy.css.map +1 -0
- package/css/style-preventionweb.css +99 -103
- package/css/style-preventionweb.css.map +1 -1
- package/css/style.css +99 -103
- package/css/style.css.map +1 -1
- package/error-pages/401.html +10 -11
- package/error-pages/403.html +11 -12
- package/error-pages/404.html +13 -14
- package/error-pages/429.html +12 -13
- package/error-pages/500.html +10 -11
- package/error-pages/502.html +12 -13
- package/error-pages/503.html +12 -13
- package/error-pages/504.html +10 -11
- package/error-pages/5xx.html +10 -11
- package/error-pages/challenge.html +12 -13
- package/error-pages/managed-challenge.html +12 -13
- package/js/README.md +57 -0
- package/js/__tests__/show-more.test.js +76 -0
- package/js/__tests__/table-of-contents.test.js +198 -0
- package/js/on-this-page-nav.js +531 -0
- package/js/show-more.js +24 -3
- package/js/table-of-contents.js +168 -0
- package/js/tabs.js +445 -83
- package/package.json +1 -1
- package/scss/Atom/BaseTypography/Blockquote/blockquote.scss +1 -8
- package/scss/Atom/BaseTypography/Cite/cite.scss +2 -2
- package/scss/Atom/Images/AuthorImage/author-image.scss +4 -4
- package/scss/Atom/Images/ImageCaptionCredit/image-caption-credit.scss +24 -28
- package/scss/Atom/Images/ImageCredit/image-credit.scss +1 -1
- package/scss/Atom/Layout/Container/container.scss +2 -2
- package/scss/Atom/Layout/Grid/grid.scss +1 -1
- package/scss/Atom/ReachElement/Details/details.scss +6 -6
- package/scss/Atom/ReachElement/Figcaption/figcaption.scss +1 -1
- package/scss/Atom/Table/table.scss +0 -8
- package/scss/Components/Boilerplate/boilerplate.scss +2 -2
- package/scss/Components/Breadcrumbs/breadcrumbs.scss +2 -9
- package/scss/Components/Buttons/Chips/chips.scss +5 -19
- package/scss/Components/Buttons/CtaButton/buttons.scss +3 -124
- package/scss/Components/Buttons/CtaButton/cta-button.scss +99 -0
- package/scss/Components/Buttons/ShareButtons/share-buttons.scss +2 -2
- package/scss/Components/Cards/Card/card.scss +45 -6
- package/scss/Components/Cards/StatsCard/stats-card.scss +2 -2
- package/scss/Components/ErrorPages/error-pages.scss +12 -12
- package/scss/Components/Footer/footer.scss +72 -4
- package/scss/Components/Forms/Select/select.scss +2 -2
- package/scss/Components/Forms/_form-base.scss +5 -5
- package/scss/Components/Forms/_form-legacy.scss +1 -1
- package/scss/Components/Gallery/gallery.scss +7 -7
- package/scss/Components/Hero/hero.scss +43 -23
- package/scss/Components/HighlightBox/highlight-box.scss +5 -5
- package/scss/Components/MegaMenu/mega-menu.scss +750 -0
- package/scss/Components/MegaMenu/megamenu.scss +3 -733
- package/scss/Components/OnThisPageNav/on-this-page-nav.scss +206 -0
- package/scss/Components/PageHeader/page-header.scss +5 -5
- package/scss/Components/Pagination/pagination.scss +2 -2
- package/scss/Components/ScrollContainer/scroll-container.scss +1 -1
- package/scss/Components/Snackbar/snackbar.scss +1 -1
- package/scss/Components/SyndicationSearchWidget/SyndicationSearchWidget.scss +3 -1480
- package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +1515 -0
- package/scss/Components/Tab/tab.scss +68 -9
- package/scss/Components/TableOfContents/TableOfContents.scss +3 -17
- package/scss/Components/TableOfContents/table-of-contents.scss +17 -0
- package/scss/Components/TextCta/text-cta.scss +139 -0
- package/scss/Components/TextCta/textcta.scss +3 -27
- package/scss/Molecules/ImageCaption/image-caption.scss +6 -16
- package/scss/Molecules/SectionHeader/section-header.scss +8 -0
- package/scss/Molecules/SectionHeader/sectionheader.scss +3 -8
- package/scss/Utilities/FullWidth/FullWidth.scss +3 -23
- package/scss/Utilities/FullWidth/full-width.scss +23 -0
- package/scss/Utilities/Loader/loader.scss +1 -1
- package/scss/Utilities/ShowMore/ShowMore.scss +3 -26
- package/scss/Utilities/ShowMore/show-more.scss +26 -0
- package/scss/assets/scss/_components.scss +15 -9
- package/scss/assets/scss/_foundational.scss +13 -7
- package/scss/assets/scss/_mixins.scss +9 -314
- package/scss/assets/scss/_utility.scss +19 -71
- package/scss/assets/scss/_variables-delta.scss +110 -0
- package/scss/assets/scss/_variables-irp.scss +1 -1
- package/scss/assets/scss/_variables-mcr.scss +1 -1
- package/scss/assets/scss/_variables-preventionweb.scss +1 -1
- package/scss/assets/scss/_variables.scss +101 -34
- package/scss/assets/scss/style-delta.scss +8 -0
- package/scss/assets/scss/style-gutenberg.scss +2 -2
- package/scss/assets/scss/style-irp-legacy.scss +20 -0
- package/scss/assets/scss/style-legacy.scss +20 -0
- package/scss/assets/scss/style-mcr-legacy.scss +20 -0
- package/scss/assets/scss/style-preventionweb-legacy.scss +20 -0
- package/scss/Components/BlockquoteComponent/blockquotecomp.scss +0 -31
- package/scss/Components/Buttons/CtaLink/cta-link.scss +0 -61
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
content: "";
|
|
63
63
|
position: absolute;
|
|
64
64
|
inset: 0;
|
|
65
|
-
z-index: 1;
|
|
65
|
+
z-index: 1; // stretched-link cover — local to stats-card stacking context
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// Focus styles for linked cards
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
color: $mg-color-interactive;
|
|
106
106
|
text-decoration: underline;
|
|
107
107
|
position: relative;
|
|
108
|
-
z-index: 2;
|
|
108
|
+
z-index: 2; // above stretched-link cover — local to stats-card stacking context
|
|
109
109
|
transition: opacity 200ms ease;
|
|
110
110
|
|
|
111
111
|
&:hover {
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
min-height: 100vh;
|
|
3
3
|
background-color: $mg-color-blue-900;
|
|
4
4
|
color: $mg-color-text;
|
|
5
|
-
padding-bottom:
|
|
5
|
+
padding-bottom: mg-rem(20);
|
|
6
6
|
|
|
7
7
|
h1 {
|
|
8
8
|
color: $mg-color-blue-900;
|
|
9
|
-
font-size:
|
|
9
|
+
font-size: mg-rem(14);
|
|
10
10
|
padding: 0;
|
|
11
11
|
margin: 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&__search {
|
|
15
15
|
display: flex;
|
|
16
|
-
gap:
|
|
17
|
-
margin-bottom:
|
|
16
|
+
gap: mg-rem(5);
|
|
17
|
+
margin-bottom: mg-rem(12.5);
|
|
18
18
|
align-items: center;
|
|
19
19
|
|
|
20
20
|
input[type="search"] {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
|
|
26
26
|
&__container {
|
|
27
27
|
background: $mg-color-neutral-0;
|
|
28
|
-
padding:
|
|
28
|
+
padding: mg-rem(20) mg-rem(15) mg-rem(10);
|
|
29
29
|
max-width: 900px;
|
|
30
|
-
margin:
|
|
30
|
+
margin: mg-rem(20) auto;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.undrr-logo {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
background-size: contain;
|
|
37
37
|
width: 280px;
|
|
38
38
|
height: 50px;
|
|
39
|
-
margin:
|
|
39
|
+
margin: mg-rem(10) 0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&--challenge {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
|
|
45
45
|
.mg-error-page__container {
|
|
46
46
|
text-align: center;
|
|
47
|
-
padding:
|
|
48
|
-
margin-top:
|
|
47
|
+
padding: mg-rem(30) mg-rem(25) mg-rem(20);
|
|
48
|
+
margin-top: mg-rem(40);
|
|
49
49
|
max-width: 540px;
|
|
50
50
|
border-radius: 8px;
|
|
51
51
|
box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
|
|
54
54
|
.undrr-logo {
|
|
55
55
|
width: 100%;
|
|
56
|
-
margin: 0 0
|
|
56
|
+
margin: 0 0 mg-rem(25);
|
|
57
57
|
background-position: center;
|
|
58
58
|
height: 35px;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
h1 {
|
|
62
|
-
font-size:
|
|
62
|
+
font-size: mg-rem(23);
|
|
63
63
|
font-weight: 600;
|
|
64
64
|
color: $mg-color-text;
|
|
65
|
-
margin: 0 0
|
|
65
|
+
margin: 0 0 mg-rem(5);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -21,16 +21,56 @@
|
|
|
21
21
|
.mg-footer--about-footer--links {
|
|
22
22
|
font-size: $mg-font-size-500;
|
|
23
23
|
display: inline-flex;
|
|
24
|
-
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
gap: mg-rem(7.5) mg-rem(20);
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.mg-footer--about-footer--description {
|
|
28
29
|
font-size: $mg-font-size-400;
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
// Utility footer bar — secondary navigation below the main footer
|
|
33
|
+
// Used by sub-branded sites (e.g. DELTA) for product-level links
|
|
34
|
+
.mg-footer-bar {
|
|
35
|
+
border-top: 1px solid $mg-color-neutral-200;
|
|
36
|
+
padding: $mg-spacing-150 0;
|
|
37
|
+
font-size: $mg-font-size-300;
|
|
38
|
+
color: $mg-color-neutral-600;
|
|
39
|
+
|
|
40
|
+
&__row {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
align-items: center;
|
|
45
|
+
gap: $mg-spacing-100;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__links {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
gap: $mg-spacing-50 $mg-spacing-200;
|
|
52
|
+
|
|
53
|
+
a {
|
|
54
|
+
color: $mg-color-interactive;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__text {
|
|
59
|
+
max-width: 600px;
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__divider {
|
|
64
|
+
border: 0;
|
|
65
|
+
border-top: 1px solid $mg-color-neutral-200;
|
|
66
|
+
margin: $mg-spacing-100 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
31
70
|
.mg-footer--social-links {
|
|
32
71
|
display: inline-flex;
|
|
33
|
-
|
|
72
|
+
flex-wrap: wrap;
|
|
73
|
+
gap: mg-rem(15);
|
|
34
74
|
padding-left: 0;
|
|
35
75
|
|
|
36
76
|
li {
|
|
@@ -38,7 +78,35 @@
|
|
|
38
78
|
}
|
|
39
79
|
|
|
40
80
|
li a {
|
|
41
|
-
color: $mg-color-white;
|
|
42
81
|
text-underline-offset: 5px;
|
|
43
82
|
}
|
|
44
|
-
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Footer buttons: wrap into rows instead of overflowing
|
|
86
|
+
.mg-footer .mg-button + .mg-button {
|
|
87
|
+
margin-inline-start: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Reset grid spans below tablet so footer columns stack
|
|
91
|
+
@media (max-width: $mg-breakpoint-tablet) {
|
|
92
|
+
.mg-footer {
|
|
93
|
+
.mg-grid__col--span-2,
|
|
94
|
+
.mg-grid__col--span-3 {
|
|
95
|
+
grid-column-end: auto;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Constrain footer images (Sendai/SDG logos)
|
|
100
|
+
.mg-footer img {
|
|
101
|
+
max-width: min(300px, 76vw);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Link-spacer mobile stacking (syndicated widget content)
|
|
106
|
+
@media (max-width: $mg-breakpoint-mobile) {
|
|
107
|
+
.mg-footer .link-spacer {
|
|
108
|
+
display: grid;
|
|
109
|
+
margin-right: 0;
|
|
110
|
+
white-space: normal;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
font-size: $mg-font-size-300;
|
|
42
42
|
height: 46px;
|
|
43
43
|
margin-top: $mg-spacing-25;
|
|
44
|
-
padding:
|
|
44
|
+
padding: mg-rem(6.25);
|
|
45
45
|
width: 100%;
|
|
46
46
|
|
|
47
47
|
&::placeholder {
|
|
@@ -113,13 +113,13 @@
|
|
|
113
113
|
font-size: $mg-font-size-300;
|
|
114
114
|
height: 46px;
|
|
115
115
|
margin-top: $mg-spacing-25;
|
|
116
|
-
padding:
|
|
116
|
+
padding: mg-rem(6.25);
|
|
117
117
|
padding-right: $mg-spacing-200;
|
|
118
118
|
width: 100%;
|
|
119
119
|
|
|
120
120
|
// Custom dropdown arrow
|
|
121
121
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
|
|
122
|
-
background-position: right
|
|
122
|
+
background-position: right mg-rem(6.25) center;
|
|
123
123
|
background-repeat: no-repeat;
|
|
124
124
|
|
|
125
125
|
&:focus-visible {
|
|
@@ -295,9 +295,9 @@
|
|
|
295
295
|
// -----------------------------------------------------------------------------
|
|
296
296
|
[dir="rtl"] {
|
|
297
297
|
.mg-form-select {
|
|
298
|
-
background-position: left
|
|
298
|
+
background-position: left mg-rem(6.25) center;
|
|
299
299
|
padding-left: $mg-spacing-200;
|
|
300
|
-
padding-right:
|
|
300
|
+
padding-right: mg-rem(6.25);
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.mg-form-input[type="date"]::-webkit-calendar-picker-indicator {
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
top: 50%;
|
|
99
99
|
left: 50%;
|
|
100
100
|
transform: translate(-50%, -50%);
|
|
101
|
-
z-index: 3;
|
|
101
|
+
z-index: 3; // loading spinner above nav buttons — local to gallery stacking context
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
&__spinner {
|
|
105
|
-
width: $mg-spacing-300; //
|
|
105
|
+
width: $mg-spacing-300; // 30px
|
|
106
106
|
height: $mg-spacing-300;
|
|
107
107
|
border: 4px solid $mg-color-neutral-300;
|
|
108
108
|
border-top-color: $mg-color-interactive;
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
// Individual thumbnail button
|
|
195
195
|
&__thumbnail {
|
|
196
196
|
flex-shrink: 0;
|
|
197
|
-
width: $mg-spacing-400; //
|
|
197
|
+
width: $mg-spacing-400; // 50px
|
|
198
198
|
height: $mg-spacing-400;
|
|
199
199
|
border: none;
|
|
200
200
|
border-left: 4px solid transparent;
|
|
@@ -328,14 +328,14 @@
|
|
|
328
328
|
top: 50%;
|
|
329
329
|
left: 50%;
|
|
330
330
|
transform: translate(-50%, -50%);
|
|
331
|
-
width: $mg-spacing-200; //
|
|
331
|
+
width: $mg-spacing-200; // 20px
|
|
332
332
|
height: $mg-spacing-200;
|
|
333
333
|
display: flex;
|
|
334
334
|
align-items: center;
|
|
335
335
|
justify-content: center;
|
|
336
336
|
background: rgb(0 0 0 / 0.6);
|
|
337
337
|
color: $mg-color-white;
|
|
338
|
-
font-size: $mg-font-size-100; //
|
|
338
|
+
font-size: $mg-font-size-100; // 10px
|
|
339
339
|
pointer-events: none;
|
|
340
340
|
padding-left: 2px;
|
|
341
341
|
}
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
color: $mg-color-white;
|
|
353
353
|
font-size: $mg-font-size-400;
|
|
354
354
|
cursor: pointer;
|
|
355
|
-
z-index: 2;
|
|
355
|
+
z-index: 2; // nav button above gallery images — local to gallery stacking context
|
|
356
356
|
display: flex;
|
|
357
357
|
align-items: center;
|
|
358
358
|
justify-content: center;
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
right: $mg-spacing-100;
|
|
410
410
|
display: flex;
|
|
411
411
|
gap: $mg-spacing-100;
|
|
412
|
-
z-index: 2;
|
|
412
|
+
z-index: 2; // arrow controls above gallery images — local to gallery stacking context
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
&__arrow-button {
|
|
@@ -19,43 +19,51 @@
|
|
|
19
19
|
|
|
20
20
|
@media (min-width: $mg-breakpoint-tablet) {
|
|
21
21
|
aspect-ratio: 16 / 4; // we use 16:4, which is closer to the real crop ratio
|
|
22
|
-
padding-left: calc(
|
|
23
|
-
50vw - calc($mg-breakpoint-desktop / 2)
|
|
24
|
-
); // to keep the overlay fixed
|
|
22
|
+
padding-left: calc(50vw - calc($mg-breakpoint-desktop / 2)); // to keep the overlay fixed
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
@media (min-width: $mg-breakpoint-desktop-wide) {
|
|
28
|
-
padding-left: calc(
|
|
29
|
-
50vw - calc($mg-breakpoint-desktop-wide / 2)
|
|
30
|
-
); // to keep the overlay fixed
|
|
26
|
+
padding-left: calc(50vw - calc($mg-breakpoint-desktop-wide / 2)); // to keep the overlay fixed
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
// Button overrides
|
|
34
|
-
a.mg-button-primary {
|
|
35
|
-
background-color: $mg-color-neutral-0;
|
|
36
|
-
}
|
|
37
|
-
a.mg-button-secondary {
|
|
38
|
-
background-color: rgba($mg-color-neutral-0, 0.9);
|
|
39
|
-
}
|
|
40
30
|
a.mg-button,
|
|
41
31
|
a.mg-button:hover,
|
|
42
32
|
a.mg-button:visited {
|
|
43
33
|
color: $mg-color-hero;
|
|
44
34
|
}
|
|
45
35
|
|
|
36
|
+
a.mg-button-primary {
|
|
37
|
+
background-color: $mg-color-neutral-0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
a.mg-button-secondary,
|
|
41
|
+
a.mg-button-secondary:hover,
|
|
42
|
+
a.mg-button-secondary:visited {
|
|
43
|
+
background-color: $mg-color-hero-button-secondary-background;
|
|
44
|
+
color: $mg-color-hero-button-secondary-color;
|
|
45
|
+
border-color: $mg-border-color-hero-button-secondary;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
a.mg-button:focus-visible {
|
|
49
|
+
box-shadow: 0 0 0 2px $mg-color-neutral-0;
|
|
50
|
+
outline: 2px solid $mg-color-neutral-0;
|
|
51
|
+
outline-offset: 2px;
|
|
52
|
+
}
|
|
53
|
+
|
|
46
54
|
&__overlay {
|
|
47
55
|
align-items: center;
|
|
48
56
|
background-color: rgba($mg-color-hero, $mg-opacity-hero);
|
|
49
57
|
display: grid;
|
|
50
58
|
margin: $mg-spacing-hero-overlay;
|
|
51
|
-
max-width: $mg-width
|
|
52
|
-
padding: $mg-
|
|
59
|
+
max-width: $mg-hero-overlay-max-width;
|
|
60
|
+
padding: $mg-hero-overlay-padding;
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
&__content {
|
|
56
64
|
display: grid;
|
|
57
65
|
margin-top: $mg-spacing-25;
|
|
58
|
-
row-gap:
|
|
66
|
+
row-gap: mg-rem(10);
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
&__meta {
|
|
@@ -88,13 +96,19 @@
|
|
|
88
96
|
|
|
89
97
|
// Title styles (for both <h1> and <a>)
|
|
90
98
|
&__title {
|
|
91
|
-
color: $mg-color-
|
|
99
|
+
color: $mg-color-hero-title;
|
|
92
100
|
margin-bottom: $mg-spacing-25;
|
|
93
101
|
display: inline-block;
|
|
94
102
|
font-weight: bold;
|
|
95
103
|
font-size: $mg-font-size-600;
|
|
96
104
|
line-height: 1.2;
|
|
97
105
|
|
|
106
|
+
a,
|
|
107
|
+
a:hover,
|
|
108
|
+
a:visited {
|
|
109
|
+
color: $mg-color-hero-title;
|
|
110
|
+
}
|
|
111
|
+
|
|
98
112
|
// General text styles for larger text
|
|
99
113
|
.text-xxl {
|
|
100
114
|
font-size: $mg-font-size-800;
|
|
@@ -119,7 +133,7 @@
|
|
|
119
133
|
h4,
|
|
120
134
|
h5,
|
|
121
135
|
h6 {
|
|
122
|
-
color: $mg-color-
|
|
136
|
+
color: $mg-color-hero-title;
|
|
123
137
|
font-weight: bold;
|
|
124
138
|
font-size: $mg-font-size-600;
|
|
125
139
|
|
|
@@ -172,11 +186,21 @@ $variant-colours: (
|
|
|
172
186
|
@each $name, $color in $variant-colours {
|
|
173
187
|
.mg-hero--#{$name} .mg-hero__overlay {
|
|
174
188
|
background-color: rgba($color, $mg-opacity-hero);
|
|
189
|
+
|
|
175
190
|
a.mg-button,
|
|
176
191
|
a.mg-button:hover,
|
|
177
192
|
a.mg-button:visited {
|
|
178
193
|
color: #{$color};
|
|
179
194
|
}
|
|
195
|
+
|
|
196
|
+
// Preserve secondary button's dedicated tokens over the generic color above
|
|
197
|
+
a.mg-button-secondary,
|
|
198
|
+
a.mg-button-secondary:hover,
|
|
199
|
+
a.mg-button-secondary:visited {
|
|
200
|
+
background-color: $mg-color-hero-button-secondary-background;
|
|
201
|
+
color: $mg-color-hero-button-secondary-color;
|
|
202
|
+
border-color: $mg-border-color-hero-button-secondary;
|
|
203
|
+
}
|
|
180
204
|
}
|
|
181
205
|
}
|
|
182
206
|
|
|
@@ -186,14 +210,10 @@ $variant-colours: (
|
|
|
186
210
|
padding-right: $mg-spacing-100;
|
|
187
211
|
|
|
188
212
|
@media (min-width: $mg-breakpoint-tablet) {
|
|
189
|
-
padding-right: calc(
|
|
190
|
-
50vw - calc($mg-breakpoint-desktop / 2)
|
|
191
|
-
); // to keep the overlay fixed
|
|
213
|
+
padding-right: calc(50vw - calc($mg-breakpoint-desktop / 2)); // to keep the overlay fixed
|
|
192
214
|
}
|
|
193
215
|
|
|
194
216
|
@media (min-width: $mg-breakpoint-desktop-wide) {
|
|
195
|
-
padding-right: calc(
|
|
196
|
-
50vw - calc($mg-breakpoint-desktop-wide / 2)
|
|
197
|
-
); // to keep the overlay fixed
|
|
217
|
+
padding-right: calc(50vw - calc($mg-breakpoint-desktop-wide / 2)); // to keep the overlay fixed
|
|
198
218
|
}
|
|
199
219
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
// Do not import them here to avoid duplication
|
|
5
5
|
|
|
6
6
|
.mg-highlight-box {
|
|
7
|
-
padding-block:
|
|
8
|
-
padding-inline:
|
|
9
|
-
padding-bottom:
|
|
7
|
+
padding-block: mg-rem(10);
|
|
8
|
+
padding-inline: mg-rem(15);
|
|
9
|
+
padding-bottom: mg-rem(20);
|
|
10
10
|
box-shadow: inset 0 -8px 0 0 rgb(0 0 0 / 0.3);
|
|
11
11
|
display: block;
|
|
12
12
|
width: 100%;
|
|
@@ -71,14 +71,14 @@ figure.align-left,
|
|
|
71
71
|
.mg-highlight-box--float-start {
|
|
72
72
|
float: inline-start;
|
|
73
73
|
width: 30%;
|
|
74
|
-
margin-inline-end:
|
|
74
|
+
margin-inline-end: mg-rem(20);
|
|
75
75
|
}
|
|
76
76
|
.align-right.custom-media,
|
|
77
77
|
figure.align-right,
|
|
78
78
|
.mg-highlight-box--float-end {
|
|
79
79
|
float: inline-end;
|
|
80
80
|
width: 30%;
|
|
81
|
-
margin-inline-start:
|
|
81
|
+
margin-inline-start: mg-rem(20);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|