@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.
Files changed (166) hide show
  1. package/README.md +33 -29
  2. package/components/BarChart.js +2 -2
  3. package/components/BookCard.js +6 -0
  4. package/components/BookCard.js.LICENSE.txt +11 -0
  5. package/components/Breadcrumbs.js +6 -0
  6. package/components/Breadcrumbs.js.LICENSE.txt +9 -0
  7. package/components/Checkbox.js +6 -0
  8. package/components/Checkbox.js.LICENSE.txt +9 -0
  9. package/components/Chips.js +6 -0
  10. package/components/Chips.js.LICENSE.txt +9 -0
  11. package/components/CtaButton.js +6 -0
  12. package/components/CtaButton.js.LICENSE.txt +9 -0
  13. package/components/EmbedContainer.js +6 -0
  14. package/components/EmbedContainer.js.LICENSE.txt +9 -0
  15. package/components/Fetcher.js +2 -2
  16. package/components/Footer.js +6 -0
  17. package/components/Footer.js.LICENSE.txt +9 -0
  18. package/components/FormErrorSummary.js +6 -0
  19. package/components/FormErrorSummary.js.LICENSE.txt +9 -0
  20. package/components/FormGroup.js +6 -0
  21. package/components/FormGroup.js.LICENSE.txt +9 -0
  22. package/components/FullWidth.js +6 -0
  23. package/components/FullWidth.js.LICENSE.txt +9 -0
  24. package/components/Gallery.js +1 -1
  25. package/components/Hero.js +6 -0
  26. package/components/Hero.js.LICENSE.txt +9 -0
  27. package/components/HighlightBox.js +6 -0
  28. package/components/HighlightBox.js.LICENSE.txt +9 -0
  29. package/components/HorizontalBookCard.js +6 -0
  30. package/components/HorizontalBookCard.js.LICENSE.txt +11 -0
  31. package/components/HorizontalCard.js +6 -0
  32. package/components/HorizontalCard.js.LICENSE.txt +11 -0
  33. package/components/IconCard.js +2 -2
  34. package/components/Loader.js +6 -0
  35. package/components/Loader.js.LICENSE.txt +9 -0
  36. package/components/MapComponent.js +2 -2
  37. package/components/MegaMenu.js +2 -2
  38. package/components/PageHeader.js +6 -0
  39. package/components/PageHeader.js.LICENSE.txt +9 -0
  40. package/components/Pager.js +2 -2
  41. package/components/QuoteHighlight.js +1 -1
  42. package/components/Radio.js +6 -0
  43. package/components/Radio.js.LICENSE.txt +9 -0
  44. package/components/ScrollContainer.js +1 -1
  45. package/components/Select.js +6 -0
  46. package/components/Select.js.LICENSE.txt +9 -0
  47. package/components/ShareButtons.js +1 -1
  48. package/components/ShowMore.js +6 -0
  49. package/components/ShowMore.js.LICENSE.txt +9 -0
  50. package/components/StatsCard.js +2 -2
  51. package/components/SyndicationSearchWidget.js +2 -2
  52. package/components/Tab.js +6 -0
  53. package/components/Tab.js.LICENSE.txt +9 -0
  54. package/components/TextCta.js +6 -0
  55. package/components/TextCta.js.LICENSE.txt +11 -0
  56. package/components/TextInput.js +6 -0
  57. package/components/TextInput.js.LICENSE.txt +9 -0
  58. package/components/Textarea.js +6 -0
  59. package/components/Textarea.js.LICENSE.txt +9 -0
  60. package/components/VerticalCard.js +6 -0
  61. package/components/VerticalCard.js.LICENSE.txt +11 -0
  62. package/components/hydrate.js +1 -1
  63. package/css/style-delta.css +467 -0
  64. package/css/style-delta.css.map +1 -0
  65. package/css/style-gutenberg.css +21 -18
  66. package/css/style-gutenberg.css.map +1 -1
  67. package/css/style-irp-legacy.css +472 -0
  68. package/css/style-irp-legacy.css.map +1 -0
  69. package/css/style-irp.css +99 -103
  70. package/css/style-irp.css.map +1 -1
  71. package/css/style-legacy.css +465 -0
  72. package/css/style-legacy.css.map +1 -0
  73. package/css/style-mcr-legacy.css +472 -0
  74. package/css/style-mcr-legacy.css.map +1 -0
  75. package/css/style-mcr.css +99 -103
  76. package/css/style-mcr.css.map +1 -1
  77. package/css/style-preventionweb-legacy.css +472 -0
  78. package/css/style-preventionweb-legacy.css.map +1 -0
  79. package/css/style-preventionweb.css +99 -103
  80. package/css/style-preventionweb.css.map +1 -1
  81. package/css/style.css +99 -103
  82. package/css/style.css.map +1 -1
  83. package/error-pages/401.html +10 -11
  84. package/error-pages/403.html +11 -12
  85. package/error-pages/404.html +13 -14
  86. package/error-pages/429.html +12 -13
  87. package/error-pages/500.html +10 -11
  88. package/error-pages/502.html +12 -13
  89. package/error-pages/503.html +12 -13
  90. package/error-pages/504.html +10 -11
  91. package/error-pages/5xx.html +10 -11
  92. package/error-pages/challenge.html +12 -13
  93. package/error-pages/managed-challenge.html +12 -13
  94. package/js/README.md +57 -0
  95. package/js/__tests__/show-more.test.js +76 -0
  96. package/js/__tests__/table-of-contents.test.js +198 -0
  97. package/js/on-this-page-nav.js +531 -0
  98. package/js/show-more.js +24 -3
  99. package/js/table-of-contents.js +168 -0
  100. package/js/tabs.js +445 -83
  101. package/package.json +1 -1
  102. package/scss/Atom/BaseTypography/Blockquote/blockquote.scss +1 -8
  103. package/scss/Atom/BaseTypography/Cite/cite.scss +2 -2
  104. package/scss/Atom/Images/AuthorImage/author-image.scss +4 -4
  105. package/scss/Atom/Images/ImageCaptionCredit/image-caption-credit.scss +24 -28
  106. package/scss/Atom/Images/ImageCredit/image-credit.scss +1 -1
  107. package/scss/Atom/Layout/Container/container.scss +2 -2
  108. package/scss/Atom/Layout/Grid/grid.scss +1 -1
  109. package/scss/Atom/ReachElement/Details/details.scss +6 -6
  110. package/scss/Atom/ReachElement/Figcaption/figcaption.scss +1 -1
  111. package/scss/Atom/Table/table.scss +0 -8
  112. package/scss/Components/Boilerplate/boilerplate.scss +2 -2
  113. package/scss/Components/Breadcrumbs/breadcrumbs.scss +2 -9
  114. package/scss/Components/Buttons/Chips/chips.scss +5 -19
  115. package/scss/Components/Buttons/CtaButton/buttons.scss +3 -124
  116. package/scss/Components/Buttons/CtaButton/cta-button.scss +99 -0
  117. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +2 -2
  118. package/scss/Components/Cards/Card/card.scss +45 -6
  119. package/scss/Components/Cards/StatsCard/stats-card.scss +2 -2
  120. package/scss/Components/ErrorPages/error-pages.scss +12 -12
  121. package/scss/Components/Footer/footer.scss +72 -4
  122. package/scss/Components/Forms/Select/select.scss +2 -2
  123. package/scss/Components/Forms/_form-base.scss +5 -5
  124. package/scss/Components/Forms/_form-legacy.scss +1 -1
  125. package/scss/Components/Gallery/gallery.scss +7 -7
  126. package/scss/Components/Hero/hero.scss +43 -23
  127. package/scss/Components/HighlightBox/highlight-box.scss +5 -5
  128. package/scss/Components/MegaMenu/mega-menu.scss +750 -0
  129. package/scss/Components/MegaMenu/megamenu.scss +3 -733
  130. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +206 -0
  131. package/scss/Components/PageHeader/page-header.scss +5 -5
  132. package/scss/Components/Pagination/pagination.scss +2 -2
  133. package/scss/Components/ScrollContainer/scroll-container.scss +1 -1
  134. package/scss/Components/Snackbar/snackbar.scss +1 -1
  135. package/scss/Components/SyndicationSearchWidget/SyndicationSearchWidget.scss +3 -1480
  136. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +1515 -0
  137. package/scss/Components/Tab/tab.scss +68 -9
  138. package/scss/Components/TableOfContents/TableOfContents.scss +3 -17
  139. package/scss/Components/TableOfContents/table-of-contents.scss +17 -0
  140. package/scss/Components/TextCta/text-cta.scss +139 -0
  141. package/scss/Components/TextCta/textcta.scss +3 -27
  142. package/scss/Molecules/ImageCaption/image-caption.scss +6 -16
  143. package/scss/Molecules/SectionHeader/section-header.scss +8 -0
  144. package/scss/Molecules/SectionHeader/sectionheader.scss +3 -8
  145. package/scss/Utilities/FullWidth/FullWidth.scss +3 -23
  146. package/scss/Utilities/FullWidth/full-width.scss +23 -0
  147. package/scss/Utilities/Loader/loader.scss +1 -1
  148. package/scss/Utilities/ShowMore/ShowMore.scss +3 -26
  149. package/scss/Utilities/ShowMore/show-more.scss +26 -0
  150. package/scss/assets/scss/_components.scss +15 -9
  151. package/scss/assets/scss/_foundational.scss +13 -7
  152. package/scss/assets/scss/_mixins.scss +9 -314
  153. package/scss/assets/scss/_utility.scss +19 -71
  154. package/scss/assets/scss/_variables-delta.scss +110 -0
  155. package/scss/assets/scss/_variables-irp.scss +1 -1
  156. package/scss/assets/scss/_variables-mcr.scss +1 -1
  157. package/scss/assets/scss/_variables-preventionweb.scss +1 -1
  158. package/scss/assets/scss/_variables.scss +101 -34
  159. package/scss/assets/scss/style-delta.scss +8 -0
  160. package/scss/assets/scss/style-gutenberg.scss +2 -2
  161. package/scss/assets/scss/style-irp-legacy.scss +20 -0
  162. package/scss/assets/scss/style-legacy.scss +20 -0
  163. package/scss/assets/scss/style-mcr-legacy.scss +20 -0
  164. package/scss/assets/scss/style-preventionweb-legacy.scss +20 -0
  165. package/scss/Components/BlockquoteComponent/blockquotecomp.scss +0 -31
  166. 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: 2rem;
