middleman-hashicorp 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e5d876f34e6590ddc8fccc53a134cab886c746c
4
- data.tar.gz: 907bc9dec7933cf0e23699959505daf67759e9a1
3
+ metadata.gz: '09c1497b5ff893c9e0959599663b8d48205076b1'
4
+ data.tar.gz: cbf89fb7c5de1287128f88d4d9126746610a87e2
5
5
  SHA512:
6
- metadata.gz: f58efc7fcf60726cf97d29e9454f7b718eec089b049ed43d74974a8f67fcc7054e3d96f204bbd3e2b2a3a3ad18ff570a13908bdc90734889e7485778941c70c8
7
- data.tar.gz: 15c45db6876ee42debe9036065698840d91ea42092a00438f06d205b299f0c3443f433ab3825e0ee84e35b9d3cb388e6a65e288dd9cb81cf7055ff1a6f1f8df4
6
+ metadata.gz: 48c9861c2cdfb7094effbb3b1a3e3613521fddc963ceec6659c60a5e79c8b28a9a71915085addbeb81f140ef41f17743890c5e1862816ee8eb74f6cba391e58e
7
+ data.tar.gz: dcb771dbf5803b9f8529976d88f1eddfee1ceb78fbbde17fef7484f3d8f5c95da7add00861a9e5afd72656b66f6c24ea659fc870f7e1a7047d05db716c29a4a8
@@ -4,6 +4,29 @@
4
4
 
5
5
  $(function() {
6
6
 
7
+ //handle active product
8
+
9
+ var productClass = 'mega-nav-grid-item',
10
+ productActiveClass = 'is-active',
11
+ url = window.location.hostname,
12
+ products = [
13
+ 'vagrant',
14
+ 'packer',
15
+ 'terraform',
16
+ 'vault',
17
+ 'nomad',
18
+ 'consul'
19
+ ];
20
+
21
+ for (var i = 0; i < products.length; i++) {
22
+ if (url.indexOf(products[i]) !== -1) {
23
+ $('.' + productClass + '-' + products[i]).addClass(productActiveClass);
24
+ }
25
+ }
26
+
27
+
28
+ //handle functionality
29
+
7
30
  var dropDownBreakpoint = window.matchMedia("(min-width: 980px)");
8
31
 
9
32
  function megaNavModal() {
@@ -56,6 +79,6 @@ $(function() {
56
79
  }
57
80
 
58
81
  dropDownBreakpoint.addListener(handleDropDownBreakpoint);
59
- handleDropDownBreakpoint(dropDownBreakpoint);
82
+ handleDropDownBreakpoint(dropDownBreakpoint);
60
83
 
61
- });
84
+ });
@@ -2,6 +2,8 @@
2
2
  // HashiCorp Mega Nav
3
3
  // --------------------------------------------------
4
4
 
5
+ $mega-nav-active-class: 'is-active';
6
+
5
7
  $mega-nav-font-family: 'klavika-web', 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
6
8
 
7
9
  $mega-nav-font-size-base: 14px;
@@ -50,283 +52,324 @@ $mega-nav-container-width-md: 970px;
50
52
  $mega-nav-container-width-lg: 1170px;
51
53
 
52
54
 
55
+ // avoid site style conflicts
56
+ $mega-nav-sandbox-name: 'mega-nav-sandbox';
57
+ $mega-nav-sandbox-specificity: 4;
58
+
59
+
53
60
  @function mega-nav-em($size, $base: $mega-nav-font-size-base) {
54
61
  @return $size / $base * 1em;
55
62
  }
56
63
 
57
64
 
