@undrr/undrr-mangrove 1.3.2 → 1.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 +32 -25
- 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 +2 -2
- 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/IconCard.js.LICENSE.txt +1 -1
- 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 +2 -2
- package/components/Radio.js +6 -0
- package/components/Radio.js.LICENSE.txt +9 -0
- package/components/ScrollContainer.js +2 -2
- package/components/Select.js +6 -0
- package/components/Select.js.LICENSE.txt +9 -0
- package/components/ShareButtons.js +2 -2
- 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 +5 -0
- package/css/style-delta.css +464 -0
- package/css/style-delta.css.map +1 -0
- package/css/style-gutenberg.css +19 -18
- package/css/style-gutenberg.css.map +1 -1
- package/css/style-irp-legacy.css +469 -0
- package/css/style-irp-legacy.css.map +1 -0
- package/css/style-irp.css +96 -103
- package/css/style-irp.css.map +1 -1
- package/css/style-legacy.css +462 -0
- package/css/style-legacy.css.map +1 -0
- package/css/style-mcr-legacy.css +469 -0
- package/css/style-mcr-legacy.css.map +1 -0
- package/css/style-mcr.css +96 -103
- package/css/style-mcr.css.map +1 -1
- package/css/style-preventionweb-legacy.css +469 -0
- package/css/style-preventionweb-legacy.css.map +1 -0
- package/css/style-preventionweb.css +96 -103
- package/css/style-preventionweb.css.map +1 -1
- package/css/style.css +96 -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/tabs.js +427 -88
- 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 +124 -0
- package/scss/Components/Buttons/ShareButtons/share-buttons.scss +2 -2
- package/scss/Components/Cards/Card/card.scss +41 -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 +4 -4
- package/scss/Components/Hero/hero.scss +18 -17
- 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 -659
- package/scss/Components/PageHeader/page-header.scss +4 -4
- package/scss/Components/Pagination/pagination.scss +2 -2
- package/scss/Components/SyndicationSearchWidget/SyndicationSearchWidget.scss +3 -1480
- package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +1515 -0
- package/scss/Components/Tab/tab.scss +66 -7
- package/scss/Components/TextCta/text-cta.scss +129 -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 +14 -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 +105 -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 +68 -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
- /package/scss/Components/TableOfContents/{TableOfContents.scss → table-of-contents.scss} +0 -0
|
@@ -19,15 +19,6 @@
|
|
|
19
19
|
animation: $animation;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
// keyframe
|
|
23
|
-
@mixin keyframes($keyframes...) {
|
|
24
|
-
-webkit-keyframes: $keyframes;
|
|
25
|
-
-moz-keyframes: $keyframes;
|
|
26
|
-
-ms-keyframes: $keyframes;
|
|
27
|
-
-o-keyframes: $keyframes;
|
|
28
|
-
keyframes: $keyframes;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
22
|
// transition
|
|
32
23
|
@mixin transition($transitions...) {
|
|
33
24
|
-webkit-transition: $transitions;
|
|
@@ -102,15 +93,6 @@
|
|
|
102
93
|
}
|
|
103
94
|
}
|
|
104
95
|
|
|
105
|
-
%paragraph-font-400 {
|
|
106
|
-
font-size: $mg-font-size-400;
|
|
107
|
-
line-height: 1.1;
|
|
108
|
-
|
|
109
|
-
@include devicebreak(medium) {
|
|
110
|
-
font-size: $mg-font-size-500;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
96
|
%border-bottom {
|
|
115
97
|
border-bottom: 1px solid $mg-color-neutral-400;
|
|
116
98
|
}
|
|
@@ -128,45 +110,6 @@
|
|
|
128
110
|
border: none;
|
|
129
111
|
}
|
|
130
112
|
|
|
131
|
-
%footer-block {
|
|
132
|
-
align-items: center;
|
|
133
|
-
border-bottom: 1px solid $mg-color-white;
|
|
134
|
-
justify-content: space-between;
|
|
135
|
-
margin-bottom: $mg-spacing-150;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
// %checbox-radio-before — REMOVED (February 2026)
|
|
140
|
-
// Migrated to .mg-form-check__input in _form-base.scss.
|
|
141
|
-
|
|
142
|
-
%ctaimg {
|
|
143
|
-
content: "";
|
|
144
|
-
height: 1.188rem;
|
|
145
|
-
margin-left: $mg-spacing-25;
|
|
146
|
-
margin-top: 2px;
|
|
147
|
-
width: 0.813rem;
|
|
148
|
-
|
|
149
|
-
@include devicebreak(medium) {
|
|
150
|
-
margin-top: 0;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
%arrow {
|
|
155
|
-
@include transform(translateY(-50%));
|
|
156
|
-
@include transition(all 200ms ease-in-out);
|
|
157
|
-
|
|
158
|
-
// background:
|
|
159
|
-
// url(#{$img-path-Iconfourback}/chevron-down.svg) no-repeat center
|
|
160
|
-
// center;
|
|
161
|
-
content: "";
|
|
162
|
-
float: right;
|
|
163
|
-
height: 13px;
|
|
164
|
-
position: absolute;
|
|
165
|
-
right: 14px;
|
|
166
|
-
top: 50%;
|
|
167
|
-
width: 20px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
113
|
%absolute__content {
|
|
171
114
|
content: "";
|
|
172
115
|
height: 100%;
|
|
@@ -176,270 +119,22 @@
|
|
|
176
119
|
width: 100%;
|
|
177
120
|
}
|
|
178
121
|
|
|
179
|
-
|
|
180
|
-
%language_switcher {
|
|
181
|
-
border: none;
|
|
182
|
-
font-size: $mg-font-size-200;
|
|
183
|
-
font-weight: 600;
|
|
184
|
-
text-transform: uppercase;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
122
|
%img_none {
|
|
188
123
|
background-image: none;
|
|
189
124
|
}
|
|
190
125
|
|
|
191
|
-
%absolute__overflow {
|
|
192
|
-
height: 100%;
|
|
193
|
-
overflow: hidden;
|
|
194
|
-
position: absolute;
|
|
195
|
-
width: 100%;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// %select_default — REMOVED (February 2026)
|
|
199
|
-
// Migrated to .mg-form-select in _form-base.scss.
|
|
200
|
-
|
|
201
|
-
%select_option {
|
|
202
|
-
border: 2px solid $mg-color-black;
|
|
203
|
-
-webkit-box-sizing: border-box;
|
|
204
|
-
-moz-box-sizing: border-box;
|
|
205
|
-
box-sizing: border-box;
|
|
206
|
-
display: none;
|
|
207
|
-
min-height: 100px;
|
|
208
|
-
padding: 0 $mg-spacing-50;
|
|
209
|
-
width: 100%;
|
|
210
|
-
|
|
211
|
-
&:focus {
|
|
212
|
-
box-shadow: 0 0 4px $mg-color-blue-800;
|
|
213
|
-
outline: 0;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
%select_rtl {
|
|
218
|
-
padding-left: 3.125rem;
|
|
219
|
-
padding-right: $mg-spacing-50;
|
|
220
|
-
text-align: right;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
%select_rtl_after {
|
|
224
|
-
left: 16px;
|
|
225
|
-
margin: 0;
|
|
226
|
-
right: auto;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
%no-animation {
|
|
230
|
-
-webkit-animation: none;
|
|
231
|
-
-moz-animation: none;
|
|
232
|
-
-ms-animation: none;
|
|
233
|
-
-o-animation: none;
|
|
234
|
-
animation: none;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
%left-to-right {
|
|
238
|
-
@include transform(translateX(-100px));
|
|
239
|
-
@include transition(
|
|
240
|
-
transform 1.2s cubic-bezier(0.34, 0.41, 0.03, 1),
|
|
241
|
-
opacity 1.2s cubic-bezier(0.34, 0.41, 0.03, 1)
|
|
242
|
-
);
|
|
243
|
-
|
|
244
|
-
opacity: 0;
|
|
245
|
-
visibility: hidden;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
%inviewport_left_right {
|
|
249
|
-
@include transform(translateX(0));
|
|
250
|
-
|
|
251
|
-
opacity: 1;
|
|
252
|
-
visibility: visible;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
[dir="rtl"] {
|
|
256
|
-
%left-to-right {
|
|
257
|
-
@include transform(translateX(100px));
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
%scale-up {
|
|
262
|
-
@include transform(scale(0.9));
|
|
263
|
-
@include transition(transform 1.2s cubic-bezier(0.34, 0.41, 0.03, 1));
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
%opacity-only {
|
|
267
|
-
@include transition(opacity 1.2s cubic-bezier(0.34, 0.41, 0.03, 1));
|
|
268
|
-
|
|
269
|
-
opacity: 0;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
%inviewport_opacity_only {
|
|
273
|
-
@include transform(translateX(0));
|
|
274
|
-
|
|
275
|
-
opacity: 1;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
%header {
|
|
279
|
-
background-color: $mg-color-neutral-100;
|
|
280
|
-
box-shadow: 0 3px 6px rgb(0 0 0 / 0.1);
|
|
281
|
-
height: 7.1875rem;
|
|
282
|
-
left: 0;
|
|
283
|
-
position: fixed;
|
|
284
|
-
top: 0;
|
|
285
|
-
width: 100%;
|
|
286
|
-
z-index: 9;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
126
|
%background-white {
|
|
290
127
|
background-color: white;
|
|
291
128
|
}
|
|
292
129
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
%
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
height: 1.125rem;
|
|
303
|
-
width: 1.25rem;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
%footerlink {
|
|
307
|
-
@extend %img_none;
|
|
308
|
-
|
|
309
|
-
color: $mg-color-white;
|
|
310
|
-
font-size: $mg-font-size-300;
|
|
311
|
-
line-height: 1.4;
|
|
312
|
-
|
|
313
|
-
&:hover {
|
|
314
|
-
color: $mg-color-blue-100;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
%footerlinkinvert {
|
|
319
|
-
color: $mg-color-black;
|
|
320
|
-
|
|
321
|
-
&:hover {
|
|
322
|
-
color: $mg-color-neutral-600;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
%selectoption {
|
|
327
|
-
border-top: 1px solid $mg-color-neutral-400;
|
|
328
|
-
cursor: pointer;
|
|
329
|
-
margin-bottom: 0;
|
|
330
|
-
padding: 0;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
// burmese lang
|
|
334
|
-
:lang(my) {
|
|
335
|
-
%paragraph-font-200 {
|
|
336
|
-
font-size: $mg-font-size-100;
|
|
337
|
-
line-height: 1.7;
|
|
338
|
-
|
|
339
|
-
@include devicebreak(medium) {
|
|
340
|
-
font-size: $mg-font-size-200;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
%paragraph-font-300 {
|
|
345
|
-
font-size: $mg-font-size-200;
|
|
346
|
-
|
|
347
|
-
@include devicebreak(medium) {
|
|
348
|
-
font-size: $mg-font-size-300;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
%paragraph-font-400 {
|
|
353
|
-
font-size: $mg-font-size-400;
|
|
354
|
-
line-height: 1.1;
|
|
355
|
-
|
|
356
|
-
@include devicebreak(medium) {
|
|
357
|
-
font-size: $mg-font-size-500;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
%button {
|
|
361
|
-
font-size: $mg-font-size-200;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
%logo {
|
|
366
|
-
@include transition(all 0.4s cubic-bezier(0.64, 0.05, 0.35, 1.05));
|
|
367
|
-
|
|
368
|
-
width: 40px;
|
|
369
|
-
|
|
370
|
-
@include devicebreak(xlarge) {
|
|
371
|
-
height: ($header-height-xlarge + 7px);
|
|
372
|
-
width: 60px;
|
|
373
|
-
|
|
374
|
-
&.scrolled {
|
|
375
|
-
height: $header-height-xlarge;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
@include devicebreak(mediumonlytab) {
|
|
380
|
-
height: ($header-height-medium + 7px);
|
|
381
|
-
|
|
382
|
-
&.scrolled {
|
|
383
|
-
height: $header-height-medium;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
@mixin background($background...) {
|
|
389
|
-
background: linear-gradient($background);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
%pseudo-icon {
|
|
393
|
-
box-sizing: border-box;
|
|
394
|
-
content: "";
|
|
395
|
-
display: block;
|
|
396
|
-
position: absolute;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
%chevron-right-expanded {
|
|
400
|
-
i {
|
|
401
|
-
@include transition(width 0.3s);
|
|
402
|
-
|
|
403
|
-
box-sizing: border-box;
|
|
404
|
-
display: block;
|
|
405
|
-
height: $mg-spacing-50;
|
|
406
|
-
left: 1.25rem;
|
|
407
|
-
position: relative;
|
|
408
|
-
width: 0;
|
|
409
|
-
|
|
410
|
-
&::before {
|
|
411
|
-
@extend %pseudo-icon;
|
|
412
|
-
|
|
413
|
-
background-color: $mg-color-red-900;
|
|
414
|
-
display: none;
|
|
415
|
-
height: 2px;
|
|
416
|
-
right: 0;
|
|
417
|
-
top: 7px;
|
|
418
|
-
width: 100%;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
&::after {
|
|
422
|
-
@extend %pseudo-icon;
|
|
423
|
-
@include transform(rotate(45deg));
|
|
424
|
-
|
|
425
|
-
border-right: 2px solid $mg-color-red-900;
|
|
426
|
-
border-top: 2px solid $mg-color-red-900;
|
|
427
|
-
height: $mg-spacing-25;
|
|
428
|
-
right: 0;
|
|
429
|
-
top: 2px;
|
|
430
|
-
width: $mg-spacing-25;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
&:hover {
|
|
435
|
-
i {
|
|
436
|
-
width: $mg-spacing-400;
|
|
437
|
-
|
|
438
|
-
&::before {
|
|
439
|
-
display: unset;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
130
|
+
// --- Removed placeholders ---
|
|
131
|
+
// %checkbox-radio-before, %select_default — REMOVED (February 2026).
|
|
132
|
+
// Migrated to .mg-form-check__input and .mg-form-select in _form-base.scss.
|
|
133
|
+
// %ctaimg, %chevron-right-expanded, %pseudo-icon — REMOVED (March 2026, #854). CtaLink removed.
|
|
134
|
+
// %paragraph-font-400, %footer-block, %arrow, %language_switcher, %absolute__overflow,
|
|
135
|
+
// %select_option, %select_rtl, %select_rtl_after, %no-animation, %header,
|
|
136
|
+
// %sub-external, %external, %footerlink, %footerlinkinvert, %selectoption, %logo
|
|
137
|
+
// — REMOVED (March 2026, #856). Zero consumers.
|
|
138
|
+
// @mixin background() — REMOVED (March 2026, #856). Zero callers; duplicated @mixin background-image().
|
|
444
139
|
|
|
445
140
|
/* placeholder end */
|
|
@@ -16,66 +16,11 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/* animation start */
|
|
20
|
-
*[data-viewport="true"] {
|
|
21
|
-
@extend %left-to-right;
|
|
22
|
-
|
|
23
|
-
&.inviewport {
|
|
24
|
-
@extend %inviewport_left_right;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.delay-1 {
|
|
29
|
-
transition-delay: 0.1s;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.delay-2 {
|
|
33
|
-
transition-delay: 0.2s;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.delay-3 {
|
|
37
|
-
transition-delay: 0.3s;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.delay-4 {
|
|
41
|
-
transition-delay: 0.4s;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.delay-5 {
|
|
45
|
-
transition-delay: 0.5s;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.scale-up {
|
|
49
|
-
@extend %scale-up;
|
|
50
|
-
|
|
51
|
-
&.inviewport {
|
|
52
|
-
@include transform(scale(1));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.opacity-only {
|
|
57
|
-
@extend %opacity-only;
|
|
58
|
-
|
|
59
|
-
&.inviewport {
|
|
60
|
-
@extend %inviewport_opacity_only;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
19
|
.mg-u-expand-to-size {
|
|
65
|
-
max-width: calc(100% -
|
|
20
|
+
max-width: calc(100% - #{mg-rem(10)});
|
|
66
21
|
|
|
67
22
|
@include devicebreak(medium) {
|
|
68
|
-
max-width: calc(100% -
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
[dir="rtl"] {
|
|
73
|
-
*[data-viewport="true"] {
|
|
74
|
-
@include transform(translateX(100px));
|
|
75
|
-
|
|
76
|
-
&.inviewport {
|
|
77
|
-
@extend %inviewport_left_right;
|
|
78
|
-
}
|
|
23
|
+
max-width: calc(100% - #{mg-rem(30)});
|
|
79
24
|
}
|
|
80
25
|
}
|
|
81
26
|
|
|
@@ -105,10 +50,6 @@ $colors-solid: (
|
|
|
105
50
|
background: #{$color};
|
|
106
51
|
}
|
|
107
52
|
|
|
108
|
-
// .blockquote
|
|
109
|
-
.blockquote {
|
|
110
|
-
background-color: #{$color};
|
|
111
|
-
}
|
|
112
53
|
}
|
|
113
54
|
}
|
|
114
55
|
|
|
@@ -288,6 +229,23 @@ $colors-solid: (
|
|
|
288
229
|
|
|
289
230
|
/* Color utilities end */
|
|
290
231
|
|
|
232
|
+
/* Flex and alignment utilities start */
|
|
233
|
+
|
|
234
|
+
// Flex container utilities
|
|
235
|
+
.mg-u-flex { display: flex; }
|
|
236
|
+
.mg-u-flex-wrap { flex-wrap: wrap; }
|
|
237
|
+
.mg-u-align-items-center { align-items: center; }
|
|
238
|
+
.mg-u-gap-100 { gap: $mg-spacing-100; }
|
|
239
|
+
|
|
240
|
+
// RTL-safe push utilities using CSS logical properties.
|
|
241
|
+
// Push an element toward the inline-end, inline-start, or center
|
|
242
|
+
// by collapsing the opposite margin with auto.
|
|
243
|
+
.mg-u-push-end { margin-inline-start: auto; }
|
|
244
|
+
.mg-u-push-start { margin-inline-end: auto; }
|
|
245
|
+
.mg-u-push-center { margin-inline: auto; }
|
|
246
|
+
|
|
247
|
+
/* Flex and alignment utilities end */
|
|
248
|
+
|
|
291
249
|
/* Font size utilities start */
|
|
292
250
|
|
|
293
251
|
.mg-u-font-size-150 {
|
|
@@ -355,16 +313,6 @@ $colors-solid: (
|
|
|
355
313
|
}
|
|
356
314
|
}
|
|
357
315
|
|
|
358
|
-
:lang(my) {
|
|
359
|
-
.mg-u-font-size-400,
|
|
360
|
-
.mg-u-font-size-500,
|
|
361
|
-
.mg-u-font-size-600,
|
|
362
|
-
.mg-u-font-size-800,
|
|
363
|
-
.mg-u-font-size-900 {
|
|
364
|
-
line-height: 1.7;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
316
|
:lang(ar) {
|
|
369
317
|
.mg-u-font-size-600,
|
|
370
318
|
.mg-u-font-size-800,
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @tokens DELTA Resilience Colors
|
|
3
|
+
* @presenter Color
|
|
4
|
+
*
|
|
5
|
+
* DELTA Resilience theme overrides for Mangrove.
|
|
6
|
+
* Source: deltaresilience.org mockups + GitHub issue #776
|
|
7
|
+
*
|
|
8
|
+
* Note: Delta's primary is a dark navy (rgb 19 46 72). Mangrove
|
|
9
|
+
* already defaults to Roboto. Differentiation is primarily in
|
|
10
|
+
* border-radius, button styling, and color palette.
|
|
11
|
+
*
|
|
12
|
+
* Open design questions:
|
|
13
|
+
* - IconCard accent palette: Delta mockups show 6 pastel icon background
|
|
14
|
+
* colors. Their design-system role (semantic, decorative, categorical) is
|
|
15
|
+
* unknown. Currently passed as raw hex via `iconColor` prop.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
// Delta-specific colors — brand palette
|
|
19
|
+
$delta-color-primary: rgb(19 46 72); // #132e48 — Delta's dark navy
|
|
20
|
+
$delta-color-primary-800: rgb(12 30 48); // Hover shade — ~20% darker
|
|
21
|
+
$delta-color-red: #b52a32; // Red accent from Delta CSS
|
|
22
|
+
$delta-color-dark: #181823; // Near-black for CTA banners and dark sections
|
|
23
|
+
|
|
24
|
+
// Delta accent palette — 6 pastel icon colors from "Key Features" cards.
|
|
25
|
+
// TODO: These are sampled from mockups. We need to understand these from a
|
|
26
|
+
// design-system perspective — are they semantic (mapped to categories/sections),
|
|
27
|
+
// decorative, or part of a formalized token set? Until clarified, they are
|
|
28
|
+
// passed as raw hex values via IconCard's `iconColor` prop.
|
|
29
|
+
$delta-color-accent-coral: #f4b8a8;
|
|
30
|
+
$delta-color-accent-teal: #b5d8d8;
|
|
31
|
+
$delta-color-accent-sky: #c0d8e8;
|
|
32
|
+
$delta-color-accent-peach: #f4d0a8; // TODO: confirm exact hex
|
|
33
|
+
$delta-color-accent-sage: #c8d8b5; // TODO: confirm exact hex
|
|
34
|
+
$delta-color-accent-lavender: #d0c0e8; // TODO: confirm exact hex
|
|
35
|
+
|
|
36
|
+
// Delta card background — avoids overriding the foundational neutral scale
|
|
37
|
+
$delta-color-card-bg: rgb(250 250 250); // #fafafa — Delta's lightest gray
|
|
38
|
+
|
|
39
|
+
// Interactive colors — links, focus rings (stays blue)
|
|
40
|
+
$mg-color-interactive: $delta-color-primary;
|
|
41
|
+
$mg-color-interactive-active: $delta-color-primary;
|
|
42
|
+
|
|
43
|
+
// Tags
|
|
44
|
+
$mg-color-tag: $mg-color-interactive;
|
|
45
|
+
$mg-color-tag--hover: $mg-color-interactive-active;
|
|
46
|
+
|
|
47
|
+
// $mg-color-tag-secondary, $mg-color-tag-accent — use defaults
|
|
48
|
+
$mg-radius-tag: $mg-spacing-50;
|
|
49
|
+
|
|
50
|
+
// Buttons — outline style, rounded corners, blue border/text on light backgrounds
|
|
51
|
+
$mg-color-button: $delta-color-primary;
|
|
52
|
+
$mg-color-button--hover: $delta-color-primary-800;
|
|
53
|
+
$mg-color-button-background: transparent;
|
|
54
|
+
$mg-color-button-background--hover: rgba($delta-color-primary, 0.06);
|
|
55
|
+
$mg-color-text-button: $delta-color-primary;
|
|
56
|
+
$mg-border-color-button: $delta-color-primary;
|
|
57
|
+
$mg-radius-button: $mg-spacing-50;
|
|
58
|
+
$mg-border-width-button: 2px;
|
|
59
|
+
$mg-padding-button: $mg-spacing-100 $mg-spacing-200;
|
|
60
|
+
$mg-font-size-button: $mg-font-size-250;
|
|
61
|
+
|
|
62
|
+
// Cards — light tinted background with padding, rounded corners
|
|
63
|
+
$mg-card-background: $delta-color-card-bg;
|
|
64
|
+
$mg-card-padding: $mg-spacing-150;
|
|
65
|
+
$mg-card-border-radius: $mg-spacing-50;
|
|
66
|
+
$mg-card-icon-badge-radius: 15%;
|
|
67
|
+
|
|
68
|
+
// Form elements
|
|
69
|
+
$mg-color-form-check: $mg-color-interactive;
|
|
70
|
+
$mg-color-form-check--hover: $mg-color-interactive-active;
|
|
71
|
+
$mg-color-form-check--checked: $mg-color-interactive;
|
|
72
|
+
$mg-color-form-focus: $mg-color-interactive;
|
|
73
|
+
$mg-radius-form-input: $mg-spacing-50;
|
|
74
|
+
|
|
75
|
+
// Mega menu — white panel on Delta (base default is $mg-color-button which is dark navy here)
|
|
76
|
+
$mg-color-mega-content-bg: $mg-color-white;
|
|
77
|
+
|
|
78
|
+
// Hero — wider overlay and extra padding for Delta's layout
|
|
79
|
+
$mg-color-hero: $delta-color-primary;
|
|
80
|
+
$mg-opacity-hero: 1;
|
|
81
|
+
$mg-hero-overlay-max-width: $mg-width-600;
|
|
82
|
+
$mg-hero-overlay-padding: $mg-spacing-400;
|
|
83
|
+
$mg-color-hero-title: oklch(68.5% 0.169 237.323);
|
|
84
|
+
$mg-color-hero--tertiary: $delta-color-dark; // Dark CTA banner sections
|
|
85
|
+
$mg-spacing-hero-overlay: mg-rem(20) 0;
|
|
86
|
+
|
|
87
|
+
// Tabs — TODO: underline vs boxed style needs confirmation from Delta design team
|
|
88
|
+
$mg-color-tabbar-background: none;
|
|
89
|
+
$mg-color-tab-background: $delta-color-primary;
|
|
90
|
+
$mg-color-tab-background--inactive: $mg-color-white;
|
|
91
|
+
$mg-color-tab-border: $mg-color-blue-200;
|
|
92
|
+
$mg-color-tab-border--hover: $delta-color-primary-800;
|
|
93
|
+
$mg-color-tab-border--active: $mg-color-blue-200;
|
|
94
|
+
$mg-color-tab-background--hover: rgba($delta-color-primary, 0.7);
|
|
95
|
+
$mg-radius-tab: $mg-spacing-50 $mg-spacing-50 0 0;
|
|
96
|
+
$mg-padding-tab: $mg-spacing-150 $mg-spacing-200;
|
|
97
|
+
$mg-color-text-tab: $mg-color-neutral-700;
|
|
98
|
+
$mg-color-text-tab--hover: $mg-color-white;
|
|
99
|
+
$mg-color-text-tab-active: $mg-color-white;
|
|
100
|
+
$mg-padding-tab-section: $mg-spacing-300;
|
|
101
|
+
$mg-radius-tab-section: $mg-spacing-50;
|
|
102
|
+
$mg-box-shadow-tab-section: none;
|
|
103
|
+
$mg-tabs-border-bottom: true;
|
|
104
|
+
|
|
105
|
+
/* variables end */
|