@undrr/undrr-mangrove 1.8.2 → 2.0.0-alpha.2
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 +1 -1
- 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/FormAction.js +6 -0
- package/components/FormAction.js.LICENSE.txt +9 -0
- 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 +1 -1
- package/components/HorizontalCard.js +2 -2
- package/components/HorizontalCard.js.LICENSE.txt +1 -1
- package/components/IconCard.js +2 -2
- package/components/IconCard.js.LICENSE.txt +1 -1
- 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 +10 -0
- 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 +10 -0
- package/components/TextInput.js +3 -2
- package/components/Textarea.js +3 -2
- package/components/UserFeedback.js +6 -0
- package/components/UserFeedback.js.LICENSE.txt +9 -0
- package/components/VerticalCard.js +2 -2
- package/components/VerticalCard.js.LICENSE.txt +1 -1
- package/components/hydrate.js +1 -1
- package/css/style-all.css +422 -0
- package/css/style-all.css.map +1 -0
- package/css/style-delta.css +122 -171
- package/css/style-delta.css.map +1 -1
- package/css/style-gutenberg.css +55 -89
- package/css/style-gutenberg.css.map +1 -1
- package/css/style-irp.css +122 -161
- package/css/style-irp.css.map +1 -1
- package/css/style-mcr.css +122 -161
- package/css/style-mcr.css.map +1 -1
- package/css/style-preventionweb.css +122 -161
- package/css/style-preventionweb.css.map +1 -1
- package/css/style.css +121 -154
- package/css/style.css.map +1 -1
- package/package.json +2 -2
- package/scss/Atom/BaseTypography/Abbr/abbr.scss +1 -1
- package/scss/Atom/BaseTypography/Code/code.scss +41 -36
- 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 +10 -3
- package/scss/Atom/ReachElement/Details/details.scss +44 -39
- package/scss/Atom/Table/table.scss +22 -10
- 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 +63 -23
- package/scss/Components/Buttons/CtaButton/cta-button.scss +142 -20
- package/scss/Components/Buttons/ShareButtons/share-buttons.scss +16 -16
- package/scss/Components/Cards/Card/card.scss +77 -50
- package/scss/Components/Cards/StatsCard/stats-card.scss +32 -34
- package/scss/Components/CookieConsentBanner/cookie-consent-banner.scss +75 -74
- package/scss/Components/ErrorPages/error-pages.scss +9 -9
- package/scss/Components/Footer/footer.scss +12 -12
- package/scss/Components/Forms/FormAction/form-action.scss +50 -0
- package/scss/Components/Forms/FormGroup/form-group.scss +18 -7
- 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 +68 -61
- package/scss/Components/Gallery/gallery.scss +71 -70
- package/scss/Components/Hero/hero.scss +241 -74
- package/scss/Components/HighlightBox/highlight-box.scss +3 -3
- package/scss/Components/MegaMenu/mega-menu.scss +73 -76
- package/scss/Components/OnThisPageNav/on-this-page-nav.scss +36 -37
- package/scss/Components/PageHeader/page-header.scss +7 -7
- package/scss/Components/Pager/pager.scss +85 -62
- 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 +52 -32
- package/scss/Components/Snackbar/snackbar.scss +24 -31
- package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +147 -139
- package/scss/Components/Tab/tab.scss +215 -34
- package/scss/Components/TableOfContents/table-of-contents.scss +6 -6
- package/scss/Components/TextCta/text-cta.scss +69 -23
- package/scss/Components/UserFeedback/user-feedback.scss +69 -0
- 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 +3 -2
- package/scss/assets/scss/_foundational.scss +44 -26
- package/scss/assets/scss/_mixins.scss +34 -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 +358 -354
- 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/Components/Pagination/pagination.scss +0 -112
- 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
|
@@ -5,11 +5,11 @@ g-grid {
|
|
|
5
5
|
|
|
6
6
|
.mg-grid > * {
|
|
7
7
|
flex: 1;
|
|
8
|
-
margin:
|
|
8
|
+
margin: var(--mg-spacing-0) var(--mg-spacing-0) var(--mg-spacing-100) 1.2292%;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.mg-grid > *:first-child {
|
|
12
|
-
margin-left:
|
|
12
|
+
margin-left: var(--mg-spacing-0);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
[class*="mg-grid__"] {
|
|
@@ -20,50 +20,50 @@ g-grid {
|
|
|
20
20
|
// Unfortunately IE11 (which this flexbox grid is for) does not support calc inside of flex
|
|
21
21
|
// So we've hard coded the percentage values. All other modern browsers get to use grid.
|
|
22
22
|
.mg-grid__col-2 > * {
|
|
23
|
-
flex:
|
|
23
|
+
flex: var(--mg-spacing-0) var(--mg-spacing-0) 49.38538%;
|
|
24
24
|
max-width: 49.38538%;
|
|
25
25
|
|
|
26
26
|
&:nth-of-type(3n) {
|
|
27
|
-
margin-left:
|
|
27
|
+
margin-left: var(--mg-spacing-0);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.mg-grid__col-3 > * {
|
|
32
|
-
flex:
|
|
32
|
+
flex: var(--mg-spacing-0) var(--mg-spacing-0) 32.51384%;
|
|
33
33
|
max-width: 32.51384%;
|
|
34
34
|
|
|
35
35
|
&:nth-of-type(4n) {
|
|
36
|
-
margin-left:
|
|
36
|
+
margin-left: var(--mg-spacing-0);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.mg-grid__col-4 > * {
|
|
41
41
|
// 0.9219246
|
|
42
|
-
flex:
|
|
42
|
+
flex: var(--mg-spacing-0) var(--mg-spacing-0) 24.078%;
|
|
43
43
|
max-width: 24.078%;
|
|
44
44
|
|
|
45
45
|
&:nth-of-type(5n) {
|
|
46
|
-
margin-left:
|
|
46
|
+
margin-left: var(--mg-spacing-0);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.mg-grid__col-5 > * {
|
|
51
51
|
// 0.98338624
|
|
52
|
-
flex:
|
|
52
|
+
flex: var(--mg-spacing-0) var(--mg-spacing-0) 19.01661%;
|
|
53
53
|
max-width: 19.01661%;
|
|
54
54
|
|
|
55
55
|
&:nth-of-type(6n) {
|
|
56
|
-
margin-left:
|
|
56
|
+
margin-left: var(--mg-spacing-0);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.mg-grid__col-6 > * {
|
|
61
61
|
// 1.024360667
|
|
62
|
-
flex:
|
|
62
|
+
flex: var(--mg-spacing-0) var(--mg-spacing-0) 15.6423%;
|
|
63
63
|
max-width: 15.6423%;
|
|
64
64
|
|
|
65
65
|
&:nth-of-type(7n) {
|
|
66
|
-
margin-left:
|
|
66
|
+
margin-left: var(--mg-spacing-0);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -81,8 +81,8 @@ g-grid {
|
|
|
81
81
|
.mg-grid {
|
|
82
82
|
display: grid;
|
|
83
83
|
grid-column: main;
|
|
84
|
-
column-gap:
|
|
85
|
-
row-gap:
|
|
84
|
+
column-gap: var(--mg-spacing-200);
|
|
85
|
+
row-gap: var(--mg-spacing-200);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
@media (min-width: $mg-breakpoint-tablet) {
|
|
@@ -99,7 +99,7 @@ g-grid {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.mg-grid > * {
|
|
102
|
-
margin:
|
|
102
|
+
margin: var(--mg-spacing-0);
|
|
103
103
|
max-width: unset;
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -9,13 +9,20 @@
|
|
|
9
9
|
letter-spacing: 0.03em;
|
|
10
10
|
|
|
11
11
|
&:hover {
|
|
12
|
-
color:
|
|
12
|
+
color: rgb(var(--mg-color-neutral-600));
|
|
13
13
|
cursor: pointer;
|
|
14
|
+
text-decoration: underline;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:focus-visible {
|
|
18
|
+
@include mg-focus-ring;
|
|
19
|
+
|
|
20
|
+
text-decoration: underline;
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
&.selected {
|
|
17
|
-
border-bottom: 2px solid
|
|
18
|
-
padding-bottom:
|
|
24
|
+
border-bottom: 2px solid rgb(var(--mg-color-red-900));
|
|
25
|
+
padding-bottom: var(--mg-spacing-25);
|
|
19
26
|
}
|
|
20
27
|
}
|
|
21
28
|
}
|
|
@@ -6,16 +6,14 @@ details {
|
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
|
|
8
8
|
&:focus-visible {
|
|
9
|
-
|
|
10
|
-
outline-offset: 2px;
|
|
11
|
-
border-radius: mg-rem(2);
|
|
9
|
+
@include mg-focus-ring;
|
|
12
10
|
}
|
|
13
11
|
}
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
/* Enhanced: opt-in card treatment via .mg-details */
|
|
17
15
|
details.mg-details {
|
|
18
|
-
border: 1px solid
|
|
16
|
+
border: 1px solid rgb(var(--mg-color-neutral-400)); // #808080 — 3.95:1 on white (passes WCAG 1.4.11)
|
|
19
17
|
border-radius: mg-rem(4);
|
|
20
18
|
padding: mg-rem(10);
|
|
21
19
|
transition: box-shadow 0.2s ease-in-out;
|
|
@@ -27,15 +25,20 @@ details.mg-details {
|
|
|
27
25
|
> summary {
|
|
28
26
|
@extend %paragraph-font-300;
|
|
29
27
|
|
|
30
|
-
color:
|
|
28
|
+
color: rgb(var(--mg-color-interactive));
|
|
31
29
|
font-weight: 600;
|
|
32
30
|
list-style-type: none;
|
|
33
|
-
|
|
31
|
+
min-height: mg-rem(48);
|
|
32
|
+
padding-block: mg-rem(10);
|
|
33
|
+
padding-inline: mg-rem(10) mg-rem(44);
|
|
34
34
|
position: relative;
|
|
35
35
|
transition: background-color 0.2s ease-in-out;
|
|
36
36
|
|
|
37
37
|
&:hover {
|
|
38
|
-
background-color:
|
|
38
|
+
background-color: rgb(
|
|
39
|
+
var(--mg-color-blue-900) / 0.08
|
|
40
|
+
); // interactive hover tint
|
|
41
|
+
|
|
39
42
|
border-radius: mg-rem(2);
|
|
40
43
|
}
|
|
41
44
|
|
|
@@ -44,17 +47,36 @@ details.mg-details {
|
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
&::before {
|
|
47
|
-
|
|
50
|
+
align-items: center;
|
|
51
|
+
background: rgb(var(--mg-color-interactive) / 0.06);
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
content: "+";
|
|
54
|
+
display: flex;
|
|
55
|
+
font-family: $mg-font-family;
|
|
56
|
+
font-size: $mg-font-size-400;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
height: mg-rem(30);
|
|
59
|
+
inset-inline-end: mg-rem(10);
|
|
60
|
+
justify-content: center;
|
|
48
61
|
position: absolute;
|
|
49
|
-
left: mg-rem(10);
|
|
50
62
|
top: 50%;
|
|
51
|
-
transform: translateY(-50%);
|
|
52
|
-
width:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
transform: translateY(-50%);
|
|
64
|
+
width: mg-rem(30);
|
|
65
|
+
|
|
66
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
67
|
+
transition:
|
|
68
|
+
background-color var(--mg-motion-duration-fast)
|
|
69
|
+
var(--mg-motion-easing-standard),
|
|
70
|
+
scale var(--mg-motion-duration-fast) var(--mg-motion-easing-standard);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:hover::before {
|
|
75
|
+
background: rgb(var(--mg-color-interactive) / 0.12);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:active::before {
|
|
79
|
+
scale: 0.96;
|
|
58
80
|
}
|
|
59
81
|
}
|
|
60
82
|
|
|
@@ -67,35 +89,18 @@ details.mg-details {
|
|
|
67
89
|
}
|
|
68
90
|
|
|
69
91
|
&[open] {
|
|
70
|
-
border-color:
|
|
92
|
+
border-color: rgb(
|
|
93
|
+
var(--mg-color-interactive)
|
|
94
|
+
); // theme-adaptive; #004f91 = 8.27:1 on white
|
|
71
95
|
|
|
72
96
|
> summary {
|
|
73
97
|
margin-bottom: 0;
|
|
74
98
|
padding-bottom: mg-rem(10);
|
|
75
|
-
border-bottom: 1px solid
|
|
99
|
+
border-bottom: 1px solid rgb(var(--mg-color-neutral-400)); // 3.95:1 on white
|
|
76
100
|
|
|
77
101
|
&::before {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
[dir="rtl"] {
|
|
85
|
-
details.mg-details {
|
|
86
|
-
> summary {
|
|
87
|
-
padding: mg-rem(10) mg-rem(32) mg-rem(10) mg-rem(10);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
> summary::before {
|
|
91
|
-
left: auto;
|
|
92
|
-
right: mg-rem(10);
|
|
93
|
-
transform: translateY(-50%) rotate(180deg); // ◄ collapsed (RTL)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&[open] {
|
|
97
|
-
> summary::before {
|
|
98
|
-
transform: translateY(-50%) rotate(90deg); // ▼ open (RTL)
|
|
102
|
+
content: "−";
|
|
103
|
+
transform: translateY(-50%);
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
106
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
@extend %border-none;
|
|
24
24
|
|
|
25
25
|
&:nth-child(even) {
|
|
26
|
-
background-color:
|
|
26
|
+
background-color: rgb(var(--mg-color-neutral-25));
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
th,
|
|
35
35
|
td {
|
|
36
|
-
border: 1px solid
|
|
36
|
+
border: 1px solid rgb(var(--mg-color-neutral-400));
|
|
37
37
|
border-collapse: collapse;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
min-width: 50px;
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
|
|
63
63
|
&.mg-table--border {
|
|
64
64
|
tr {
|
|
65
|
-
border: 1px solid
|
|
65
|
+
border: 1px solid rgb(var(--mg-color-neutral-400));
|
|
66
66
|
|
|
67
67
|
th,
|
|
68
68
|
td {
|
|
69
69
|
@extend %border-none;
|
|
70
70
|
|
|
71
71
|
@include devicebreak(medium) {
|
|
72
|
-
border: 1px solid
|
|
72
|
+
border: 1px solid rgb(var(--mg-color-neutral-400));
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -81,20 +81,33 @@
|
|
|
81
81
|
.mg-table td {
|
|
82
82
|
font-size: $mg-font-size-300;
|
|
83
83
|
line-height: 1.4;
|
|
84
|
-
padding:
|
|
84
|
+
padding: var(--mg-spacing-25);
|
|
85
|
+
text-align: start;
|
|
85
86
|
vertical-align: top;
|
|
86
87
|
|
|
87
88
|
@include devicebreak(medium) {
|
|
88
|
-
padding:
|
|
89
|
+
padding: var(--mg-spacing-25) var(--mg-spacing-200) var(--mg-spacing-25)
|
|
90
|
+
var(--mg-spacing-25);
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
.mg-table thead tr th {
|
|
93
|
-
// background-color:
|
|
95
|
+
// background-color: rgb(var(--mg-color-neutral-300));
|
|
94
96
|
font-weight: 600;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.mg-table .mg-table__cell--start {
|
|
100
|
+
text-align: start;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mg-table .mg-table__cell--center {
|
|
95
104
|
text-align: center;
|
|
96
105
|
}
|
|
97
106
|
|
|
107
|
+
.mg-table .mg-table__cell--end {
|
|
108
|
+
text-align: end;
|
|
109
|
+
}
|
|
110
|
+
|
|
98
111
|
.mg-table tbody tr {
|
|
99
112
|
@extend %border-bottom;
|
|
100
113
|
}
|
|
@@ -119,10 +132,9 @@
|
|
|
119
132
|
[dir="rtl"] {
|
|
120
133
|
.mg-table th,
|
|
121
134
|
.mg-table td {
|
|
122
|
-
text-align: right;
|
|
123
|
-
|
|
124
135
|
@include devicebreak(medium) {
|
|
125
|
-
padding:
|
|
136
|
+
padding: var(--mg-spacing-25) var(--mg-spacing-25) var(--mg-spacing-25)
|
|
137
|
+
var(--mg-spacing-200);
|
|
126
138
|
}
|
|
127
139
|
}
|
|
128
140
|
}
|
package/scss/Atom/Tag/tag.scss
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// -
|
|
3
3
|
// A compact tag used to categorise content (content type, country, theme, etc.).
|
|
4
4
|
// Inherits its background from the --tag-color-background CSS custom property set
|
|
5
|
-
// by each site theme, falling back to the
|
|
5
|
+
// by each site theme, falling back to the rgb(var(--mg-color-tag)) token.
|
|
6
6
|
// -
|
|
7
7
|
// Usage:
|
|
8
8
|
// <span class="mg-tag">Organization</span>
|
|
@@ -14,72 +14,72 @@
|
|
|
14
14
|
|
|
15
15
|
.mg-tag {
|
|
16
16
|
display: inline-block;
|
|
17
|
-
padding:
|
|
17
|
+
padding: var(--mg-spacing-25) var(--mg-spacing-50);
|
|
18
18
|
font-family: $mg-font-family-headings;
|
|
19
19
|
font-size: $mg-font-size-250;
|
|
20
20
|
font-weight: 500;
|
|
21
21
|
line-height: 1.4;
|
|
22
22
|
color: #fff;
|
|
23
|
-
background-color:
|
|
24
|
-
background-color: var(--tag-color-background, #{
|
|
25
|
-
border-radius:
|
|
23
|
+
background-color: rgb(var(--mg-color-tag));
|
|
24
|
+
background-color: var(--tag-color-background, #{rgb(var(--mg-color-tag))});
|
|
25
|
+
border-radius: var(--mg-radius-tag);
|
|
26
26
|
text-decoration: none;
|
|
27
27
|
transition: background-color 0.2s ease;
|
|
28
28
|
|
|
29
29
|
&:hover {
|
|
30
30
|
color: #fff;
|
|
31
|
-
background-color:
|
|
32
|
-
background-color: var(--tag-color-background-hover, #{
|
|
31
|
+
background-color: rgb(var(--mg-color-tag--hover));
|
|
32
|
+
background-color: var(--tag-color-background-hover, #{rgb(var(--mg-color-tag--hover))});
|
|
33
33
|
text-decoration: none;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// --secondary: de-emphasised/metadata tags (neutral gray)
|
|
38
38
|
.mg-tag--secondary {
|
|
39
|
-
background-color:
|
|
40
|
-
background-color: var(--tag-color-background-secondary, #{
|
|
39
|
+
background-color: rgb(var(--mg-color-tag-secondary));
|
|
40
|
+
background-color: var(--tag-color-background-secondary, #{rgb(var(--mg-color-tag-secondary))});
|
|
41
41
|
|
|
42
42
|
&:hover {
|
|
43
|
-
background-color:
|
|
44
|
-
background-color: var(--tag-color-background-secondary-hover, #{
|
|
43
|
+
background-color: rgb(var(--mg-color-tag-secondary--hover));
|
|
44
|
+
background-color: var(--tag-color-background-secondary-hover, #{rgb(var(--mg-color-tag-secondary--hover))});
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// --outline: subtle border-only tag
|
|
49
49
|
.mg-tag--outline {
|
|
50
|
-
color:
|
|
51
|
-
color: var(--tag-color-background, #{
|
|
50
|
+
color: rgb(var(--mg-color-tag));
|
|
51
|
+
color: var(--tag-color-background, #{rgb(var(--mg-color-tag))});
|
|
52
52
|
background-color: transparent;
|
|
53
|
-
border: 1px solid
|
|
54
|
-
border-color: var(--tag-color-background, #{
|
|
53
|
+
border: 1px solid rgb(var(--mg-color-tag));
|
|
54
|
+
border-color: var(--tag-color-background, #{rgb(var(--mg-color-tag))});
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
57
|
-
color:
|
|
58
|
-
color: var(--tag-color-background, #{
|
|
59
|
-
background-color:
|
|
60
|
-
background-color: var(--tag-color-background-outline-hover, #{
|
|
57
|
+
color: rgb(var(--mg-color-tag));
|
|
58
|
+
color: var(--tag-color-background, #{rgb(var(--mg-color-tag))});
|
|
59
|
+
background-color: rgb(var(--mg-color-blue-50));
|
|
60
|
+
background-color: var(--tag-color-background-outline-hover, #{rgb(var(--mg-color-blue-50))});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// --accent: featured/highlighted content (orange)
|
|
65
65
|
.mg-tag--accent {
|
|
66
|
-
background-color:
|
|
67
|
-
background-color: var(--tag-color-background-accent, #{
|
|
66
|
+
background-color: rgb(var(--mg-color-tag-accent));
|
|
67
|
+
background-color: var(--tag-color-background-accent, #{rgb(var(--mg-color-tag-accent))});
|
|
68
68
|
|
|
69
69
|
&:hover {
|
|
70
|
-
background-color:
|
|
71
|
-
background-color: var(--tag-color-background-accent-hover, #{
|
|
70
|
+
background-color: rgb(var(--mg-color-tag-accent--hover));
|
|
71
|
+
background-color: var(--tag-color-background-accent-hover, #{rgb(var(--mg-color-tag-accent--hover))});
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// Adjacent tag spacing
|
|
76
76
|
.mg-tag + .mg-tag {
|
|
77
|
-
margin-left:
|
|
77
|
+
margin-left: var(--mg-spacing-25);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
[dir="rtl"] .mg-tag + .mg-tag {
|
|
81
81
|
margin-left: 0;
|
|
82
|
-
margin-right:
|
|
82
|
+
margin-right: var(--mg-spacing-25);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
// Tag container — auto-styles child elements as tags.
|
|
@@ -88,28 +88,28 @@
|
|
|
88
88
|
.mg-tag-container {
|
|
89
89
|
display: flex;
|
|
90
90
|
flex-wrap: wrap;
|
|
91
|
-
gap:
|
|
91
|
+
gap: var(--mg-spacing-25);
|
|
92
92
|
|
|
93
93
|
> span,
|
|
94
94
|
> div,
|
|
95
95
|
> a,
|
|
96
96
|
> li {
|
|
97
97
|
display: inline-block;
|
|
98
|
-
padding:
|
|
98
|
+
padding: var(--mg-spacing-25) var(--mg-spacing-50);
|
|
99
99
|
font-size: $mg-font-size-250;
|
|
100
100
|
font-weight: 500;
|
|
101
101
|
line-height: 1.4;
|
|
102
102
|
color: #fff;
|
|
103
|
-
background-color:
|
|
104
|
-
background-color: var(--tag-color-background, #{
|
|
105
|
-
border-radius:
|
|
103
|
+
background-color: rgb(var(--mg-color-tag));
|
|
104
|
+
background-color: var(--tag-color-background, #{rgb(var(--mg-color-tag))});
|
|
105
|
+
border-radius: var(--mg-radius-tag);
|
|
106
106
|
text-decoration: none;
|
|
107
107
|
transition: background-color 0.2s ease;
|
|
108
108
|
|
|
109
109
|
&:hover {
|
|
110
110
|
color: #fff;
|
|
111
|
-
background-color:
|
|
112
|
-
background-color: var(--tag-color-background-hover, #{
|
|
111
|
+
background-color: rgb(var(--mg-color-tag--hover));
|
|
112
|
+
background-color: var(--tag-color-background-hover, #{rgb(var(--mg-color-tag--hover))});
|
|
113
113
|
text-decoration: none;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
.mg-boilerplate {
|
|
6
6
|
// Add your base styles here
|
|
7
|
-
padding:
|
|
8
|
-
border: 1px solid
|
|
9
|
-
border-radius:
|
|
7
|
+
padding: var(--mg-spacing-100);
|
|
8
|
+
border: 1px solid rgb(var(--mg-color-red-900));
|
|
9
|
+
border-radius: var(--mg-radius-button);
|
|
10
10
|
|
|
11
11
|
&__title {
|
|
12
12
|
font-size: mg-rem(15);
|
|
13
13
|
margin-bottom: mg-rem(10);
|
|
14
14
|
|
|
15
15
|
a {
|
|
16
|
-
color:
|
|
16
|
+
color: rgb(var(--mg-color-interactive));
|
|
17
17
|
text-decoration: underline;
|
|
18
18
|
text-underline-offset: 3px;
|
|
19
19
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&:focus-visible {
|
|
25
|
-
outline: 2px solid
|
|
25
|
+
outline: 2px solid rgb(var(--mg-color-interactive));
|
|
26
26
|
outline-offset: 2px;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
|
|
35
35
|
// Add any additional nested styles or modifiers here
|
|
36
36
|
&--primary {
|
|
37
|
-
background-color:
|
|
37
|
+
background-color: rgb(var(--mg-color-blue-200));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&--secondary {
|
|
41
|
-
background-color:
|
|
41
|
+
background-color: rgb(var(--mg-color-blue-100));
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
|
|
28
28
|
a {
|
|
29
29
|
background: none;
|
|
30
|
-
color:
|
|
30
|
+
color: rgb(var(--mg-color-text));
|
|
31
31
|
font-weight: 600;
|
|
32
32
|
letter-spacing: 0.03em;
|
|
33
33
|
|
|
34
34
|
&:hover {
|
|
35
|
-
color:
|
|
35
|
+
color: rgb(var(--mg-color-text));
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
display: inline-block;
|
|
44
44
|
width: 0.4em;
|
|
45
45
|
height: 0.4em;
|
|
46
|
-
border-right: 0.125em solid
|
|
47
|
-
border-top: 0.125em solid
|
|
46
|
+
border-right: 0.125em solid rgb(var(--mg-color-text));
|
|
47
|
+
border-top: 0.125em solid rgb(var(--mg-color-text));
|
|
48
48
|
transform: rotate(45deg);
|
|
49
49
|
|
|
50
50
|
// Asymmetric margin: left side is larger to optically center the rotated
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
|
|
62
62
|
.mg-breadcrumb.mg-breadcrumb--white {
|
|
63
63
|
li {
|
|
64
|
-
color:
|
|
64
|
+
color: rgb(var(--mg-color-white));
|
|
65
65
|
a {
|
|
66
|
-
color:
|
|
66
|
+
color: rgb(var(--mg-color-white));
|
|
67
67
|
|
|
68
68
|
&:hover {
|
|
69
|
-
color:
|
|
69
|
+
color: rgb(var(--mg-color-white));
|
|
70
70
|
opacity: 0.7;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
|
|
75
75
|
&:last-of-type,
|
|
76
76
|
li:last-of-type {
|
|
77
|
-
color:
|
|
77
|
+
color: rgb(var(--mg-color-white));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
li + li:before {
|
|
81
|
-
border-color:
|
|
81
|
+
border-color: rgb(var(--mg-color-white));
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -1,35 +1,75 @@
|
|
|
1
1
|
.mg-chip {
|
|
2
2
|
align-items: center;
|
|
3
|
-
background:
|
|
4
|
-
border
|
|
5
|
-
|
|
3
|
+
background: rgb(var(--mg-color-neutral-50));
|
|
4
|
+
border: 0;
|
|
5
|
+
border-radius: 999px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
box-shadow: var(--mg-shadow-raised);
|
|
8
|
+
color: rgb(var(--mg-color-text));
|
|
9
|
+
cursor: pointer;
|
|
6
10
|
display: inline-flex;
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
font-family: $mg-font-family;
|
|
12
|
+
font-size: $mg-font-size-250;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
line-height: 1.25;
|
|
16
|
+
min-height: mg-rem(40);
|
|
17
|
+
padding: var(--mg-spacing-50) var(--mg-spacing-150);
|
|
18
|
+
text-align: start;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
|
|
21
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
22
|
+
transition:
|
|
23
|
+
background-color var(--mg-motion-duration-fast)
|
|
24
|
+
var(--mg-motion-easing-standard),
|
|
25
|
+
box-shadow var(--mg-motion-duration-fast) var(--mg-motion-easing-standard),
|
|
26
|
+
color var(--mg-motion-duration-fast) var(--mg-motion-easing-standard),
|
|
27
|
+
scale var(--mg-motion-duration-fast) var(--mg-motion-easing-standard);
|
|
28
|
+
}
|
|
9
29
|
|
|
10
30
|
&:hover {
|
|
11
|
-
background-color:
|
|
31
|
+
background-color: rgb(var(--mg-color-neutral-300));
|
|
32
|
+
color: rgb(var(--mg-color-text));
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:active {
|
|
37
|
+
scale: 0.96;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:focus-visible {
|
|
41
|
+
border-radius: 999px;
|
|
42
|
+
box-shadow:
|
|
43
|
+
0 0 0 var(--mg-focus-ring-offset) rgb(var(--mg-color-neutral-0)),
|
|
44
|
+
0 0 0 calc(var(--mg-focus-ring-offset) + var(--mg-focus-ring-width))
|
|
45
|
+
rgb(var(--mg-color-focus-ring));
|
|
46
|
+
outline: 0;
|
|
12
47
|
}
|
|
13
48
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
margin-left: -$mg-spacing-25;
|
|
21
|
-
margin-right: $mg-spacing-25;
|
|
22
|
-
padding-right: mg-rem(14);
|
|
23
|
-
position: relative;
|
|
24
|
-
top: 0;
|
|
25
|
-
width: auto;
|
|
49
|
+
@media (forced-colors: active) {
|
|
50
|
+
border: 1px solid ButtonText;
|
|
51
|
+
|
|
52
|
+
&:focus-visible {
|
|
53
|
+
outline: 2px solid Highlight;
|
|
54
|
+
outline-offset: 2px;
|
|
26
55
|
}
|
|
27
56
|
}
|
|
28
|
-
}
|
|
29
57
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
58
|
+
&.mg-chip__cross::after {
|
|
59
|
+
align-items: center;
|
|
60
|
+
content: "×";
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
flex: 0 0 mg-rem(20);
|
|
63
|
+
font-size: mg-rem(18);
|
|
64
|
+
font-weight: 400;
|
|
65
|
+
height: mg-rem(20);
|
|
66
|
+
justify-content: center;
|
|
67
|
+
line-height: 1;
|
|
68
|
+
margin-inline-end: calc(-1 * var(--mg-spacing-50));
|
|
69
|
+
margin-inline-start: var(--mg-spacing-50);
|
|
34
70
|
}
|
|
35
71
|
}
|
|
72
|
+
|
|
73
|
+
:lang(ar) .mg-chip {
|
|
74
|
+
font-family: $mg-font-family-arabic-body;
|
|
75
|
+
}
|