@phillips/seldon 1.40.0 → 1.41.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/HeroBanner/HeroBanner.js +21 -21
- package/dist/components/Link/Link.js +23 -24
- package/dist/components/Link/types.d.ts +3 -16
- package/dist/components/Link/types.js +6 -2
- package/dist/components/Link/utils.d.ts +2 -18
- package/dist/components/Link/utils.js +4 -6
- package/dist/components/LinkBlock/LinkBlock.js +8 -8
- package/dist/components/Navigation/NavigationItem/NavigationItem.d.ts +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +28 -20
- package/dist/components/Text/types.d.ts +5 -8
- package/dist/components/Text/types.js +1 -1
- package/dist/components/Text/utils.js +4 -7
- package/dist/components/Video/Video.d.ts +23 -0
- package/dist/components/Video/Video.js +26 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -5
- package/dist/scss/_type.scss +29 -62
- package/dist/scss/_vars.scss +59 -51
- package/dist/scss/componentStyles.scss +1 -0
- package/dist/scss/components/HeroBanner/_heroBanner.scss +12 -29
- package/dist/scss/components/Link/_link.scss +29 -89
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +41 -92
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +2 -49
- package/dist/scss/components/Navigation/_navigation.scss +1 -3
- package/dist/scss/components/Row/_row.scss +4 -0
- package/dist/scss/components/Search/_search.scss +1 -1
- package/dist/scss/components/Text/_text.scss +4 -2
- package/dist/scss/components/UserManagement/_userManagement.scss +0 -8
- package/dist/scss/components/Video/_video.scss +17 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +7 -7
- package/package.json +4 -2
package/dist/scss/_type.scss
CHANGED
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
font-weight: 400;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
@mixin titleText {
|
|
11
|
+
@include DistinctDisplay;
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
@mixin bodyText {
|
|
11
15
|
color: $soft-black;
|
|
12
16
|
}
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
font-family: Distinct, sans-serif;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
@mixin underline($padding: 0, $width: 0.0625rem, $color: $
|
|
40
|
+
@mixin underline($padding: 0, $width: 0.0625rem, $color: $pure-black) {
|
|
37
41
|
border-bottom: $width solid $color;
|
|
38
42
|
padding-bottom: $padding;
|
|
39
43
|
}
|
|
@@ -44,8 +48,9 @@
|
|
|
44
48
|
$transform-style: capitalize,
|
|
45
49
|
$line-height: $heading-line-height-size1
|
|
46
50
|
) {
|
|
51
|
+
@include DistinctDisplay;
|
|
52
|
+
|
|
47
53
|
color: $color;
|
|
48
|
-
font-family: DistinctDisplay, sans-serif;
|
|
49
54
|
font-size: $size;
|
|
50
55
|
font-weight: 400;
|
|
51
56
|
line-height: $line-height;
|
|
@@ -54,49 +59,32 @@
|
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
@mixin pText($size: $body-size1, $color: $pure-black, $line-height: 1.5) {
|
|
62
|
+
@include Montserrat;
|
|
63
|
+
|
|
57
64
|
color: $color;
|
|
58
|
-
font-family: Montserrat, sans-serif;
|
|
59
65
|
font-size: $size;
|
|
60
66
|
line-height: $line-height;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
@mixin labelText($label) {
|
|
64
|
-
|
|
70
|
+
@include Montserrat;
|
|
65
71
|
|
|
66
72
|
@if $label == 'link' {
|
|
67
|
-
|
|
68
|
-
font-size: $link-button-label-size;
|
|
69
|
-
line-height: $link-label-line-height;
|
|
73
|
+
font-size: $link-label-size;
|
|
70
74
|
font-weight: 600;
|
|
71
75
|
letter-spacing: 1px;
|
|
76
|
+
line-height: $link-label-line-height;
|
|
72
77
|
text-transform: uppercase;
|
|
73
|
-
text-decoration: underline;
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
@if $label == 'button' {
|
|
77
|
-
font-size: $
|
|
78
|
-
line-height: $button-label-line-height;
|
|
81
|
+
font-size: $button-label-size;
|
|
79
82
|
font-weight: 600;
|
|
80
83
|
letter-spacing: 0;
|
|
84
|
+
line-height: $button-label-line-height;
|
|
81
85
|
text-transform: capitalize;
|
|
82
86
|
}
|
|
83
87
|
|
|
84
|
-
@if $label == 'cta-sm' {
|
|
85
|
-
font-size: $cta-sm-label-size;
|
|
86
|
-
font-weight: 600;
|
|
87
|
-
letter-spacing: 0.0625rem;
|
|
88
|
-
line-height: 1.25;
|
|
89
|
-
text-transform: uppercase;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@if $label == 'cta-lg' {
|
|
93
|
-
font-size: $cta-lg-label-size;
|
|
94
|
-
font-weight: 700;
|
|
95
|
-
letter-spacing: 0.125rem;
|
|
96
|
-
line-height: 1.25;
|
|
97
|
-
text-transform: uppercase;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
88
|
@if $label == 'email' {
|
|
101
89
|
font-size: $email-label-size;
|
|
102
90
|
font-weight: 600;
|
|
@@ -114,9 +102,9 @@
|
|
|
114
102
|
|
|
115
103
|
@if $label == 'badge' {
|
|
116
104
|
font-size: $badge-label-size;
|
|
117
|
-
line-height: $badge-label-line-height;
|
|
118
105
|
font-weight: 500;
|
|
119
106
|
letter-spacing: 0;
|
|
107
|
+
line-height: $badge-label-line-height;
|
|
120
108
|
text-transform: uppercase;
|
|
121
109
|
}
|
|
122
110
|
}
|
|
@@ -131,14 +119,6 @@
|
|
|
131
119
|
@include labelText($link);
|
|
132
120
|
}
|
|
133
121
|
|
|
134
|
-
@if $token == 'cta-sm' {
|
|
135
|
-
@include labelText($cta-sm);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@if $token == 'cta-lg' {
|
|
139
|
-
@include labelText($cta-lg);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
122
|
@if $token == 'email' {
|
|
143
123
|
@include labelText($email);
|
|
144
124
|
}
|
|
@@ -151,27 +131,6 @@
|
|
|
151
131
|
@include labelText($badge);
|
|
152
132
|
}
|
|
153
133
|
|
|
154
|
-
// Displays
|
|
155
|
-
@if $token == 'display0' {
|
|
156
|
-
@include hText($display-size0, null, uppercase);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@if $token == 'display1' {
|
|
160
|
-
@include hText($display-size1, null, uppercase);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
@if $token == 'display2' {
|
|
164
|
-
@include hText($display-size2, null, uppercase);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@if $token == 'display3' {
|
|
168
|
-
@include hText($display-size3, null, uppercase);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@if $token == 'display4' {
|
|
172
|
-
@include hText($display-size4, null, uppercase);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
134
|
// Headings
|
|
176
135
|
@if $token == 'blockquote' {
|
|
177
136
|
@include hText(
|
|
@@ -198,20 +157,25 @@
|
|
|
198
157
|
@include hText($heading-size4, $line-height: $heading-line-height-size4, $transform-style: capitalize);
|
|
199
158
|
}
|
|
200
159
|
|
|
160
|
+
@if $token == 'heading5' {
|
|
161
|
+
@include hText($heading-size5, $line-height: $heading-line-height-size5, $transform-style: capitalize);
|
|
162
|
+
}
|
|
163
|
+
|
|
201
164
|
@if $token == 'title1' {
|
|
202
165
|
@include hText($heading-size1, $line-height: $heading-line-height-size1, $transform-style: uppercase);
|
|
203
166
|
}
|
|
204
167
|
|
|
168
|
+
// the title2 token skips heading 2 because it's the same size currently as heading1
|
|
205
169
|
@if $token == 'title2' {
|
|
206
|
-
@include hText($heading-
|
|
170
|
+
@include hText($heading-size3, $line-height: $heading-line-height-size3, $transform-style: uppercase);
|
|
207
171
|
}
|
|
208
172
|
|
|
209
173
|
@if $token == 'title3' {
|
|
210
|
-
@include hText($heading-
|
|
174
|
+
@include hText($heading-size4, $line-height: $heading-line-height-size4, $transform-style: uppercase);
|
|
211
175
|
}
|
|
212
176
|
|
|
213
177
|
@if $token == 'title4' {
|
|
214
|
-
@include hText($heading-
|
|
178
|
+
@include hText($heading-size5, $line-height: $heading-line-height-size5, $transform-style: uppercase);
|
|
215
179
|
}
|
|
216
180
|
|
|
217
181
|
// Body
|
|
@@ -242,18 +206,21 @@
|
|
|
242
206
|
|
|
243
207
|
// SNW
|
|
244
208
|
@if $token == 'snwHeaderLink' {
|
|
245
|
-
|
|
209
|
+
@include DistinctDisplay;
|
|
210
|
+
|
|
211
|
+
font-size: $snw-header-link-size;
|
|
246
212
|
font-weight: 400;
|
|
247
213
|
letter-spacing: 1px;
|
|
248
|
-
font-size: $snw-header-link-size;
|
|
249
214
|
line-height: $snw-header-link-line-height;
|
|
250
215
|
text-transform: uppercase;
|
|
251
216
|
}
|
|
252
217
|
|
|
253
218
|
@if $token == 'snwFlyoutLink' {
|
|
219
|
+
@include Montserrat;
|
|
220
|
+
|
|
221
|
+
font-size: $snw-flyout-link-size;
|
|
254
222
|
font-weight: 400;
|
|
255
223
|
letter-spacing: 1px;
|
|
256
|
-
font-size: $snw-flyout-link-size;
|
|
257
224
|
line-height: $snw-flyout-link-line-height;
|
|
258
225
|
text-transform: capitalize;
|
|
259
226
|
}
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -72,21 +72,17 @@ $text-family: $DistinctText;
|
|
|
72
72
|
// @include labelText($label)
|
|
73
73
|
$button: 'button';
|
|
74
74
|
$link: 'link';
|
|
75
|
-
$badge: 'badge';
|
|
76
|
-
$cta-sm: 'cta-sm';
|
|
77
|
-
$cta-lg: 'cta-lg';
|
|
78
75
|
$email: 'email';
|
|
79
76
|
$label: 'label';
|
|
80
|
-
$
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
$display3: 'display3';
|
|
84
|
-
$display4: 'display4';
|
|
77
|
+
$badge: 'badge';
|
|
78
|
+
|
|
79
|
+
// Used with the hText mixin
|
|
85
80
|
$blockquote: 'blockquote';
|
|
86
81
|
$heading1: 'heading1';
|
|
87
82
|
$heading2: 'heading2';
|
|
88
83
|
$heading3: 'heading3';
|
|
89
84
|
$heading4: 'heading4';
|
|
85
|
+
$heading5: 'heading5';
|
|
90
86
|
$title1: 'title1';
|
|
91
87
|
$title2: 'title2';
|
|
92
88
|
$title3: 'title3';
|
|
@@ -99,9 +95,9 @@ $string2: 'string2';
|
|
|
99
95
|
$string3: 'string3';
|
|
100
96
|
$snwHeaderLink: 'snwHeaderLink';
|
|
101
97
|
$snwFlyoutLink: 'snwFlyoutLink';
|
|
102
|
-
$text-tokens: $button, $
|
|
103
|
-
$
|
|
104
|
-
$
|
|
98
|
+
$text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5,
|
|
99
|
+
$title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
|
|
100
|
+
$snwHeaderLink;
|
|
105
101
|
|
|
106
102
|
////////////////////////
|
|
107
103
|
/// FONT SIZE TOKENS:
|
|
@@ -109,17 +105,18 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
|
|
|
109
105
|
|
|
110
106
|
:root {
|
|
111
107
|
--desktop-max-width: 120rem;
|
|
112
|
-
--heading-size0: 3.25rem;
|
|
113
108
|
--quote-size: 1.75rem;
|
|
114
109
|
--quote-line-height: 2.25rem;
|
|
115
110
|
--heading-size1: 1.75rem;
|
|
116
111
|
--heading-line-height-size1: 2rem;
|
|
117
|
-
--heading-size2: 1.
|
|
118
|
-
--heading-line-height-size2:
|
|
119
|
-
--heading-size3: 1.
|
|
120
|
-
--heading-line-height-size3: 1.
|
|
121
|
-
--heading-size4:
|
|
122
|
-
--heading-line-height-size4: 1.
|
|
112
|
+
--heading-size2: 1.75rem;
|
|
113
|
+
--heading-line-height-size2: 2rem;
|
|
114
|
+
--heading-size3: 1.5rem;
|
|
115
|
+
--heading-line-height-size3: 1.75rem;
|
|
116
|
+
--heading-size4: 1.25rem;
|
|
117
|
+
--heading-line-height-size4: 1.5rem;
|
|
118
|
+
--heading-size5: 1rem;
|
|
119
|
+
--heading-line-height-size5: 1.25rem;
|
|
123
120
|
--string-size1: 1.25rem;
|
|
124
121
|
--string-line-height-size1: 1.5rem;
|
|
125
122
|
--string-size2: 1rem;
|
|
@@ -135,28 +132,30 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
|
|
|
135
132
|
--label-size1: 1.25rem;
|
|
136
133
|
--label-size2: 1rem;
|
|
137
134
|
--label-size3: 0.75rem;
|
|
138
|
-
--link-
|
|
135
|
+
--link-label-size: 1rem;
|
|
139
136
|
--link-label-line-height: 1rem;
|
|
137
|
+
--button-label-size: 1rem;
|
|
140
138
|
--button-label-line-height: 1.25rem;
|
|
141
139
|
--badge-label-size: 0.75rem;
|
|
142
140
|
--badge-label-line-height: 1rem;
|
|
143
|
-
--snw-header-link-size:
|
|
141
|
+
--snw-header-link-size: 1rem;
|
|
144
142
|
--snw-header-link-line-height: 1.5rem;
|
|
145
|
-
--snw-flyout-link-size:
|
|
143
|
+
--snw-flyout-link-size: 1rem;
|
|
146
144
|
--snw-flyout-link-line-height: 1.75rem;
|
|
147
145
|
|
|
148
146
|
@media (max-width: 960px) {
|
|
149
|
-
--heading-size0: 2.59rem;
|
|
150
147
|
--quote-size: 1.5rem;
|
|
151
148
|
--quote-line-height: 2rem;
|
|
152
149
|
--heading-size1: 1.5rem;
|
|
153
150
|
--heading-line-height-size1: 1.75rem;
|
|
154
|
-
--heading-size2: 1.
|
|
155
|
-
--heading-line-height-size2: 1.
|
|
156
|
-
--heading-size3:
|
|
157
|
-
--heading-line-height-size3: 1.
|
|
158
|
-
--heading-size4:
|
|
159
|
-
--heading-line-height-size4:
|
|
151
|
+
--heading-size2: 1.5rem;
|
|
152
|
+
--heading-line-height-size2: 1.75rem;
|
|
153
|
+
--heading-size3: 1.25rem;
|
|
154
|
+
--heading-line-height-size3: 1.5rem;
|
|
155
|
+
--heading-size4: 1rem;
|
|
156
|
+
--heading-line-height-size4: 1.25rem;
|
|
157
|
+
--heading-size5: 0.75rem;
|
|
158
|
+
--heading-line-height-size5: 1rem;
|
|
160
159
|
--string-size1: 1rem;
|
|
161
160
|
--string-line-height-size1: 1.25rem;
|
|
162
161
|
--string-size2: 0.75rem;
|
|
@@ -172,8 +171,9 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
|
|
|
172
171
|
--label-size1: 1rem;
|
|
173
172
|
--label-size2: 0.75rem;
|
|
174
173
|
--label-size3: 0.56rem;
|
|
175
|
-
--link-
|
|
174
|
+
--link-label-size: 0.75rem;
|
|
176
175
|
--link-label-line-height: 0.75rem;
|
|
176
|
+
--button-label-size: 0.75rem;
|
|
177
177
|
--button-label-line-height: 1rem;
|
|
178
178
|
--badge-label-size: 0.5rem;
|
|
179
179
|
--badge-label-line-height: 0.67rem;
|
|
@@ -184,17 +184,18 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
@media (min-width: 1801px) {
|
|
187
|
-
--heading-size0: 4.06rem;
|
|
188
187
|
--quote-size: 2rem;
|
|
189
188
|
--quote-line-height: 2.5rem;
|
|
190
189
|
--heading-size1: 2rem;
|
|
191
190
|
--heading-line-height-size1: 2.25rem;
|
|
192
|
-
--heading-size2:
|
|
193
|
-
--heading-line-height-size2:
|
|
194
|
-
--heading-size3: 1.
|
|
195
|
-
--heading-line-height-size3:
|
|
196
|
-
--heading-size4: 1.
|
|
197
|
-
--heading-line-height-size4: 1.
|
|
191
|
+
--heading-size2: 2rem;
|
|
192
|
+
--heading-line-height-size2: 2.25rem;
|
|
193
|
+
--heading-size3: 1.75rem;
|
|
194
|
+
--heading-line-height-size3: 2rem;
|
|
195
|
+
--heading-size4: 1.5rem;
|
|
196
|
+
--heading-line-height-size4: 1.75rem;
|
|
197
|
+
--heading-size5: 1.25rem;
|
|
198
|
+
--heading-line-height-size5: 1.5rem;
|
|
198
199
|
--string-size1: 1.5rem;
|
|
199
200
|
--string-line-height-size1: 1.75rem;
|
|
200
201
|
--string-size2: 1.25rem;
|
|
@@ -210,8 +211,9 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
|
|
|
210
211
|
--label-size1: 1.56rem;
|
|
211
212
|
--label-size2: 1.25rem;
|
|
212
213
|
--label-size3: 1rem;
|
|
213
|
-
--link-
|
|
214
|
+
--link-label-size: 1.25rem;
|
|
214
215
|
--link-label-line-height: 1.25rem;
|
|
216
|
+
--button-label-size: 1.25rem;
|
|
215
217
|
--button-label-line-height: 1.5rem;
|
|
216
218
|
--badge-label-size: 1rem;
|
|
217
219
|
--badge-label-line-height: 1.5rem;
|
|
@@ -222,14 +224,11 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
|
|
|
222
224
|
}
|
|
223
225
|
}
|
|
224
226
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
$
|
|
229
|
-
$
|
|
230
|
-
$display-size2: var(--heading-size2);
|
|
231
|
-
$display-size3: var(--heading-size3);
|
|
232
|
-
$display-size4: var(--heading-size4);
|
|
227
|
+
// TITLE
|
|
228
|
+
$title-size1: var(--heading-size1);
|
|
229
|
+
$title-size2: var(--heading-size2);
|
|
230
|
+
$title-size3: var(--heading-size3);
|
|
231
|
+
$title-size4: var(--heading-size4);
|
|
233
232
|
|
|
234
233
|
// HEADING
|
|
235
234
|
$heading-size1: var(--heading-size1);
|
|
@@ -240,6 +239,8 @@ $heading-size3: var(--heading-size3);
|
|
|
240
239
|
$heading-line-height-size3: var(--heading-line-height-size3);
|
|
241
240
|
$heading-size4: var(--heading-size4);
|
|
242
241
|
$heading-line-height-size4: var(--heading-line-height-size4);
|
|
242
|
+
$heading-size5: var(--heading-size5);
|
|
243
|
+
$heading-line-height-size5: var(--heading-line-height-size5);
|
|
243
244
|
|
|
244
245
|
// BODY
|
|
245
246
|
$body-size1: var(--body-size1);
|
|
@@ -258,13 +259,11 @@ $string-size3: var(--string-size3);
|
|
|
258
259
|
$string-line-height-size3: var(--string-line-height-size3);
|
|
259
260
|
|
|
260
261
|
// LABELS
|
|
261
|
-
$button-label-size: var(--label-size2);
|
|
262
|
-
$cta-sm-label-size: var(--label-size2);
|
|
263
262
|
$email-label-size: var(--label-size2);
|
|
264
|
-
$cta-lg-label-size: var(--label-size1);
|
|
265
263
|
$text-label-size: var(--label-size3);
|
|
266
264
|
$badge-label-size: var(--label-size3);
|
|
267
|
-
$link-
|
|
265
|
+
$link-label-size: var(--link-label-size);
|
|
266
|
+
$button-label-size: var(--button-label-size);
|
|
268
267
|
$link-label-line-height: var(--link-label-line-height);
|
|
269
268
|
$button-label-line-height: var(--button-label-line-height);
|
|
270
269
|
$badge-label-size: var(--badge-label-size);
|
|
@@ -285,6 +284,7 @@ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
|
|
|
285
284
|
--spacing-md: 2rem;
|
|
286
285
|
--spacing-lg: 3rem;
|
|
287
286
|
--spacing-xl: 4rem;
|
|
287
|
+
--spacing-xxl: 5rem;
|
|
288
288
|
|
|
289
289
|
@media (max-width: 960px) {
|
|
290
290
|
--spacing-micro: 0.25;
|
|
@@ -293,6 +293,7 @@ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
|
|
|
293
293
|
--spacing-md: 1.75rem;
|
|
294
294
|
--spacing-lg: 2.75rem;
|
|
295
295
|
--spacing-xl: 3.75rem;
|
|
296
|
+
--spacing-xxl: 4.75rem;
|
|
296
297
|
}
|
|
297
298
|
|
|
298
299
|
@media (min-width: 1801px) {
|
|
@@ -302,6 +303,7 @@ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
|
|
|
302
303
|
--spacing-md: 2.5rem;
|
|
303
304
|
--spacing-lg: 3.75rem;
|
|
304
305
|
--spacing-xl: 5rem;
|
|
306
|
+
--spacing-xxl: 5.25rem;
|
|
305
307
|
}
|
|
306
308
|
}
|
|
307
309
|
|
|
@@ -311,6 +313,7 @@ $spacing-sm: var(--spacing-sm);
|
|
|
311
313
|
$spacing-md: var(--spacing-md);
|
|
312
314
|
$spacing-lg: var(--spacing-lg);
|
|
313
315
|
$spacing-xl: var(--spacing-xl);
|
|
316
|
+
$spacing-xxl: var(--spacing-xl);
|
|
314
317
|
|
|
315
318
|
// PADDING
|
|
316
319
|
$padding-micro: var(--spacing-micro);
|
|
@@ -319,7 +322,8 @@ $padding-sm: var(--spacing-sm);
|
|
|
319
322
|
$padding-md: var(--spacing-md);
|
|
320
323
|
$padding-lg: var(--spacing-lg);
|
|
321
324
|
$padding-xl: var(--spacing-xl);
|
|
322
|
-
$padding-
|
|
325
|
+
$padding-xxl: var(--spacing-xxl);
|
|
326
|
+
$padding-tokens: $padding-micro, $padding-xsm, $padding-sm, $padding-md, $padding-lg, $padding-xl, $padding-xxl;
|
|
323
327
|
|
|
324
328
|
// MARGIN
|
|
325
329
|
$margin-micro: var(--spacing-micro);
|
|
@@ -328,6 +332,7 @@ $margin-sm: var(--spacing-sm);
|
|
|
328
332
|
$margin-md: var(--spacing-md);
|
|
329
333
|
$margin-lg: var(--spacing-lg);
|
|
330
334
|
$margin-xl: var(--spacing-xl);
|
|
335
|
+
$margin-xxl: var(--spacing-xxl);
|
|
331
336
|
|
|
332
337
|
////////////////////////
|
|
333
338
|
/// Breakpoint TOKENS that map to minimum pixels
|
|
@@ -345,8 +350,10 @@ $max-site-width: 1560px;
|
|
|
345
350
|
////////////////////////
|
|
346
351
|
/// height Tokens
|
|
347
352
|
///////////////////////
|
|
348
|
-
$header-height:
|
|
353
|
+
$header-height: 42px;
|
|
349
354
|
$user-management-height: 30px;
|
|
355
|
+
$header-submenu-top: calc($header-height + $user-management-height + 1px);
|
|
356
|
+
$desktop-max-width: var(--desktop-max-width);
|
|
350
357
|
|
|
351
358
|
////////////////////////
|
|
352
359
|
/// Our tokens usually support at least 4 sizes.
|
|
@@ -355,4 +362,5 @@ $size-sm: 'sm';
|
|
|
355
362
|
$size-md: 'md';
|
|
356
363
|
$size-lg: 'lg';
|
|
357
364
|
$size-xl: 'xl';
|
|
365
|
+
$size-xxl: 'xxl';
|
|
358
366
|
$default-transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
.#{$px}-hero-banner {
|
|
4
4
|
align-items: center;
|
|
5
|
-
background: var(--background);
|
|
5
|
+
background: linear-gradient(rgba(0, 0, 0, 60%), rgba(0, 0, 0, 60%)), var(--background);
|
|
6
6
|
background-position: center center;
|
|
7
7
|
background-repeat: no-repeat;
|
|
8
8
|
background-size: cover;
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-flow: column;
|
|
11
11
|
justify-content: center;
|
|
12
|
-
margin-bottom: $spacing-lg;
|
|
13
12
|
min-height: 25rem;
|
|
14
13
|
padding: 1rem;
|
|
15
14
|
width: 100%;
|
|
@@ -17,7 +16,7 @@
|
|
|
17
16
|
@media (max-width: $breakpoint-sm) {
|
|
18
17
|
align-items: center;
|
|
19
18
|
align-self: stretch;
|
|
20
|
-
background:
|
|
19
|
+
background: transparent;
|
|
21
20
|
flex-direction: column;
|
|
22
21
|
gap: 1.875rem;
|
|
23
22
|
padding: 1.875rem 0.9375rem;
|
|
@@ -33,22 +32,24 @@
|
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
h1
|
|
37
|
-
|
|
35
|
+
h1.#{$px}-text,
|
|
36
|
+
h2.#{$px}-text {
|
|
37
|
+
margin: 0;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
h1 span,
|
|
41
40
|
p {
|
|
42
|
-
|
|
41
|
+
margin: 1.875rem 0;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
h1,
|
|
46
|
-
|
|
45
|
+
h2,
|
|
47
46
|
p {
|
|
48
47
|
color: $pure-white;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
text-align: center;
|
|
49
|
+
|
|
50
|
+
@media (max-width: $breakpoint-sm) {
|
|
51
|
+
color: $pure-black;
|
|
52
|
+
}
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
p {
|
|
@@ -81,22 +82,4 @@
|
|
|
81
82
|
gap: 1rem;
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
-
& .#{$px}-hero-banner__heading {
|
|
86
|
-
align-self: stretch;
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
font-size: 2rem;
|
|
90
|
-
line-height: 1;
|
|
91
|
-
margin: 1.875rem 0;
|
|
92
|
-
text-align: center;
|
|
93
|
-
|
|
94
|
-
@media (min-width: $breakpoint-sm) {
|
|
95
|
-
font-size: 2.375rem;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
span {
|
|
99
|
-
font-size: 1.625rem;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
85
|
}
|
|
@@ -1,114 +1,54 @@
|
|
|
1
1
|
@use '../../allPartials' as *;
|
|
2
2
|
|
|
3
3
|
.#{$px}-link {
|
|
4
|
-
color: $
|
|
4
|
+
color: $pure-black;
|
|
5
5
|
text-decoration: none;
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
&--email,
|
|
9
|
+
&--link {
|
|
10
10
|
@include underline;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
&--inline {
|
|
20
|
-
font-size: inherit;
|
|
21
|
-
letter-spacing: inherit;
|
|
22
|
-
line-height: inherit;
|
|
23
|
-
}
|
|
13
|
+
&--email,
|
|
14
|
+
&--link,
|
|
15
|
+
&--snwFlyoutLink {
|
|
16
|
+
&:hover,
|
|
17
|
+
&:focus {
|
|
18
|
+
@include underline($color: $dark-gray);
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
color: $dark-gray;
|
|
21
|
+
}
|
|
27
22
|
}
|
|
28
23
|
|
|
29
24
|
&--email {
|
|
30
25
|
@include text($email);
|
|
31
26
|
}
|
|
32
27
|
|
|
33
|
-
&--navMain {
|
|
34
|
-
.#{$px}-nav__item--label {
|
|
35
|
-
color: $soft-black;
|
|
36
|
-
text-align: center;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&--navLinkSm {
|
|
41
|
-
color: $soft-black;
|
|
42
|
-
justify-content: flex-end;
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
.#{$px}-nav__item--label {
|
|
46
|
-
color: $cta-blue;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.#{$px}-nav__item--label {
|
|
51
|
-
/* TODO: Create token to handle these styles dynamically */
|
|
52
|
-
font-size: 0.8125rem;
|
|
53
|
-
font-weight: 500;
|
|
54
|
-
letter-spacing: 0.125rem;
|
|
55
|
-
line-height: 0.8125rem;
|
|
56
|
-
text-align: right;
|
|
57
|
-
text-transform: uppercase;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&--navLinkLg {
|
|
62
|
-
color: $soft-black;
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
width: 100%;
|
|
66
|
-
|
|
67
|
-
> span {
|
|
68
|
-
display: flex;
|
|
69
|
-
width: 100%;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.#{$px}-nav__item--label {
|
|
73
|
-
/* TODO: Create token to handle these styles dynamically */
|
|
74
|
-
@include pText(1.0625rem);
|
|
75
|
-
|
|
76
|
-
font-weight: 600;
|
|
77
|
-
overflow: hidden;
|
|
78
|
-
text-overflow: ellipsis;
|
|
79
|
-
text-transform: capitalize;
|
|
80
|
-
text-wrap: nowrap;
|
|
81
|
-
width: 100%;
|
|
82
|
-
|
|
83
|
-
&:hover {
|
|
84
|
-
color: $cta-blue;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@media (max-width: #{$breakpoint-md - 1}) {
|
|
88
|
-
/* TODO: Create token to handle these styles dynamically */
|
|
89
|
-
font-size: 0.8rem;
|
|
90
|
-
font-weight: 400;
|
|
91
|
-
text-overflow: unset;
|
|
92
|
-
text-wrap: wrap;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.#{$px}-link--navLinkSm {
|
|
97
|
-
.#{$px}-nav__item--label {
|
|
98
|
-
color: $cta-blue;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
28
|
&--link {
|
|
104
|
-
@include
|
|
29
|
+
@include text($link);
|
|
105
30
|
}
|
|
106
31
|
|
|
107
32
|
&--snwHeaderLink {
|
|
108
|
-
@include
|
|
33
|
+
@include text($snwHeaderLink);
|
|
34
|
+
|
|
35
|
+
padding: 0.5rem 0.625rem calc(0.5rem + 2px); // 1 px so that the bottom border of the nav counts as part of the button
|
|
36
|
+
position: relative;
|
|
37
|
+
text-align: center;
|
|
38
|
+
|
|
39
|
+
&:hover::after,
|
|
40
|
+
&:focus::after {
|
|
41
|
+
background: $pure-black;
|
|
42
|
+
bottom: -1px;
|
|
43
|
+
content: '';
|
|
44
|
+
height: 1px;
|
|
45
|
+
left: 0;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: 0;
|
|
48
|
+
}
|
|
109
49
|
}
|
|
110
50
|
|
|
111
51
|
&--snwFlyoutLink {
|
|
112
|
-
@include
|
|
52
|
+
@include text($snwFlyoutLink);
|
|
113
53
|
}
|
|
114
54
|
}
|