17
17
<!-- =========================================================== Desktop -->
18
18
<div class =" grid-noGutter-noBottom main-content" >
19
19
20
- <div class =" col-3_md-2 " >
20
+ <div class =" col-3_md-2_sm-4_mi-6 " >
21
21
<NuxtLink to =" /" class =" logo" >
22
22
<SiteLogo />
23
23
</NuxtLink >
24
24
</div >
25
25
26
- <div class =" col-4_md-5 " data-push-left =" off-2_md-1" >
26
+ <div class =" col-4_md-5_sm-hidden " data-push-left =" off-2_md-1" >
27
27
<Navbar :links =" navigation" class =" desktop" />
28
28
</div >
29
29
30
- <div class =" col-3_md-4" >
31
-
30
+ <div class =" col-3_md-4_sm-5_mi-6" data-push-left =" off-0_sm-3_mi-0" >
32
31
<div class =" nav-ctas" >
32
+
33
+ <div class =" nav-toggle-wrapper before" >
34
+ <ZeroButton
35
+ tag =" button"
36
+ @click =" toggleNav" >
37
+ <div :class =" ['hamburger', { open: navigationOpen }]" >
38
+ <div class =" bottom" >
39
+ </div >
40
+ </div >
41
+ </ZeroButton >
42
+ </div >
43
+
33
44
<ButtonCta
34
45
v-for =" cta in ctas"
35
46
:key =" cta.component || cta.text"
45
56
{{ cta.text }}
46
57
</span >
47
58
</ButtonCta >
48
- </div >
49
59
50
- <div class =" nav-toggle-wrapper" >
51
- <ZeroButton
52
- tag =" button"
53
- @click =" toggleNav" >
54
- <div :class =" ['hamburger', { open: navigationOpen }]" >
55
- <div class =" bottom" >
60
+ <div class =" nav-toggle-wrapper after" >
61
+ <ZeroButton
62
+ tag =" button"
63
+ @click =" toggleNav" >
64
+ <div :class =" ['hamburger', { open: navigationOpen }]" >
65
+ <div class =" bottom" >
66
+ </div >
56
67
</div >
57
- </div >
58
- </ZeroButton >
59
- </div >
68
+ </ZeroButton >
69
+ </div >
60
70
71
+ </div >
61
72
</div >
62
73
63
74
</div >
@@ -128,10 +139,15 @@ const getCtaComponent = (icon) => {
128
139
align-items : center ;
129
140
// height: $siteHeaderHeight;
130
141
padding : 2rem 0 ;
142
+ @include mini {
143
+ padding : 1.25rem 0 ;
144
+ }
131
145
& .nav-panel-open {
146
+ position : fixed ;
147
+ width : 100% ;
132
148
z-index : 1000 ;
133
- .main-content {
134
- position : fixed ;
149
+ .main-content ,
150
+ .mobile-background-panel {
135
151
z-index : 1001 ;
136
152
}
137
153
.nav-toggle-wrapper {
@@ -177,8 +193,10 @@ const getCtaComponent = (icon) => {
177
193
transition : 250ms ease ;
178
194
}
179
195
@include mini {
180
- width : toRem (75 );
181
- height : toRem (75 );
196
+ max-width : toRem (205 );
197
+ }
198
+ @include tiny {
199
+ max-width : toRem (150 );
182
200
}
183
201
}
184
202
}
@@ -209,6 +227,7 @@ const getCtaComponent = (icon) => {
209
227
}
210
228
211
229
.nav-ctas {
230
+ position : relative ;
212
231
display : flex ;
213
232
justify-content : space-between ;
214
233
height : 100% ;
@@ -227,6 +246,14 @@ const getCtaComponent = (icon) => {
227
246
@include small {
228
247
transform : unset ;
229
248
}
249
+ @include mini {
250
+ :deep (.theme__primary ) {
251
+ display : none ;
252
+ }
253
+ :deep(.button ) {
254
+ margin-left : 0.5rem ;
255
+ }
256
+ }
230
257
}
231
258
232
259
.desktop ,
@@ -237,15 +264,31 @@ const getCtaComponent = (icon) => {
237
264
.icon {
238
265
width : toRem (20 );
239
266
height : toRem (20 );
267
+ @include mini {
268
+ width : toRem (14 );
269
+ height : toRem (14 );
270
+ }
240
271
}
241
272
242
273
// /////////////////////////////////////////////////////////////////// Hamburger
243
274
.nav-toggle-wrapper {
244
275
display : none ;
245
276
position : relative ;
246
- justify-content : flex-end ;
247
277
@include small {
248
- display : flex ;
278
+ & .before {
279
+ display : flex ;
280
+ justify-content : flex-end ;
281
+ }
282
+ }
283
+ @include mini {
284
+ margin-left : toRem (10 );
285
+ & .before {
286
+ display : none ;
287
+ }
288
+ & .after {
289
+ display : flex ;
290
+ justify-content : flex-end ;
291
+ }
249
292
}
250
293
:deep (.button ) {
251
294
padding : toRem (5 );
@@ -254,51 +297,59 @@ const getCtaComponent = (icon) => {
254
297
255
298
.hamburger {
256
299
position : relative ;
257
- width : toRem (26 );
258
- height : toRem (18 );
300
+ width : toRem (22 );
301
+ height : toRem (12 );
259
302
& :before ,
260
303
& :after ,
261
304
.bottom {
262
305
position : absolute ;
263
306
width : 100% ;
264
307
left : 0 ;
265
308
transition : 250ms ease ;
309
+ border-top-right-radius : toRem (1.5 );
310
+ border-bottom-right-radius : toRem (1.5 );
311
+ border-top-left-radius : toRem (0 );
312
+ border-bottom-left-radius : toRem (0 );
266
313
}
267
314
& :before ,
268
315
& :after {
269
316
content : ' ' ;
270
- border-bottom : solid toRem (2 ) $alto ;
271
317
}
272
318
& :before {
273
319
top : 0 ;
320
+ width : toRem (16.5 );
321
+ left : toRem (5.5 );
322
+ border-bottom : solid toRem (3 ) $sageGreen ;
274
323
}
275
324
& :after {
276
325
top : 50% ;
326
+ border-bottom : solid toRem (3 ) rgba ($sageGreen , 0.5 );
277
327
}
278
328
.bottom {
279
329
top : 100% ;
280
- border-bottom : solid toRem (5 ) $alto ;
330
+ border-bottom : solid toRem (3 ) rgba ( $sageGreen , 0.5 ) ;
281
331
}
282
332
& .open {
333
+ & :before ,
334
+ & :after ,
335
+ .bottom {
336
+ border-top-left-radius : toRem (1.5 );
337
+ border-bottom-left-radius : toRem (1.5 );
338
+ }
283
339
& :before {
284
340
width : toRem (20 );
285
- border-bottom : solid toRem (2 ) $alto ;
286
- transform : translate (2px , 4.5px ) rotate (45deg );
287
- @include mini {
288
- transform : translate (2px , 4px ) rotate (45deg );
289
- }
341
+ border-bottom : solid toRem (3 ) $sageGreen ;
342
+ transform : translate (-4px , 4.5px ) rotate (45deg );
290
343
}
291
344
& :after {
292
345
width : toRem (20 );
293
- border-bottom : solid toRem (2 ) $alto ;
294
- transform : translate (2px , -4.5px ) rotate (-45deg );
295
- @include mini {
296
- transform : translate (2px , -4px ) rotate (-45deg );
297
- }
346
+ border-bottom : solid toRem (3 ) $sageGreen ;
347
+ transform : translate (1px , -1.5px ) rotate (-45deg )
298
348
}
299
349
.bottom {
300
350
width : 0 ;
301
- border-bottom : solid toRem (5 ) $alto ;
351
+ border-bottom : solid toRem (3 ) $sageGreen ;
352
+ transform : translateX (11px );
302
353
}
303
354
}
304
355
}
@@ -318,14 +369,15 @@ const getCtaComponent = (icon) => {
318
369
width : 100vw ;
319
370
height : 100vh ;
320
371
background-color : $codGray ;
321
- transition : opacity 250ms ease , transform 250ms ease , visibility 250ms ease ;
372
+ transition : opacity 250ms ease , transform 250ms ease , visibility 250ms ease , z-index 250 ms ease ;
322
373
visibility : hidden ;
323
374
transform : scale (1.1 );
324
375
opacity : 0 ;
325
376
& .open {
326
377
opacity : 1 ;
327
378
visibility : visible ;
328
379
transform : scale (1 );
380
+ z-index : 1000 ;
329
381
}
330
382
// :deep(.navigation) {
331
383
// .nav-item {
0 commit comments