58
- .mega-nav-banner {
59
- background-color: $mega-nav-color-black;
60
- color: $mega-nav-color-white;
61
- font-family: $mega-nav-font-family;
62
- font-size: 16px;
63
- min-height: mega-nav-em(48px, 16px);
65
+ @function mega-nav-class-chain($class-name, $specificity: 1) {
66
+ $selector-string: '.' + $class-name;
64
67
 
65
- &,
66
- > .container {
67
- align-items: center;
68
- display: flex;
68
+ @if ($specificity > 1) {
69
+ @for $i from 1 through ($specificity - 1) {
70
+ $selector-string: $selector-string + '.' + $class-name;
71
+ }
69
72
  }
70
73
 
71
- .text-muted {
72
- color: $mega-nav-color-neutral;
74
+ @return $selector-string;
75
+ }
76
+
77
+
78
+ #{mega-nav-class-chain($mega-nav-sandbox-name, $mega-nav-sandbox-specificity)} {
79
+
80
+ // sandbox reset
81
+ * {
82
+ font-size: 14px;
83
+ letter-spacing: 0;
84
+ line-height: 1.42857143;
85
+ margin-bottom: 0;
86
+ margin-top: 0;
87
+ text-transform: none;
73
88
  }
74
89
 
75
- }
90
+ h1, h2, h3, h4, h5, h6 {
91
+ line-height: 1.1;
92
+ }
93
+ // end sandbox reset
76
94
 
77
- .mega-nav-banner-item {
78
- &:first-child {
79
- display: none;
80
- }
81
95
 
82
- &:last-child {
83
- margin-left: auto;
96
+ .mega-nav-banner {
97
+ background-color: $mega-nav-color-black;
98
+ color: $mega-nav-color-white;
99
+ font-family: $mega-nav-font-family;
100
+ font-size: 16px;
101
+ min-height: mega-nav-em(48px, 16px);
102
+
103
+ &,
104
+ > .container {
105
+ align-items: center;
106
+ display: flex;
84
107
  }
85
- }
86
108
 
87
- .mega-nav-tagline {
88
- align-items: center;
89
- display: inline-flex;
90
- margin-bottom: 0;
109
+ .text-muted {
110
+ color: $mega-nav-color-neutral;
111
+ }
91
112
 
92
- > img {
93
- margin: 0 mega-nav-em(6px, 16px) 0 mega-nav-em(8px, 16px);
94
113
  }
95
- }
96
114
 
97
- .mega-nav {
98
- display: inline-block;
99
- font-family: $mega-nav-font-family;
100
- font-size: $mega-nav-font-size-base;
101
- line-height: $mega-nav-line-height-base / $mega-nav-font-size-base;
115
+ .mega-nav-banner-item {
116
+ &:first-child {
117
+ display: none;
118
+ }
102
119
 
103
- h1, h2, h3, h4, h5, h6,
104
- ul, p {
105
- margin-top: 0;
106
- }
120
+ &:last-child {
121
+ margin-left: auto;
122
+ }
123
+ }
107
124
 
108
- img {
109
- max-width: 100%;
110
- }
125
+ .mega-nav-tagline {
126
+ align-items: center;
127
+ display: inline-flex;
128
+ margin-bottom: 0;
111
129
 
112
- &,
113
- & * {
114
- box-sizing: border-box;
115
- transition: background-color 0.25s ease,
116
- border-color 0.25s ease,
117
- color 0.25s ease,
118
- fill 0.25s ease,
119
- transform 0.25s ease,
120
- stroke 0.25s ease;
130
+ > img {
131
+ margin: 0 mega-nav-em(6px, 16px) 0 mega-nav-em(8px, 16px);
132
+ }
121
133
  }
122
134
 
123
- .mega-nav-tagline + & {
124
- margin-left: mega-nav-em(8px, $mega-nav-font-size-base);
125
- }
135
+ .mega-nav {
136
+ display: inline-block;
137
+ font-family: $mega-nav-font-family;
138
+ font-size: $mega-nav-font-size-base;
139
+ line-height: $mega-nav-line-height-base / $mega-nav-font-size-base;
126
140
 
127
- .visuallyhidden {
128
- border: 0;
129
- clip: rect(0 0 0 0);
130
- height: 1px;
131
- margin: -1px;
132
- overflow: hidden;
133
- padding: 0;
134
- position: absolute;
135
- white-space: nowrap;
136
- width: 1px;
137
- }
138
- }
141
+ h1, h2, h3, h4, h5, h6,
142
+ ul, p {
143
+ margin-top: 0;
144
+ }
139
145
 
140
- .mega-nav-icon {
141
- display: inline-block;
142
- fill: currentColor;
143
- height: 1em;
144
- stroke: currentColor;
145
- width: 1em;
146
- }
146
+ img {
147
+ max-width: 100%;
148
+ }
147
149
 
148
- .mega-nav-icon-angle-right {
149
- height: 0.8em;
150
- transform: rotate(-90deg);
151
- width: 0.8em;
150
+ &,
151
+ & * {
152
+ box-sizing: border-box;
153
+ transition: background-color 0.25s ease,
154
+ border-color 0.25s ease,
155
+ color 0.25s ease,
156
+ fill 0.25s ease,
157
+ transform 0.25s ease,
158
+ stroke 0.25s ease;
159
+ }
152
160
 
153
- .open > .mega-nav-ctrl & {
154
- transform: rotate(0);
161
+ .mega-nav-tagline + & {
162
+ margin-left: mega-nav-em(8px, $mega-nav-font-size-base);
163
+ }
164
+
165
+ .visuallyhidden {
166
+ border: 0;
167
+ clip: rect(0 0 0 0);
168
+ height: 1px;
169
+ margin: -1px;
170
+ overflow: hidden;
171
+ padding: 0;
172
+ position: absolute;
173
+ white-space: nowrap;
174
+ width: 1px;
175
+ }
155
176
  }
156
- }
157
177
 
158
- .mega-nav-ctrl {
159
- align-items: center;
160
- background-color: transparent;
161
- border: 1px solid currentColor;
162
- display: inline-flex;
163
- justify-content: center;
164
- line-height: 1;
165
- padding: 0.5em;
166
- text-align: center;
167
- }
178
+ .mega-nav-icon {
179
+ display: inline-block;
180
+ fill: currentColor;
181
+ height: 1em;
182
+ stroke: currentColor;
183
+ width: 1em;
184
+ }
168
185
 
169
- .mega-nav-body-ct {
170
- bottom: 0;
171
- display: none;
172
- left: 0;
173
- overflow-y: auto;
174
- position: fixed;
175
- right: 0;
176
- top: 0;
177
- z-index: $mega-nav-z-index;
178
-
179
- .mega-nav.open & {
180
- display: block;
186
+ .mega-nav-icon-angle-right {
187
+ height: 0.8em;
188
+ transform: rotate(-90deg);
189
+ width: 0.8em;
181
190
  }
182
- }
183
191
 
184
- .mega-nav-body {
185
- background-color: $mega-nav-color-white;
186
- box-shadow: 0 2px 16px rgba(#4f637a, 0.2);
187
- color: $mega-nav-color-black;
188
- margin: 1em;
189
- padding: 1em;
190
- }
192
+ .open > .mega-nav-ctrl .mega-nav-icon-angle-right {
193
+ transform: rotate(0);
194
+ }
191
195
 
192
- .mega-nav-body-footer {
193
- color: $mega-nav-color-neutral;
194
- display: none;
196
+ .mega-nav-ctrl {
197
+ align-items: center;
198
+ background-color: transparent;
199
+ border: 1px solid currentColor;
200
+ display: inline-flex;
201
+ justify-content: center;
202
+ line-height: 1;
203
+ padding: 0.5em;
204
+ text-align: center;
205
+ }
195
206
 
196
- > :last-child {
197
- margin-bottom: 0;
207
+ .mega-nav-body-ct {
208
+ bottom: 0;
209
+ display: none;
210
+ left: 0;
211
+ overflow-y: auto;
212
+ position: fixed;
213
+ right: 0;
214
+ top: 0;
215
+ z-index: $mega-nav-z-index;
198
216
  }
199
217
 
200
- }
218
+ .mega-nav.open .mega-nav-body-ct {
219
+ display: block;
220
+ }
201
221
 
202
- .mega-nav-close {
203
- align-items: center;
204
- background-color: transparent;
205
- border: 1px solid currentColor;
206
- display: inline-flex;
207
- float: right;
208
- justify-content: center;
209
- line-height: 1;
210
- margin-left: 1em;
211
- margin-bottom: 1em;
212
- padding: 0.5em;
213
- text-align: center;
214
-
215
- &:hover,
216
- &:focus {
217
- color: tint($mega-nav-color-black, 20);
222
+ .mega-nav-body {
223
+ background-color: $mega-nav-color-white;
224
+ box-shadow: 0 2px 16px rgba(#4f637a, 0.2);
225
+ color: $mega-nav-color-black;
226
+ margin: 1em;
227
+ padding: 1em;
218
228
  }
219
- }
220
229
 
221
- .mega-nav-h1 {
222
- font-size: mega-nav-em($mega-nav-font-size-h1);
223
- font-weight: bold;
224
- margin-bottom: mega-nav-em(2px, $mega-nav-font-size-h1);
225
- text-transform: uppercase;
226
- }
230
+ .mega-nav-body-footer {
231
+ color: $mega-nav-color-neutral;
232
+ display: none;
227
233
 
228
- .mega-nav-h2 {
229
- color: $mega-nav-color-neutral;
230
- font-size: mega-nav-em($mega-nav-font-size-h2);
231
- font-weight: 500;
232
- margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-font-size-h2);
233
- text-transform: uppercase;
234
- }
234
+ > :last-child {
235
+ margin-bottom: 0;
236
+ }
235
237
 
236
- .mega-nav-h3 {
237
- color: $mega-nav-color-neutral;
238
- font-size: mega-nav-em($mega-nav-font-size-h3);
239
- font-weight: 500;
240
- margin-bottom: mega-nav-em($mega-nav-font-size-h3 / 2, $mega-nav-font-size-h3);
241
- text-transform: uppercase;
242
- }
238
+ }
243
239
 
244
- .mega-nav-grid {
245
- list-style: none;
246
- margin-bottom: mega-nav-em($mega-nav-font-size-base);
247
- padding-left: 0;
240
+ .mega-nav-close {
241
+ align-items: center;
242
+ background-color: transparent;
243
+ border: 1px solid currentColor;
244
+ display: inline-flex;
245
+ float: right;
246
+ justify-content: center;
247
+ line-height: 1;
248
+ margin-left: 1em;
249
+ margin-bottom: 1em;
250
+ padding: 0.5em;
251
+ text-align: center;
248
252
 
249
- > li {
250
- display: flex;
253
+ &:hover,
254
+ &:focus {
255
+ color: tint($mega-nav-color-black, 20);
256
+ }
251
257
  }
252
- }
253
258
 
254
- .mega-nav-grid-item {
255
- align-items: center;
256
- border: 1px solid $mega-nav-color-line;
257
- display: flex;
258
- margin-bottom: -1px;
259
- min-height: mega-nav-em(50px);
260
- padding: mega-nav-em(4px) mega-nav-em(10px);
261
- position: relative;
262
- width: 100%;
263
-
264
- &,
265
- &:hover,
266
- &:focus {
267
- color: inherit;
268
- text-decoration: none;
259
+ .mega-nav-h1 {
260
+ font-size: mega-nav-em($mega-nav-font-size-h1);
261
+ font-weight: bold;
262
+ margin-bottom: mega-nav-em(2px, $mega-nav-font-size-h1);
263
+ text-transform: uppercase;
269
264
  }
270
265
 
271
- &:hover,
272
- &:focus {
273
- border-color: shade($mega-nav-color-line, 10);
274
- z-index: 1;
266
+ .mega-nav-h2 {
267
+ color: $mega-nav-color-neutral;
268
+ font-size: mega-nav-em($mega-nav-font-size-h2);
269
+ font-weight: 500;
270
+ margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-font-size-h2);
271
+ text-transform: uppercase;
275
272
  }
276
273
 
277
- > b {
278
- display: block;
279
- font-size: mega-nav-em($mega-nav-font-size-h1);
274
+ .mega-nav-h3 {
275
+ color: $mega-nav-color-neutral;
276
+ font-size: mega-nav-em($mega-nav-font-size-h3);
280
277
  font-weight: 500;
278
+ margin-bottom: mega-nav-em($mega-nav-font-size-h3 / 2, $mega-nav-font-size-h3);
279
+ text-transform: uppercase;
281
280
  }
282
281
 
283
- > ul {
282
+ .mega-nav-grid {
284
283
  list-style: none;
285
- margin-left: auto;
284
+ margin-bottom: mega-nav-em($mega-nav-font-size-base);
286
285
  padding-left: 0;
287
- text-align: right;
288
286
 
289
- > li + li {
290
- margin-top: mega-nav-em(4px);
287
+ > li {
288
+ display: flex;
291
289
  }
292
290
  }
293
- }
294
291
 
295
- @each $suite-item in $mega-nav-suite-palette {
296
- $suite-item-name: nth($suite-item, 1);
297
- $suite-item-color: nth($suite-item, 2);
292
+ .mega-nav-grid-item {
293
+ align-items: center;
294
+ border: 1px solid $mega-nav-color-line;
295
+ display: flex;
296
+ margin-bottom: -1px;
297
+ min-height: mega-nav-em(50px);
298
+ padding: mega-nav-em(4px) mega-nav-em(10px);
299
+ position: relative;
300
+ width: 100%;
298
301
 
299
- .mega-nav-grid-item-#{$suite-item-name} {
302
+ &,
300
303
  &:hover,
301
- &:focus {
302
- border-color: $suite-item-color;
304
+ &:focus,
305
+ &.#{$mega-nav-active-class} {
306
+ color: inherit;
307
+ text-decoration: none;
308
+ }
309
+
310
+ &:hover,
311
+ &:focus,
312
+ &.#{$mega-nav-active-class} {
313
+ border-color: shade($mega-nav-color-line, 10);
314
+ z-index: 1;
315
+ }
316
+
317
+ > b {
318
+ display: block;
319
+ font-size: mega-nav-em($mega-nav-font-size-h1);
320
+ font-weight: 500;
321
+ }
322
+
323
+ > ul {
324
+ list-style: none;
325
+ margin-left: auto;
326
+ padding-left: 0;
327
+ text-align: right;
328
+
329
+ > li + li {
330
+ margin-top: mega-nav-em(4px);
331
+ }
303
332
  }
304
333
  }
305
- }
306
334
 
307
- .mega-nav-grid-item-img {
308
- margin-right: mega-nav-em($mega-nav-line-height-base / 2);
309
- text-align: center;
310
- width: mega-nav-em(28px);
335
+ @each $suite-item in $mega-nav-suite-palette {
336
+ $suite-item-name: nth($suite-item, 1);
337
+ $suite-item-color: nth($suite-item, 2);
311
338
 
312
- > img {
313
- max-height: mega-nav-em(28px);
339
+ .mega-nav-grid-item-#{$suite-item-name} {
340
+ &:hover,
341
+ &:focus,
342
+ &.#{$mega-nav-active-class} {
343
+ border-color: $suite-item-color;
344
+ }
345
+ }
314
346
  }
315
- }
316
347
 
317
- .mega-nav-tag {
318
- background-color: $mega-nav-color-white;
319
- border: 1px solid currentColor;
320
- color: $mega-nav-color-neutral;
321
- display: inline-block;
322
- font-size: mega-nav-em($mega-nav-font-size-small);
323
- line-height: 1;
324
- font-weight: 500;
325
- padding: mega-nav-em(2px, $mega-nav-font-size-small) mega-nav-em(3px, $mega-nav-font-size-small);
326
- text-transform: uppercase;
327
-
328
- .mega-nav-grid-item:hover &,
329
- .mega-nav-grid-item:focus &,
348
+ .mega-nav-grid-item-img {
349
+ margin-right: mega-nav-em($mega-nav-line-height-base / 2);
350
+ text-align: center;
351
+ width: mega-nav-em(28px);
352
+
353
+ > img {
354
+ max-height: mega-nav-em(28px);
355
+ }
356
+ }
357
+
358
+ .mega-nav-tag {
359
+ background-color: $mega-nav-color-white;
360
+ border: 1px solid currentColor;
361
+ color: $mega-nav-color-neutral;
362
+ display: inline-block;
363
+ font-size: mega-nav-em($mega-nav-font-size-small);
364
+ line-height: 1;
365
+ font-weight: 500;
366
+ padding: mega-nav-em(2px, $mega-nav-font-size-small) mega-nav-em(3px, $mega-nav-font-size-small);
367
+ text-transform: uppercase;
368
+ }
369
+
370
+ .mega-nav-grid-item:hover .mega-nav-tag,
371
+ .mega-nav-grid-item:focus .mega-nav-tag,
372
+ .mega-nav-grid-item.#{$mega-nav-active-class} .mega-nav-tag,
330
373
  .mega-nav-tag:hover,
331
374
  .mega-nav-tag:focus {
332
375
  background-color: shade($mega-nav-color-neutral, 10);
@@ -338,332 +381,343 @@ $mega-nav-container-width-lg: 1170px;
338
381
  $suite-item-name: nth($suite-item, 1);
339
382
  $suite-item-color: nth($suite-item, 2);
340
383
 
341
- .mega-nav-grid-item-#{$suite-item-name}:hover &,
342
- .mega-nav-grid-item-#{$suite-item-name}:focus &,
384
+ .mega-nav-grid-item-#{$suite-item-name}:hover .mega-nav-tag,
385
+ .mega-nav-grid-item-#{$suite-item-name}:focus .mega-nav-tag,
386
+ .mega-nav-grid-item-#{$suite-item-name}.#{$mega-nav-active-class} .mega-nav-tag,
343
387
  .mega-nav-tag-#{$suite-item-name}:hover,
344
388
  .mega-nav-tag-#{$suite-item-name}:focus {
345
389
  background-color: $suite-item-color;
346
390
  border-color: $suite-item-color;
347
- color: $mega-nav-color-white;
348
391
  }
349
392
  }
350
- }
351
393
 
352
- .mega-nav-btn {
353
- align-items: center;
354
- background-color: $mega-nav-color-hashicorp;
355
- box-shadow: 3px 3px 0 rgba($mega-nav-color-hashicorp, 0.32);
356
- display: inline-flex;
357
- font-size: mega-nav-em($mega-nav-btn-font-size);
358
- font-weight: 500;
359
- line-height: 1;
360
- margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-btn-font-size);
361
- padding: mega-nav-em(($mega-nav-btn-height - $mega-nav-btn-font-size) / 2, $mega-nav-btn-font-size);
362
- text-transform: uppercase;
363
- width: 100%;
364
-
365
- &,
366
- &:hover,
367
- &:focus {
368
- color: $mega-nav-color-white;
369
- text-decoration: none;
370
- }
394
+ .mega-nav-btn {
395
+ align-items: center;
396
+ background-color: $mega-nav-color-hashicorp;
397
+ box-shadow: 3px 3px 0 rgba($mega-nav-color-hashicorp, 0.32);
398
+ display: inline-flex;
399
+ font-size: mega-nav-em($mega-nav-btn-font-size);
400
+ font-weight: 500;
401
+ line-height: 1;
402
+ margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-btn-font-size);
403
+ padding: mega-nav-em(($mega-nav-btn-height - $mega-nav-btn-font-size) / 2, $mega-nav-btn-font-size);
404
+ text-transform: uppercase;
405
+ width: 100%;
371
406
 
372
- &:hover,
373
- &:focus {
374
- background-color: tint($mega-nav-color-hashicorp, 10);
375
- }
407
+ &,
408
+ &:hover,
409
+ &:focus {
410
+ color: $mega-nav-color-white;
411
+ text-decoration: none;
412
+ }
376
413
 
377
- > img:first-child {
378
- margin-right: mega-nav-em($mega-nav-line-height-base / 2, $mega-nav-btn-font-size);
379
- }
414
+ &:hover,
415
+ &:focus {
416
+ background-color: tint($mega-nav-color-hashicorp, 10);
417
+ }
380
418
 
381
- > svg:last-child {
382
- margin-left: mega-nav-em($mega-nav-line-height-base / 2, $mega-nav-btn-font-size);
383
- }
419
+ > img:first-child {
420
+ margin-right: mega-nav-em($mega-nav-line-height-base / 2, $mega-nav-btn-font-size);
421
+ }
384
422
 
385
- &:hover > .mega-nav-icon-angle-right:last-child,
386
- &:focus > .mega-nav-icon-angle-right:last-child {
387
- transform: translateX(3px) rotate(-90deg);
388
- }
423
+ > svg:last-child {
424
+ margin-left: mega-nav-em($mega-nav-line-height-base / 2, $mega-nav-btn-font-size);
425
+ }
389
426
 
390
- }
427
+ &:hover > .mega-nav-icon-angle-right:last-child,
428
+ &:focus > .mega-nav-icon-angle-right:last-child {
429
+ transform: translateX(3px) rotate(-90deg);
430
+ }
431
+
432
+ }
391
433
 
392
- @media (min-width: $mega-nav-breakpoint-sm) {
434
+ @media (min-width: $mega-nav-breakpoint-sm) {
393
435
 
394
- .mega-nav-btn {
395
- margin-bottom: mega-nav-em($mega-nav-line-height-base * 2, $mega-nav-btn-font-size);
396
- }
436
+ .mega-nav-btn {
437
+ margin-bottom: mega-nav-em($mega-nav-line-height-base * 2, $mega-nav-btn-font-size);
438
+ }
397
439
 
398
- .mega-nav-body {
399
- padding: 2em 2em 1em;
400
- }
440
+ .mega-nav-body {
441
+ padding: 2em 2em 1em;
442
+ }
401
443
 
402
- .mega-nav-body-grid {
403
- display: flex;
404
- flex-wrap: wrap;
405
- }
444
+ .mega-nav-body-grid {
445
+ display: flex;
446
+ flex-wrap: wrap;
447
+ }
406
448
 
407
- .mega-nav-body-grid-item:nth-child(1) {
408
- width: 100%;
409
- }
449
+ .mega-nav-body-grid-item:nth-child(1) {
450
+ width: 100%;
451
+ }
410
452
 
411
- .mega-nav-body-grid-item:nth-child(2) {
412
- width: 1 / 3 * 100%;
413
- }
453
+ .mega-nav-body-grid-item:nth-child(2) {
454
+ width: 1 / 3 * 100%;
455
+ }
414
456
 
415
- .mega-nav-body-grid-item:nth-child(3) {
416
- width: 2 / 3 * 100%;
417
- }
457
+ .mega-nav-body-grid-item:nth-child(3) {
458
+ width: 2 / 3 * 100%;
459
+ }
418
460
 
419
- .mega-nav-h1 {
420
- font-size: mega-nav-em($mega-nav-font-size-h1-desktop);
421
- margin-bottom: mega-nav-em(2px, $mega-nav-font-size-h1-desktop);
422
- }
461
+ .mega-nav-h1 {
462
+ font-size: mega-nav-em($mega-nav-font-size-h1-desktop);
463
+ margin-bottom: mega-nav-em(2px, $mega-nav-font-size-h1-desktop);
464
+ }
423
465
 
424
- .mega-nav-h2 {
425
- font-size: mega-nav-em($mega-nav-font-size-h2-desktop);
426
- margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-font-size-h2-desktop);
427
- }
466
+ .mega-nav-h2 {
467
+ font-size: mega-nav-em($mega-nav-font-size-h2-desktop);
468
+ margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-font-size-h2-desktop);
469
+ }
428
470
 
429
- .mega-nav-h3 {
430
- color: $mega-nav-color-black;
431
- font-size: mega-nav-em($mega-nav-font-size-h3-desktop);
432
- font-weight: bold;
433
- margin-bottom: mega-nav-em($mega-nav-font-size-h3-desktop / 2, $mega-nav-font-size-h3);
434
- }
471
+ .mega-nav-h3 {
472
+ color: $mega-nav-color-black;
473
+ font-size: mega-nav-em($mega-nav-font-size-h3-desktop);
474
+ font-weight: bold;
475
+ margin-bottom: mega-nav-em($mega-nav-font-size-h3-desktop / 2, $mega-nav-font-size-h3);
476
+ }
435
477
 
436
- .mega-nav-grid {
437
- border: 0;
438
- display: flex;
439
- margin-bottom: mega-nav-em($mega-nav-line-height-base * 2);
478
+ .mega-nav-grid {
479
+ border: 0;
480
+ display: flex;
481
+ margin-bottom: mega-nav-em($mega-nav-line-height-base * 2);
440
482
 
441
- > li {
442
- flex-grow: 1;
443
- margin-bottom: -1px;
444
- margin-right: -1px;
445
- width: calc(100% + 1px);
483
+ > li {
484
+ flex-grow: 1;
485
+ margin-bottom: -1px;
486
+ margin-right: -1px;
487
+ width: calc(100% + 1px);
488
+ }
446
489
  }
447
- }
448
490
 
449
- .mega-nav-grid-item {
450
- display: block;
451
- border: 1px solid $mega-nav-color-line;
452
- margin-bottom: 0;
453
- padding: mega-nav-em($mega-nav-line-height-base);
491
+ .mega-nav-grid-item {
492
+ display: block;
493
+ border: 1px solid $mega-nav-color-line;
494
+ margin-bottom: 0;
495
+ padding: mega-nav-em($mega-nav-line-height-base);
454
496
 
455
- &,
456
- > ul {
457
- text-align: center;
497
+ &,
498
+ > ul {
499
+ text-align: center;
500
+ }
501
+
502
+ > ul {
503
+ display: flex;
504
+ justify-content: center;
505
+ margin-top: mega-nav-em($mega-nav-line-height-base);
506
+
507
+ > li + li {
508
+ margin-left: mega-nav-em($mega-nav-line-height-base / 2);
509
+ margin-top: 0;
510
+ }
511
+ }
458
512
  }
459
513
 
460
- > ul {
461
- display: flex;
462
- justify-content: center;
463
- margin-top: mega-nav-em($mega-nav-line-height-base);
514
+ .mega-nav-grid-item-img {
515
+ margin-right: 0;
516
+ width: auto;
464
517
 
465
- > li + li {
466
- margin-left: mega-nav-em($mega-nav-line-height-base / 2);
467
- margin-top: 0;
518
+ > img {
519
+ max-height: mega-nav-em(66px);
468
520
  }
469
521
  }
470
- }
471
522
 
472
- .mega-nav-grid-item-img {
473
- margin-right: 0;
474
- width: auto;
523
+ .mega-nav-tag {
524
+ font-size: mega-nav-em($mega-nav-font-size-small-desktop);
525
+ padding: mega-nav-em(2px, $mega-nav-font-size-small-desktop) mega-nav-em(3px, $mega-nav-font-size-small-desktop);
526
+ }
475
527
 
476
- > img {
477
- max-height: mega-nav-em(66px);
528
+ .mega-nav-btn {
529
+ width: auto;
478
530
  }
479
- }
480
531
 
481
- .mega-nav-tag {
482
- font-size: mega-nav-em($mega-nav-font-size-small-desktop);
483
- padding: mega-nav-em(2px, $mega-nav-font-size-small-desktop) mega-nav-em(3px, $mega-nav-font-size-small-desktop);
484
532
  }
485
533
 
486
- .mega-nav-btn {
487
- width: auto;
488
- }
534
+ @media (min-width: $mega-nav-breakpoint-md) {
489
535
 
490
- }
536
+ .mega-nav-banner-item {
537
+ &:first-child {
538
+ display: block;
539
+ }
540
+ }
491
541
 
492
- @media (min-width: $mega-nav-breakpoint-md) {
542
+ .mega-nav {
543
+ position: relative;
544
+
545
+ &::before {
546
+ border-bottom: 1em solid $mega-nav-color-white;
547
+ border-left: mega-nav-em(10px) solid transparent;
548
+ border-right: mega-nav-em(10px) solid transparent;
549
+ content: ' ';
550
+ display: none;
551
+ height: 0;
552
+ left: 50%;
553
+ position: absolute;
554
+ top: 100%;
555
+ transform: translateX(-50%);
556
+ width: 0;
557
+ z-index: $mega-nav-z-index + 1;
558
+ }
493
559
 
494
- .mega-nav-banner-item {
495
- &:first-child {
496
- display: block;
560
+ &.open::before {
561
+ display: block;
562
+ }
497
563
  }
498
- }
499
564
 
500
- .mega-nav {
501
- position: relative;
565
+ .mega-nav-btn {
566
+ margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-btn-font-size);
567
+ }
502
568
 
503
- &::before {
504
- border-bottom: 1em solid $mega-nav-color-white;
505
- border-left: mega-nav-em(10px) solid transparent;
506
- border-right: mega-nav-em(10px) solid transparent;
507
- content: ' ';
508
- display: none;
509
- height: 0;
510
- left: 50%;
569
+ .mega-nav-body-ct {
570
+ bottom: auto;
571
+ left: auto;
572
+ overflow: visible;
511
573
  position: absolute;
574
+ right: 0;
512
575
  top: 100%;
513
- transform: translateX(-50%);
514
- width: 0;
515
- z-index: $mega-nav-z-index + 1;
576
+ width: $mega-nav-container-width-md - $mega-nav-grid-gutter-width;
516
577
  }
517
578
 
518
- &.open::before {
519
- display: block;
579
+ .mega-nav-body {
580
+ margin: 1em 0 0;
520
581
  }
521
- }
522
-
523
- .mega-nav-btn {
524
- margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-btn-font-size);
525
- }
526
582
 
527
- .mega-nav-body-ct {
528
- bottom: auto;
529
- left: auto;
530
- overflow: visible;
531
- position: absolute;
532
- right: 0;
533
- top: 100%;
534
- width: $mega-nav-container-width-md - $mega-nav-grid-gutter-width;
535
- }
536
-
537
- .mega-nav-body {
538
- margin: 1em 0 0;
539
- }
540
-
541
- .mega-nav-body-header {
542
- display: flex;
543
- }
544
-
545
- .mega-nav-body-header-item {
546
- &:last-child {
547
- margin-left: auto;
583
+ .mega-nav-body-header {
584
+ display: flex;
548
585
  }
549
- }
550
586
 
551
- .mega-nav-body-footer {
552
- display: block;
553
- padding-top: mega-nav-em($mega-nav-font-size-base);
554
- }
555
-
556
- .mega-nav-h2 {
557
- margin-bottom: mega-nav-em($mega-nav-line-height-base * 2, $mega-nav-font-size-h2-desktop);
558
- }
587
+ .mega-nav-body-header-item {
588
+ &:last-child {
589
+ margin-left: auto;
590
+ }
591
+ }
559
592
 
560
- .mega-nav-body-grid {
561
- position: relative;
593
+ .mega-nav-body-footer {
594
+ display: block;
595
+ padding-top: mega-nav-em($mega-nav-font-size-base);
596
+ }
562
597
 
563
- &::before {
564
- background-color: $mega-nav-color-line;
565
- content: ' ';
566
- height: 1px;
567
- left: -2em;
568
- margin-top: mega-nav-em(($mega-nav-font-size-base / 2 + 3px + 1px) * -1); //1px fudge
569
- position: absolute;
570
- right: -2em;
571
- top: 100%;
598
+ .mega-nav-h2 {
599
+ margin-bottom: mega-nav-em($mega-nav-line-height-base * 2, $mega-nav-font-size-h2-desktop);
572
600
  }
573
- }
574
601
 
575
- .mega-nav-body-grid-item:nth-child(1) {
576
- width: 3 / 6 * 100%;
577
- }
602
+ .mega-nav-body-grid {
603
+ position: relative;
604
+
605
+ &::before {
606
+ background-color: $mega-nav-color-line;
607
+ content: ' ';
608
+ height: 1px;
609
+ left: -2em;
610
+ margin-top: mega-nav-em(($mega-nav-font-size-base / 2 + 3px + 1px) * -1); //1px fudge
611
+ position: absolute;
612
+ right: -2em;
613
+ top: 100%;
614
+ }
615
+ }
578
616
 
579
- .mega-nav-body-grid-item:nth-child(2) {
580
- width: 1 / 6 * 100%;
581
- }
617
+ .mega-nav-body-grid-item:nth-child(1) {
618
+ width: 3 / 6 * 100%;
619
+ }
582
620
 
583
- .mega-nav-body-grid-item:nth-child(3) {
584
- width: 2 / 6 * 100%;
585
- }
621
+ .mega-nav-body-grid-item:nth-child(2) {
622
+ width: 1 / 6 * 100%;
623
+ }
586
624
 
587
- .mega-nav-close {
588
- display: none;
589
- }
625
+ .mega-nav-body-grid-item:nth-child(3) {
626
+ width: 2 / 6 * 100%;
627
+ }
590
628
 
591
- .mega-nav-h1 {
592
- padding-left: mega-nav-em($mega-nav-line-height-base * 1.5, $mega-nav-font-size-h1-desktop);
593
- }
629
+ .mega-nav-close {
630
+ display: none;
631
+ }
594
632
 
595
- .mega-nav-h2 {
596
- padding-left: mega-nav-em($mega-nav-line-height-base * 1.5, $mega-nav-font-size-h2-desktop);
597
- }
633
+ .mega-nav-h1 {
634
+ padding-left: mega-nav-em($mega-nav-line-height-base * 1.5, $mega-nav-font-size-h1-desktop);
635
+ }
598
636
 
599
- .mega-nav-h3 {
600
- padding-left: mega-nav-em($mega-nav-line-height-base, $mega-nav-font-size-h3-desktop);
601
- padding-top: mega-nav-em($mega-nav-line-height-base / 2, $mega-nav-font-size-h3-desktop);
602
- position: relative;
637
+ .mega-nav-h2 {
638
+ padding-left: mega-nav-em($mega-nav-line-height-base * 1.5, $mega-nav-font-size-h2-desktop);
639
+ }
603
640
 
604
- &::before {
605
- background-color: $mega-nav-color-line;
606
- content: ' ';
607
- height: 1px;
608
- left: 0;
609
- position: absolute;
610
- right: mega-nav-em($mega-nav-line-height-base / 2);
611
- top: 0;
641
+ .mega-nav-h3 {
642
+ padding-left: mega-nav-em($mega-nav-line-height-base, $mega-nav-font-size-h3-desktop);
643
+ padding-top: mega-nav-em($mega-nav-line-height-base / 2, $mega-nav-font-size-h3-desktop);
644
+ position: relative;
645
+
646
+ &::before {
647
+ background-color: $mega-nav-color-line;
648
+ content: ' ';
649
+ height: 1px;
650
+ left: 0;
651
+ position: absolute;
652
+ right: mega-nav-em($mega-nav-line-height-base / 2);
653
+ top: 0;
654
+ }
612
655
  }
613
- }
614
656
 
615
- .mega-nav-grid {
616
- margin-bottom: mega-nav-em($mega-nav-font-size-base + 2px * 2 + 1px * 2 + $mega-nav-font-size-base);
617
- }
657
+ .mega-nav-grid {
658
+ margin-bottom: mega-nav-em($mega-nav-font-size-base + 2px * 2 + 1px * 2 + $mega-nav-font-size-base);
659
+ }
618
660
 
619
- .mega-nav-grid-item {
620
- position: relative;
661
+ .mega-nav-grid-item {
662
+ position: relative;
663
+
664
+ &::before {
665
+ background-color: $mega-nav-color-line;
666
+ content: ' ';
667
+ height: 1px;
668
+ left: 0;
669
+ margin-top: mega-nav-em($mega-nav-font-size-base + $mega-nav-font-size-small-desktop / 2 + 2px);
670
+ position: absolute;
671
+ right: 0;
672
+ top: 100%;
673
+ }
621
674
 
622
- &::before {
623
- background-color: $mega-nav-color-line;
624
- content: ' ';
625
- height: 1px;
626
- left: 0;
627
- margin-top: mega-nav-em($mega-nav-font-size-base + $mega-nav-font-size-small-desktop / 2 + 2px);
628
- position: absolute;
629
- right: 0;
630
- top: 100%;
631
- }
675
+ &:hover::before,
676
+ &:focus::before,
677
+ &.#{$mega-nav-active-class}::before {
678
+ background-color: shade($mega-nav-color-line, 10);
679
+ }
632
680
 
633
- &:hover::before,
634
- &:focus::before {
635
- background-color: shade($mega-nav-color-line, 10);
681
+ > ul {
682
+ left: 0;
683
+ margin-top: 0;
684
+ padding-top: mega-nav-em($mega-nav-font-size-base);
685
+ position: absolute;
686
+ right: 0;
687
+ top: 100%;
688
+
689
+ > li + li {
690
+ margin-left: mega-nav-em(16px);
691
+ }
692
+ }
636
693
  }
637
694
 
638
- > ul {
639
- left: 0;
640
- margin-top: 0;
641
- padding-top: mega-nav-em($mega-nav-font-size-base);
642
- position: absolute;
643
- right: 0;
644
- top: 100%;
695
+ @each $suite-item in $mega-nav-suite-palette {
696
+ $suite-item-name: nth($suite-item, 1);
697
+ $suite-item-color: nth($suite-item, 2);
645
698
 
646
- > li + li {
647
- margin-left: mega-nav-em(16px);
699
+ .mega-nav-grid-item-#{$suite-item-name}:hover::before,
700
+ .mega-nav-grid-item-#{$suite-item-name}:focus::before,
701
+ .mega-nav-grid-item-#{$suite-item-name}.#{$mega-nav-active-class}::before {
702
+ background-color: $suite-item-color;
648
703
  }
649
704
  }
650
705
  }
651
706
 
652
- @each $suite-item in $mega-nav-suite-palette {
653
- $suite-item-name: nth($suite-item, 1);
654
- $suite-item-color: nth($suite-item, 2);
707
+ @media (min-width: $mega-nav-breakpoint-lg) {
655
708
 
656
- .mega-nav-grid-item-#{$suite-item-name}:hover::before,
657
- .mega-nav-grid-item-#{$suite-item-name}:focus::before {
658
- background-color: $suite-item-color;
709
+ .mega-nav-body-ct {
710
+ width: $mega-nav-container-width-lg - $mega-nav-grid-gutter-width;
659
711
  }
712
+
660
713
  }
661
- }
662
714
 
663
- @media (min-width: $mega-nav-breakpoint-lg) {
715
+ } //end .mega-nav-sandbox
664
716
 
665
- .mega-nav-body-ct {
666
- width: $mega-nav-container-width-lg - $mega-nav-grid-gutter-width;
667
- }
668
717
 
669
- }
718
+ // Overrides
719
+ // --------------------------------------------------
720
+
721
+ body.modal-open {
722
+ overflow: hidden !important; //ensure correct bootstrap modal page overflow
723
+ }