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 +4 -4
- data/assets/javascripts/hashicorp/mega-nav.js +25 -2
- data/assets/stylesheets/hashicorp/mega-nav.scss +514 -460
- data/docker/Dockerfile +1 -1
- data/lib/middleman-hashicorp/partials/_mega.html.erb +107 -105
- data/lib/middleman-hashicorp/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09c1497b5ff893c9e0959599663b8d48205076b1'
|
4
|
+
data.tar.gz: cbf89fb7c5de1287128f88d4d9126746610a87e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
59
|
-
|
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
|
-
|
67
|
-
|
68
|
-
|
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
|
-
|
72
|
-
|
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
|
-
|
83
|
-
|
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
|
-
.
|
88
|
-
|
89
|
-
|
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
|
-
|
99
|
-
|
100
|
-
|
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
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
120
|
+
&:last-child {
|
121
|
+
margin-left: auto;
|
122
|
+
}
|
123
|
+
}
|
107
124
|
|
108
|
-
|
109
|
-
|
110
|
-
|
125
|
+
.mega-nav-tagline {
|
126
|
+
align-items: center;
|
127
|
+
display: inline-flex;
|
128
|
+
margin-bottom: 0;
|
111
129
|
|
112
|
-
|
113
|
-
|
114
|
-
|
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
|
124
|
-
|
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
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
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
|
-
|
141
|
-
|
142
|
-
|
143
|
-
height: 1em;
|
144
|
-
stroke: currentColor;
|
145
|
-
width: 1em;
|
146
|
-
}
|
146
|
+
img {
|
147
|
+
max-width: 100%;
|
148
|
+
}
|
147
149
|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
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
|
-
|
154
|
-
|
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-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
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-
|
170
|
-
|
171
|
-
|
172
|
-
|
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-
|
185
|
-
|
186
|
-
|
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-
|
193
|
-
|
194
|
-
|
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
|
-
|
197
|
-
|
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-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
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-
|
222
|
-
|
223
|
-
|
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
|
-
|
229
|
-
|
230
|
-
|
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
|
-
|
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-
|
245
|
-
|
246
|
-
|
247
|
-
|
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
|
-
|
250
|
-
|
253
|
+
&:hover,
|
254
|
+
&:focus {
|
255
|
+
color: tint($mega-nav-color-black, 20);
|
256
|
+
}
|
251
257
|
}
|
252
|
-
}
|
253
258
|
|
254
|
-
.mega-nav-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
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
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
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
|
-
|
278
|
-
|
279
|
-
font-size: mega-nav-em($mega-nav-font-size-
|
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
|
-
|
282
|
+
.mega-nav-grid {
|
284
283
|
list-style: none;
|
285
|
-
margin-
|
284
|
+
margin-bottom: mega-nav-em($mega-nav-font-size-base);
|
286
285
|
padding-left: 0;
|
287
|
-
text-align: right;
|
288
286
|
|
289
|
-
> li
|
290
|
-
|
287
|
+
> li {
|
288
|
+
display: flex;
|
291
289
|
}
|
292
290
|
}
|
293
|
-
}
|
294
291
|
|
295
|
-
|
296
|
-
|
297
|
-
|
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
|
-
|
302
|
+
&,
|
300
303
|
&:hover,
|
301
|
-
&:focus
|
302
|
-
|
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
|
-
|
308
|
-
|
309
|
-
|
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
|
-
|
313
|
-
|
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-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
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
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
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
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
407
|
+
&,
|
408
|
+
&:hover,
|
409
|
+
&:focus {
|
410
|
+
color: $mega-nav-color-white;
|
411
|
+
text-decoration: none;
|
412
|
+
}
|
376
413
|
|
377
|
-
|
378
|
-
|
379
|
-
|
414
|
+
&:hover,
|
415
|
+
&:focus {
|
416
|
+
background-color: tint($mega-nav-color-hashicorp, 10);
|
417
|
+
}
|
380
418
|
|
381
|
-
|
382
|
-
|
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
|
-
|
386
|
-
|
387
|
-
|
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
|
-
|
395
|
-
|
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
|
-
|
399
|
-
|
400
|
-
|
440
|
+
.mega-nav-body {
|
441
|
+
padding: 2em 2em 1em;
|
442
|
+
}
|
401
443
|
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
444
|
+
.mega-nav-body-grid {
|
445
|
+
display: flex;
|
446
|
+
flex-wrap: wrap;
|
447
|
+
}
|
406
448
|
|
407
|
-
|
408
|
-
|
409
|
-
|
449
|
+
.mega-nav-body-grid-item:nth-child(1) {
|
450
|
+
width: 100%;
|
451
|
+
}
|
410
452
|
|
411
|
-
|
412
|
-
|
413
|
-
|
453
|
+
.mega-nav-body-grid-item:nth-child(2) {
|
454
|
+
width: 1 / 3 * 100%;
|
455
|
+
}
|
414
456
|
|
415
|
-
|
416
|
-
|
417
|
-
|
457
|
+
.mega-nav-body-grid-item:nth-child(3) {
|
458
|
+
width: 2 / 3 * 100%;
|
459
|
+
}
|
418
460
|
|
419
|
-
|
420
|
-
|
421
|
-
|
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
|
-
|
425
|
-
|
426
|
-
|
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
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
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
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
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
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
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
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
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
|
-
|
457
|
-
|
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
|
-
|
461
|
-
|
462
|
-
|
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
|
-
>
|
466
|
-
|
467
|
-
margin-top: 0;
|
518
|
+
> img {
|
519
|
+
max-height: mega-nav-em(66px);
|
468
520
|
}
|
469
521
|
}
|
470
|
-
}
|
471
522
|
|
472
|
-
|
473
|
-
|
474
|
-
|
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
|
-
|
477
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
495
|
-
|
496
|
-
|
560
|
+
&.open::before {
|
561
|
+
display: block;
|
562
|
+
}
|
497
563
|
}
|
498
|
-
}
|
499
564
|
|
500
|
-
|
501
|
-
|
565
|
+
.mega-nav-btn {
|
566
|
+
margin-bottom: mega-nav-em($mega-nav-line-height-base, $mega-nav-btn-font-size);
|
567
|
+
}
|
502
568
|
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
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
|
-
|
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
|
-
|
519
|
-
|
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
|
-
|
528
|
-
|
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
|
-
|
552
|
-
|
553
|
-
|
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
|
-
|
561
|
-
|
593
|
+
.mega-nav-body-footer {
|
594
|
+
display: block;
|
595
|
+
padding-top: mega-nav-em($mega-nav-font-size-base);
|
596
|
+
}
|
562
597
|
|
563
|
-
|
564
|
-
|
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
|
-
|
576
|
-
|
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
|
-
|
580
|
-
|
581
|
-
|
617
|
+
.mega-nav-body-grid-item:nth-child(1) {
|
618
|
+
width: 3 / 6 * 100%;
|
619
|
+
}
|
582
620
|
|
583
|
-
|
584
|
-
|
585
|
-
|
621
|
+
.mega-nav-body-grid-item:nth-child(2) {
|
622
|
+
width: 1 / 6 * 100%;
|
623
|
+
}
|
586
624
|
|
587
|
-
|
588
|
-
|
589
|
-
|
625
|
+
.mega-nav-body-grid-item:nth-child(3) {
|
626
|
+
width: 2 / 6 * 100%;
|
627
|
+
}
|
590
628
|
|
591
|
-
|
592
|
-
|
593
|
-
|
629
|
+
.mega-nav-close {
|
630
|
+
display: none;
|
631
|
+
}
|
594
632
|
|
595
|
-
|
596
|
-
|
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
|
-
|
600
|
-
|
601
|
-
|
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
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
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
|
-
|
616
|
-
|
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
|
-
|
620
|
-
|
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
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
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
|
-
|
634
|
-
|
635
|
-
|
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
|
-
|
639
|
-
|
640
|
-
|
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
|
-
|
647
|
-
|
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
|
-
@
|
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-
|
657
|
-
|
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
|
-
|
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
|
+
}
|