@phillips/seldon 1.38.5 → 1.39.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/dist/components/Link/types.d.ts +7 -1
- package/dist/components/Link/types.js +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationItem.d.ts +6 -1
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +20 -19
- package/dist/components/Text/types.d.ts +8 -0
- package/dist/components/Text/types.js +1 -1
- package/dist/scss/_type.scss +92 -17
- package/dist/scss/_utils.scss +2 -0
- package/dist/scss/_vars.scss +135 -26
- package/dist/scss/components/Link/_link.scss +39 -2
- package/package.json +1 -1
|
@@ -12,5 +12,11 @@ export declare enum LinkVariants {
|
|
|
12
12
|
/** link is being rendered in a nav bar flyout*/
|
|
13
13
|
navLinkLg = "navLinkLg",
|
|
14
14
|
/** link is being rendered in a nav bar flyout*/
|
|
15
|
-
navLinkSm = "navLinkSm"
|
|
15
|
+
navLinkSm = "navLinkSm",
|
|
16
|
+
/** link is being rendered in a footer */
|
|
17
|
+
link = "link",
|
|
18
|
+
/** link is being rendered in a footer|header */
|
|
19
|
+
snwHeaderLink = "snwHeaderLink",
|
|
20
|
+
/** link is being rendered in a footer|header */
|
|
21
|
+
snwFlyoutLink = "snwFlyoutLink"
|
|
16
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ ((n) => (n.standalone = "standalone", n.email = "email", n.list = "list", n.inline = "inline", n.navMain = "navMain", n.navLinkLg = "navLinkLg", n.navLinkSm = "navLinkSm", n))(e || {});
|
|
1
|
+
var e = /* @__PURE__ */ ((n) => (n.standalone = "standalone", n.email = "email", n.list = "list", n.inline = "inline", n.navMain = "navMain", n.navLinkLg = "navLinkLg", n.navLinkSm = "navLinkSm", n.link = "link", n.snwHeaderLink = "snwHeaderLink", n.snwFlyoutLink = "snwFlyoutLink", n))(e || {});
|
|
2
2
|
export {
|
|
3
3
|
e as LinkVariants
|
|
4
4
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { LinkProps } from '../../Link/Link';
|
|
2
3
|
import { LinkVariants } from '../../Link/utils';
|
|
3
4
|
export interface NavigationItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>, 'onClick'> {
|
|
4
5
|
/**
|
|
@@ -25,6 +26,10 @@ export interface NavigationItemProps extends Omit<React.HTMLAttributes<HTMLLIEle
|
|
|
25
26
|
* Optional type for navigation item
|
|
26
27
|
*/
|
|
27
28
|
navType?: LinkVariants;
|
|
29
|
+
/**
|
|
30
|
+
* Element to render within the navigation item, renders <Link> by default
|
|
31
|
+
*/
|
|
32
|
+
element?: React.ElementType<LinkProps>;
|
|
28
33
|
}
|
|
29
|
-
declare const NavigationItem: ({ badge, className, href, label, navGroup, navType, onClick, ...props }: React.PropsWithChildren<NavigationItemProps>) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare const NavigationItem: ({ badge, className, href, label, navGroup, navType, onClick, element: Component, ...props }: React.PropsWithChildren<NavigationItemProps>) => import("react/jsx-runtime").JSX.Element;
|
|
30
35
|
export default NavigationItem;
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { px as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { LinkVariants as
|
|
7
|
-
import { HeaderContext as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { px as a } from "../../../utils/index.js";
|
|
4
|
+
import x from "../../../node_modules/classnames/index.js";
|
|
5
|
+
import v from "../../Link/Link.js";
|
|
6
|
+
import { LinkVariants as _ } from "../../Link/utils.js";
|
|
7
|
+
import { HeaderContext as h } from "../../Header/Header.js";
|
|
8
|
+
const C = ({
|
|
9
9
|
badge: e,
|
|
10
|
-
className:
|
|
10
|
+
className: i = "",
|
|
11
11
|
href: r,
|
|
12
12
|
label: n,
|
|
13
13
|
navGroup: s,
|
|
14
|
-
navType:
|
|
14
|
+
navType: m,
|
|
15
15
|
onClick: o,
|
|
16
|
-
|
|
16
|
+
element: l = v,
|
|
17
|
+
...c
|
|
17
18
|
}) => {
|
|
18
|
-
const { expandedItem:
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
const { expandedItem: d } = f.useContext(h);
|
|
20
|
+
return /* @__PURE__ */ t(
|
|
20
21
|
"li",
|
|
21
22
|
{
|
|
22
|
-
...
|
|
23
|
+
...c,
|
|
23
24
|
onClick: o,
|
|
24
25
|
"data-testid": `nav-item-${n}`,
|
|
25
|
-
className:
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
e ? /* @__PURE__ */
|
|
26
|
+
className: x(`${a}-nav__item`, s, i),
|
|
27
|
+
children: /* @__PURE__ */ p(l, { href: r, variant: m || _.navMain, tabIndex: d === "" ? 0 : -1, children: [
|
|
28
|
+
/* @__PURE__ */ t("span", { className: `${a}-nav__item--label`, children: n }),
|
|
29
|
+
e ? /* @__PURE__ */ t("span", { className: `${a}-nav__item--badge `, children: e }) : null
|
|
29
30
|
] })
|
|
30
31
|
}
|
|
31
32
|
);
|
|
32
33
|
};
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
C as default
|
|
35
36
|
};
|
|
@@ -5,12 +5,20 @@ export declare enum TextVariants {
|
|
|
5
5
|
display3 = "display3",
|
|
6
6
|
display4 = "display4",
|
|
7
7
|
blockquote = "blockquote",
|
|
8
|
+
heading1 = "heading1",
|
|
8
9
|
heading2 = "heading2",
|
|
9
10
|
heading3 = "heading3",
|
|
10
11
|
heading4 = "heading4",
|
|
12
|
+
title1 = "title1",
|
|
13
|
+
title2 = "title2",
|
|
14
|
+
title3 = "title3",
|
|
15
|
+
title4 = "title4",
|
|
11
16
|
body1 = "body1",
|
|
12
17
|
body2 = "body2",
|
|
13
18
|
body3 = "body3",
|
|
19
|
+
string1 = "string1",
|
|
20
|
+
string2 = "string2",
|
|
21
|
+
string3 = "string3",
|
|
14
22
|
button = "button",
|
|
15
23
|
ctaLg = "ctaLg",
|
|
16
24
|
ctaSm = "ctaSm",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var l = /* @__PURE__ */ ((d) => (d.display0 = "display0", d.display1 = "display1", d.display2 = "display2", d.display3 = "display3", d.display4 = "display4", d.blockquote = "blockquote", d.heading2 = "heading2", d.heading3 = "heading3", d.heading4 = "heading4", d.body1 = "body1", d.body2 = "body2", d.body3 = "body3", d.button = "button", d.ctaLg = "ctaLg", d.ctaSm = "ctaSm", d.email = "email", d.label = "label", d.badge = "badge", d))(l || {});
|
|
1
|
+
var l = /* @__PURE__ */ ((d) => (d.display0 = "display0", d.display1 = "display1", d.display2 = "display2", d.display3 = "display3", d.display4 = "display4", d.blockquote = "blockquote", d.heading1 = "heading1", d.heading2 = "heading2", d.heading3 = "heading3", d.heading4 = "heading4", d.title1 = "title1", d.title2 = "title2", d.title3 = "title3", d.title4 = "title4", d.body1 = "body1", d.body2 = "body2", d.body3 = "body3", d.string1 = "string1", d.string2 = "string2", d.string3 = "string3", d.button = "button", d.ctaLg = "ctaLg", d.ctaSm = "ctaSm", d.email = "email", d.label = "label", d.badge = "badge", d))(l || {});
|
|
2
2
|
export {
|
|
3
3
|
l as TextVariants
|
|
4
4
|
};
|
package/dist/scss/_type.scss
CHANGED
|
@@ -38,30 +38,44 @@
|
|
|
38
38
|
padding-bottom: $padding;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@mixin hText(
|
|
41
|
+
@mixin hText(
|
|
42
|
+
$size: $heading-size1,
|
|
43
|
+
$color: $pure-black,
|
|
44
|
+
$transform-style: capitalize,
|
|
45
|
+
$line-height: $heading-line-height-size1
|
|
46
|
+
) {
|
|
42
47
|
color: $color;
|
|
43
48
|
font-family: DistinctDisplay, sans-serif;
|
|
44
49
|
font-size: $size;
|
|
45
50
|
font-weight: 400;
|
|
46
|
-
line-height:
|
|
51
|
+
line-height: $line-height;
|
|
52
|
+
text-decoration: none;
|
|
47
53
|
text-transform: $transform-style;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
|
-
@mixin pText($size: $body-size1, $color: $
|
|
56
|
+
@mixin pText($size: $body-size1, $color: $pure-black, $line-height: 1.5) {
|
|
51
57
|
color: $color;
|
|
52
58
|
font-family: Montserrat, sans-serif;
|
|
53
59
|
font-size: $size;
|
|
54
|
-
|
|
55
|
-
line-height: 1.5;
|
|
60
|
+
line-height: $line-height;
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
@mixin labelText($label) {
|
|
59
64
|
font-family: Montserrat, sans-serif;
|
|
60
65
|
|
|
66
|
+
@if $label == 'link' {
|
|
67
|
+
font-size: $link-button-label-size;
|
|
68
|
+
line-height: $link-label-line-height;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
letter-spacing: 1px;
|
|
71
|
+
text-transform: capitalize;
|
|
72
|
+
}
|
|
73
|
+
|
|
61
74
|
@if $label == 'button' {
|
|
62
|
-
font-size: $button-label-size;
|
|
63
|
-
|
|
64
|
-
|
|
75
|
+
font-size: $link-button-label-size;
|
|
76
|
+
line-height: $button-label-line-height;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
letter-spacing: 0;
|
|
65
79
|
text-transform: capitalize;
|
|
66
80
|
}
|
|
67
81
|
|
|
@@ -98,9 +112,9 @@
|
|
|
98
112
|
|
|
99
113
|
@if $label == 'badge' {
|
|
100
114
|
font-size: $badge-label-size;
|
|
115
|
+
line-height: $badge-label-line-height;
|
|
101
116
|
font-weight: 500;
|
|
102
|
-
letter-spacing: 0
|
|
103
|
-
line-height: 1.25;
|
|
117
|
+
letter-spacing: 0;
|
|
104
118
|
text-transform: uppercase;
|
|
105
119
|
}
|
|
106
120
|
}
|
|
@@ -111,6 +125,10 @@
|
|
|
111
125
|
@include labelText($button);
|
|
112
126
|
}
|
|
113
127
|
|
|
128
|
+
@if $token == 'link' {
|
|
129
|
+
@include labelText($link);
|
|
130
|
+
}
|
|
131
|
+
|
|
114
132
|
@if $token == 'cta-sm' {
|
|
115
133
|
@include labelText($cta-sm);
|
|
116
134
|
}
|
|
@@ -154,31 +172,88 @@
|
|
|
154
172
|
|
|
155
173
|
// Headings
|
|
156
174
|
@if $token == 'blockquote' {
|
|
157
|
-
@include hText(
|
|
175
|
+
@include hText(
|
|
176
|
+
$heading-size1,
|
|
177
|
+
$color: $primary-black,
|
|
178
|
+
$transform-style: initial,
|
|
179
|
+
$line-height: $heading-line-height-size1
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@if $token == 'heading1' {
|
|
184
|
+
@include hText($heading-size1, $line-height: $heading-line-height-size1, $transform-style: capitalize);
|
|
158
185
|
}
|
|
159
186
|
|
|
160
187
|
@if $token == 'heading2' {
|
|
161
|
-
@include hText($heading-size2);
|
|
188
|
+
@include hText($heading-size2, $line-height: $heading-line-height-size2, $transform-style: capitalize);
|
|
162
189
|
}
|
|
163
190
|
|
|
164
191
|
@if $token == 'heading3' {
|
|
165
|
-
@include hText($heading-size3);
|
|
192
|
+
@include hText($heading-size3, $line-height: $heading-line-height-size3, $transform-style: capitalize);
|
|
166
193
|
}
|
|
167
194
|
|
|
168
195
|
@if $token == 'heading4' {
|
|
169
|
-
@include hText($heading-size4);
|
|
196
|
+
@include hText($heading-size4, $line-height: $heading-line-height-size4, $transform-style: capitalize);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@if $token == 'title1' {
|
|
200
|
+
@include hText($heading-size1, $line-height: $heading-line-height-size1, $transform-style: uppercase);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@if $token == 'title2' {
|
|
204
|
+
@include hText($heading-size2, $line-height: $heading-line-height-size2, $transform-style: uppercase);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@if $token == 'title3' {
|
|
208
|
+
@include hText($heading-size3, $line-height: $heading-line-height-size3, $transform-style: uppercase);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@if $token == 'title4' {
|
|
212
|
+
@include hText($heading-size4, $line-height: $heading-line-height-size4, $transform-style: uppercase);
|
|
170
213
|
}
|
|
171
214
|
|
|
172
215
|
// Body
|
|
173
216
|
@if $token == 'body1' {
|
|
174
|
-
@include pText($body-size1);
|
|
217
|
+
@include pText($body-size1, $line-height: $body-line-height-size1);
|
|
175
218
|
}
|
|
176
219
|
|
|
177
220
|
@if $token == 'body2' {
|
|
178
|
-
@include pText($body-size2);
|
|
221
|
+
@include pText($body-size2, $line-height: $body-line-height-size2);
|
|
179
222
|
}
|
|
180
223
|
|
|
181
224
|
@if $token == 'body3' {
|
|
182
|
-
@include pText($body-size3);
|
|
225
|
+
@include pText($body-size3, $line-height: $body-line-height-size3);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// String
|
|
229
|
+
@if $token == 'string1' {
|
|
230
|
+
@include pText($string-size1, $line-height: $string-line-height-size1);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@if $token == 'string2' {
|
|
234
|
+
@include pText($string-size2, $line-height: $string-line-height-size2);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@if $token == 'string3' {
|
|
238
|
+
@include pText($string-size3, $line-height: $string-line-height-size3);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// SNW
|
|
242
|
+
@if $token == 'snwHeaderLink' {
|
|
243
|
+
font-family: $DistinctDisplay;
|
|
244
|
+
font-weight: 400;
|
|
245
|
+
letter-spacing: 1px;
|
|
246
|
+
font-size: $snw-header-link-size;
|
|
247
|
+
line-height: $snw-header-link-line-height;
|
|
248
|
+
text-transform: uppercase;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@if $token == 'snwFlyoutLink' {
|
|
252
|
+
font-family: $DistinctDisplay;
|
|
253
|
+
font-weight: 400;
|
|
254
|
+
letter-spacing: 1px;
|
|
255
|
+
font-size: $snw-flyout-link-size;
|
|
256
|
+
line-height: $snw-flyout-link-line-height;
|
|
257
|
+
text-transform: capitalize;
|
|
183
258
|
}
|
|
184
259
|
}
|
package/dist/scss/_utils.scss
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
display: grid;
|
|
57
57
|
gap: $spacing-md;
|
|
58
58
|
grid-template-columns: repeat($columns, 1fr);
|
|
59
|
+
row-gap: $spacing-lg;
|
|
59
60
|
|
|
60
61
|
@if $margins-on {
|
|
61
62
|
@include gridMargins;
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
display: grid;
|
|
67
68
|
gap: $spacing-md;
|
|
68
69
|
grid-template-columns: repeat(2, 1fr);
|
|
70
|
+
row-gap: $spacing-lg;
|
|
69
71
|
|
|
70
72
|
@media (min-width: $breakpoint-md) {
|
|
71
73
|
grid-template-columns: repeat(4, 1fr);
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -71,25 +71,37 @@ $text-family: $DistinctText;
|
|
|
71
71
|
// Used with the labelText mixin
|
|
72
72
|
// @include labelText($label)
|
|
73
73
|
$button: 'button';
|
|
74
|
+
$link: 'link';
|
|
75
|
+
$badge: 'badge';
|
|
74
76
|
$cta-sm: 'cta-sm';
|
|
75
77
|
$cta-lg: 'cta-lg';
|
|
76
78
|
$email: 'email';
|
|
77
79
|
$label: 'label';
|
|
78
|
-
$badge: 'badge';
|
|
79
80
|
$display0: 'display0';
|
|
80
81
|
$display1: 'display1';
|
|
81
82
|
$display2: 'display2';
|
|
82
83
|
$display3: 'display3';
|
|
83
84
|
$display4: 'display4';
|
|
84
85
|
$blockquote: 'blockquote';
|
|
86
|
+
$heading1: 'heading1';
|
|
85
87
|
$heading2: 'heading2';
|
|
86
88
|
$heading3: 'heading3';
|
|
87
89
|
$heading4: 'heading4';
|
|
90
|
+
$title1: 'title1';
|
|
91
|
+
$title2: 'title2';
|
|
92
|
+
$title3: 'title3';
|
|
93
|
+
$title4: 'title4';
|
|
88
94
|
$body1: 'body1';
|
|
89
95
|
$body2: 'body2';
|
|
90
96
|
$body3: 'body3';
|
|
97
|
+
$string1: 'string1';
|
|
98
|
+
$string2: 'string2';
|
|
99
|
+
$string3: 'string3';
|
|
100
|
+
$snwHeaderLink: 'snwHeaderLink';
|
|
101
|
+
$snwFlyoutLink: 'snwFlyoutLink';
|
|
91
102
|
$text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $display1, $display2, $display3, $display4,
|
|
92
|
-
$blockquote, $heading2, $heading3, $heading4, $body1, $body2, $body3
|
|
103
|
+
$blockquote, $heading1, $heading2, $heading3, $heading4, $title1, $title2, $title3, $title4, $body1, $body2, $body3,
|
|
104
|
+
$string1, $string2, $string3;
|
|
93
105
|
|
|
94
106
|
////////////////////////
|
|
95
107
|
/// FONT SIZE TOKENS:
|
|
@@ -97,42 +109,115 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
|
|
|
97
109
|
|
|
98
110
|
:root {
|
|
99
111
|
--heading-size0: 3.25rem;
|
|
100
|
-
--
|
|
101
|
-
--
|
|
102
|
-
--heading-
|
|
103
|
-
--heading-
|
|
112
|
+
--quote-size: 1.75rem;
|
|
113
|
+
--quote-line-height: 2.25rem;
|
|
114
|
+
--heading-size1: 1.75rem;
|
|
115
|
+
--heading-line-height-size1: 2rem;
|
|
116
|
+
--heading-size2: 1.5rem;
|
|
117
|
+
--heading-line-height-size2: 1.75rem;
|
|
118
|
+
--heading-size3: 1.25rem;
|
|
119
|
+
--heading-line-height-size3: 1.5rem;
|
|
120
|
+
--heading-size4: 1rem;
|
|
121
|
+
--heading-line-height-size4: 1.25rem;
|
|
122
|
+
--string-size1: 1.25rem;
|
|
123
|
+
--string-line-height-size1: 1.5rem;
|
|
124
|
+
--string-size2: 1rem;
|
|
125
|
+
--string-line-height-size2: 1.25rem;
|
|
126
|
+
--string-size3: 0.75rem;
|
|
127
|
+
--string-line-height-size3: 1rem;
|
|
104
128
|
--body-size1: 1.25rem;
|
|
129
|
+
--body-line-height-size1: 1.75rem;
|
|
105
130
|
--body-size2: 1rem;
|
|
131
|
+
--body-line-height-size2: 1.5rem;
|
|
106
132
|
--body-size3: 0.75rem;
|
|
133
|
+
--body-line-height-size3: 1.25rem;
|
|
107
134
|
--label-size1: 1.25rem;
|
|
108
135
|
--label-size2: 1rem;
|
|
109
136
|
--label-size3: 0.75rem;
|
|
137
|
+
--link-button-label-size: 1rem;
|
|
138
|
+
--link-label-line-height: 1rem;
|
|
139
|
+
--button-label-line-height: 1.25rem;
|
|
140
|
+
--badge-label-size: 0.75rem;
|
|
141
|
+
--badge-label-line-height: 1rem;
|
|
142
|
+
--snw-header-link-size: 0.875rem;
|
|
143
|
+
--snw-header-link-line-height: 1.5rem;
|
|
144
|
+
--snw-flyout-link-size: 0.875rem;
|
|
145
|
+
--snw-flyout-link-line-height: 1.75rem;
|
|
110
146
|
|
|
111
147
|
@media (max-width: 960px) {
|
|
112
148
|
--heading-size0: 2.59rem;
|
|
113
|
-
--
|
|
114
|
-
--
|
|
115
|
-
--heading-
|
|
116
|
-
--heading-
|
|
117
|
-
--
|
|
149
|
+
--quote-size: 1.5rem;
|
|
150
|
+
--quote-line-height: 2rem;
|
|
151
|
+
--heading-size1: 1.5rem;
|
|
152
|
+
--heading-line-height-size1: 1.75rem;
|
|
153
|
+
--heading-size2: 1.25rem;
|
|
154
|
+
--heading-line-height-size2: 1.5rem;
|
|
155
|
+
--heading-size3: 1rem;
|
|
156
|
+
--heading-line-height-size3: 1.25rem;
|
|
157
|
+
--heading-size4: 0.75rem;
|
|
158
|
+
--heading-line-height-size4: 1rem;
|
|
159
|
+
--string-size1: 1rem;
|
|
160
|
+
--string-line-height-size1: 1.25rem;
|
|
161
|
+
--string-size2: 0.75rem;
|
|
162
|
+
--string-line-height-size2: 1rem;
|
|
163
|
+
--string-size3: 0.5rem;
|
|
164
|
+
--string-line-height-size3: 0.75rem;
|
|
165
|
+
--body-size1: 1rem;
|
|
166
|
+
--body-line-height-size1: 1.5rem;
|
|
118
167
|
--body-size2: 0.75rem;
|
|
119
|
-
--body-
|
|
168
|
+
--body-line-height-size2: 1.25rem;
|
|
169
|
+
--body-size3: 0.5rem;
|
|
170
|
+
--body-line-height-size3: 1rem;
|
|
120
171
|
--label-size1: 1rem;
|
|
121
172
|
--label-size2: 0.75rem;
|
|
122
173
|
--label-size3: 0.56rem;
|
|
174
|
+
--link-button-label-size: 0.75rem;
|
|
175
|
+
--link-label-line-height: 0.75rem;
|
|
176
|
+
--button-label-line-height: 1rem;
|
|
177
|
+
--badge-label-size: 0.5rem;
|
|
178
|
+
--badge-label-line-height: 0.67rem;
|
|
179
|
+
--snw-header-link-size: 1rem;
|
|
180
|
+
--snw-header-link-line-height: 1.5rem;
|
|
181
|
+
--snw-flyout-link-size: 1rem;
|
|
182
|
+
--snw-flyout-link-line-height: 1.75rem;
|
|
123
183
|
}
|
|
124
184
|
|
|
125
185
|
@media (min-width: 1801px) {
|
|
126
186
|
--heading-size0: 4.06rem;
|
|
127
|
-
--
|
|
128
|
-
--
|
|
129
|
-
--heading-
|
|
130
|
-
--
|
|
187
|
+
--quote-size: 2rem;
|
|
188
|
+
--quote-line-height: 2.5rem;
|
|
189
|
+
--heading-size1: 2rem;
|
|
190
|
+
--heading-line-height-size1: 2.25rem;
|
|
191
|
+
--heading-size2: 1.75rem;
|
|
192
|
+
--heading-line-height-size2: 2rem;
|
|
193
|
+
--heading-size3: 1.5rem;
|
|
194
|
+
--heading-line-height-size3: 1.75rem;
|
|
195
|
+
--heading-size4: 1.25rem;
|
|
196
|
+
--heading-line-height-size4: 1.5rem;
|
|
197
|
+
--string-size1: 1.5rem;
|
|
198
|
+
--string-line-height-size1: 1.75rem;
|
|
199
|
+
--string-size2: 1.25rem;
|
|
200
|
+
--string-line-height-size2: 1.5rem;
|
|
201
|
+
--string-size3: 1rem;
|
|
202
|
+
--string-line-height-size3: 1.25rem;
|
|
203
|
+
--body-size1: 1.5rem;
|
|
204
|
+
--body-line-height-size1: 2rem;
|
|
131
205
|
--body-size2: 1.25rem;
|
|
132
|
-
--body-
|
|
206
|
+
--body-line-height-size2: 1.75rem;
|
|
207
|
+
--body-size3: 1rem;
|
|
208
|
+
--body-line-height-size3: 1.5rem;
|
|
133
209
|
--label-size1: 1.56rem;
|
|
134
210
|
--label-size2: 1.25rem;
|
|
135
211
|
--label-size3: 1rem;
|
|
212
|
+
--link-button-label-size: 1.25rem;
|
|
213
|
+
--link-label-line-height: 1.25rem;
|
|
214
|
+
--button-label-line-height: 1.5rem;
|
|
215
|
+
--badge-label-size: 1rem;
|
|
216
|
+
--badge-label-line-height: 1.5rem;
|
|
217
|
+
--snw-header-link-size: 1.125rem;
|
|
218
|
+
--snw-header-link-line-height: 1.75rem;
|
|
219
|
+
--snw-flyout-link-size: 1.125rem;
|
|
220
|
+
--snw-flyout-link-line-height: 2.125rem;
|
|
136
221
|
}
|
|
137
222
|
}
|
|
138
223
|
|
|
@@ -145,14 +230,29 @@ $display-size4: var(--heading-size4);
|
|
|
145
230
|
|
|
146
231
|
// HEADING
|
|
147
232
|
$heading-size1: var(--heading-size1);
|
|
233
|
+
$heading-line-height-size1: var(--heading-line-height-size1);
|
|
148
234
|
$heading-size2: var(--heading-size2);
|
|
235
|
+
$heading-line-height-size2: var(--heading-line-height-size2);
|
|
149
236
|
$heading-size3: var(--heading-size3);
|
|
237
|
+
$heading-line-height-size3: var(--heading-line-height-size3);
|
|
150
238
|
$heading-size4: var(--heading-size4);
|
|
239
|
+
$heading-line-height-size4: var(--heading-line-height-size4);
|
|
151
240
|
|
|
152
241
|
// BODY
|
|
153
242
|
$body-size1: var(--body-size1);
|
|
243
|
+
$body-line-height-size1: var(--body-line-height-size1);
|
|
154
244
|
$body-size2: var(--body-size2);
|
|
245
|
+
$body-line-height-size2: var(--body-line-height-size2);
|
|
155
246
|
$body-size3: var(--body-size3);
|
|
247
|
+
$body-line-height-size3: var(--body-line-height-size3);
|
|
248
|
+
|
|
249
|
+
// STRING
|
|
250
|
+
$string-size1: var(--string-size1);
|
|
251
|
+
$string-line-height-size1: var(--string-line-height-size1);
|
|
252
|
+
$string-size2: var(--string-size2);
|
|
253
|
+
$string-line-height-size2: var(--string-line-height-size2);
|
|
254
|
+
$string-size3: var(--string-size3);
|
|
255
|
+
$string-line-height-size3: var(--string-line-height-size3);
|
|
156
256
|
|
|
157
257
|
// LABELS
|
|
158
258
|
$button-label-size: var(--label-size2);
|
|
@@ -161,6 +261,15 @@ $email-label-size: var(--label-size2);
|
|
|
161
261
|
$cta-lg-label-size: var(--label-size1);
|
|
162
262
|
$text-label-size: var(--label-size3);
|
|
163
263
|
$badge-label-size: var(--label-size3);
|
|
264
|
+
$link-button-label-size: var(--link-button-label-size);
|
|
265
|
+
$link-label-line-height: var(--link-label-line-height);
|
|
266
|
+
$button-label-line-height: var(--button-label-line-height);
|
|
267
|
+
$badge-label-size: var(--badge-label-size);
|
|
268
|
+
$badge-label-line-height: var(--badge-label-line-height);
|
|
269
|
+
$snw-header-link-size: var(--snw-header-link-size);
|
|
270
|
+
$snw-header-link-line-height: var(--snw-header-link-line-height);
|
|
271
|
+
$snw-flyout-link-size: var(--snw-flyout-link-size);
|
|
272
|
+
$snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
|
|
164
273
|
|
|
165
274
|
////////////////////////
|
|
166
275
|
/// SPACING TOKENS:
|
|
@@ -172,24 +281,24 @@ $badge-label-size: var(--label-size3);
|
|
|
172
281
|
--spacing-sm: 1rem;
|
|
173
282
|
--spacing-md: 2rem;
|
|
174
283
|
--spacing-lg: 3rem;
|
|
175
|
-
--spacing-xl:
|
|
284
|
+
--spacing-xl: 4rem;
|
|
176
285
|
|
|
177
286
|
@media (max-width: 960px) {
|
|
178
|
-
--spacing-micro: 0.
|
|
179
|
-
--spacing-xsm: 0.
|
|
287
|
+
--spacing-micro: 0.25;
|
|
288
|
+
--spacing-xsm: 0.5rem;
|
|
180
289
|
--spacing-sm: 0.75rem;
|
|
181
|
-
--spacing-md: 1.
|
|
182
|
-
--spacing-lg: 2.
|
|
183
|
-
--spacing-xl:
|
|
290
|
+
--spacing-md: 1.75rem;
|
|
291
|
+
--spacing-lg: 2.75rem;
|
|
292
|
+
--spacing-xl: 3.75rem;
|
|
184
293
|
}
|
|
185
294
|
|
|
186
295
|
@media (min-width: 1801px) {
|
|
187
|
-
--spacing-micro: 0.
|
|
188
|
-
--spacing-xsm: 0.
|
|
296
|
+
--spacing-micro: 0.5rem;
|
|
297
|
+
--spacing-xsm: 0.75rem;
|
|
189
298
|
--spacing-sm: 1.25rem;
|
|
190
299
|
--spacing-md: 2.5rem;
|
|
191
300
|
--spacing-lg: 3.75rem;
|
|
192
|
-
--spacing-xl:
|
|
301
|
+
--spacing-xl: 5rem;
|
|
193
302
|
}
|
|
194
303
|
}
|
|
195
304
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
text-decoration: none;
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
|
|
8
|
-
&:hover:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm),
|
|
9
|
-
&:focus:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm) {
|
|
8
|
+
&:hover:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm, &--link, &--snwHeaderLink, &--snwFlyoutLink),
|
|
9
|
+
&:focus:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm, &--link, &--snwHeaderLink, &--snwFlyoutLink) {
|
|
10
10
|
@include underline;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -99,4 +99,41 @@
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
+
|
|
103
|
+
&--link {
|
|
104
|
+
border-bottom: 0;
|
|
105
|
+
font-size: $link-button-label-size;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
letter-spacing: 1px;
|
|
108
|
+
line-height: $link-label-line-height;
|
|
109
|
+
text-decoration: underline;
|
|
110
|
+
|
|
111
|
+
&:hover {
|
|
112
|
+
border-bottom: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&--snwHeaderLink {
|
|
117
|
+
color: $pure-black;
|
|
118
|
+
|
|
119
|
+
span {
|
|
120
|
+
@include text($snwHeaderLink);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:hover {
|
|
124
|
+
color: $pure-black;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&--snwFlyoutLink {
|
|
129
|
+
color: $pure-black;
|
|
130
|
+
|
|
131
|
+
span {
|
|
132
|
+
@include text($snwFlyoutLink);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:hover {
|
|
136
|
+
color: $pure-black;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
102
139
|
}
|