5
+ padding-bottom: mg-rem(20);
6
6
 
7
7
  h1 {
8
8
  color: $mg-color-blue-900;
9
- font-size: 1.4rem;
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: 0.5rem;
17
- margin-bottom: 1.25rem;
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: 2rem 1.5rem 1rem;
28
+ padding: mg-rem(20) mg-rem(15) mg-rem(10);
29
29
  max-width: 900px;
30
- margin: 2rem auto;
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: 1rem 0;
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: 3rem 2.5rem 2rem;
48
- margin-top: 4rem;
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 2.5rem;
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: 2.3rem;
62
+ font-size: mg-rem(23);
63
63
  font-weight: 600;
64
64
  color: $mg-color-text;
65
- margin: 0 0 0.5rem;
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
- gap: 0.75rem 2rem;
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
- gap: 1.5rem;
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
+ }
@@ -3,8 +3,8 @@
3
3
 
4
4
  [dir="rtl"] {
5
5
  .mg-form-select {
6
- background-position: left 0.625rem center;
6
+ background-position: left mg-rem(6.25) center;
7
7
  padding-left: $mg-spacing-200;
8
- padding-right: 0.625rem;
8
+ padding-right: mg-rem(6.25);
9
9
  }
10
10
  }
@@ -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: 0.625rem;
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: 0.625rem;
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 0.625rem center;
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 0.625rem center;
298
+ background-position: left mg-rem(6.25) center;
299
299
  padding-left: $mg-spacing-200;
300
- padding-right: 0.625rem;
300
+ padding-right: mg-rem(6.25);
301
301
  }
302
302
 
303
303
  .mg-form-input[type="date"]::-webkit-calendar-picker-indicator {
@@ -55,7 +55,7 @@ textarea {
55
55
  font-size: $mg-font-size-300;
56
56
  height: 46px;
57
57
  margin-top: $mg-spacing-25;
58
- padding: 0.625rem;
58
+ padding: mg-rem(6.25);
59
59
  width: 100%;
60
60
 
61
61
  &::placeholder {
@@ -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; // 3rem / 48px
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; // 5rem / 80px
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; // 2rem / 32px
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; // 1rem / 16px (close to 14px)
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-400;
52
- padding: $mg-spacing-200;
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: 1rem;
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-neutral-0;
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-neutral-0;
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: 1rem;
8
- padding-inline: 1.5rem;
9
- padding-bottom: 2rem;
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: 2rem;
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: 2rem;
81
+ margin-inline-start: mg-rem(20);
82
82
  }
83
83
  }
84
84