@@ -4,7 +4,6 @@ import styled from '@emotion/styled'
4
4
import { Link } from 'gatsby'
5
5
import GitpodLogoDark from '../resources/gitpod-logo-dark.svg'
6
6
import { colors , sizes , borders } from '../styles/variables'
7
- import DropDown from '../components/DropDown'
8
7
import { Global , css } from '@emotion/core'
9
8
10
9
const StyledNav = styled . nav `
@@ -14,7 +13,7 @@ const StyledNav = styled.nav`
14
13
padding : 4rem 0 ;
15
14
position : relative;
16
15
17
- @media (max-width: ${ sizes . breakpoints . lg } ) {
16
+ @media (max-width : 1040 px ) {
18
17
font-size : 110% ;
19
18
display : block;
20
19
}
@@ -41,7 +40,7 @@ const StyledNav = styled.nav`
41
40
display : flex;
42
41
align-items : center;
43
42
44
- @media (max-width: ${ sizes . breakpoints . lg } ) {
43
+ @media (max-width : 1040 px ) {
45
44
flex-direction : column;
46
45
width : 100% ;
47
46
padding-top : 8rem ;
@@ -55,7 +54,7 @@ const StyledNav = styled.nav`
55
54
}
56
55
}
57
56
58
- @media (max-width: ${ sizes . breakpoints . lg } ) {
57
+ @media (max-width : 1040 px ) {
59
58
.navIsRendered {
60
59
display : flex;
61
60
}
@@ -68,13 +67,13 @@ const StyledNav = styled.nav`
68
67
.nav__item {
69
68
cursor : pointer;
70
69
71
- @media (min-width : calc ( ${ sizes . breakpoints . lg } + 1 px ) ) {
70
+ @media (min-width : 1041 px ) {
72
71
& : not (: last-child ) {
73
72
margin-right : 5rem ;
74
73
}
75
74
}
76
75
77
- @media (max-width: ${ sizes . breakpoints . lg } ) {
76
+ @media (max-width : 1040 px ) {
78
77
width : 100% ;
79
78
padding : 2rem 0 ;
80
79
@@ -92,7 +91,7 @@ const StyledNav = styled.nav`
92
91
display : flex;
93
92
align-items : center;
94
93
95
- @media (min-width : calc ( ${ sizes . breakpoints . lg } + 1 px ) ) {
94
+ @media (min-width : 1041 px ) {
96
95
display : none;
97
96
}
98
97
@@ -161,7 +160,7 @@ const StyledNav = styled.nav`
161
160
}
162
161
}
163
162
164
- @media (min-width : calc ( ${ sizes . breakpoints . lg } + 1 px ) ) {
163
+ @media (min-width : 1041 px ) {
165
164
display : none;
166
165
}
167
166
@@ -172,7 +171,7 @@ const StyledNav = styled.nav`
172
171
}
173
172
174
173
175
- @media (max-width: ${ sizes . breakpoints . lg } ) {
174
+ @media (max-width : 1040 px ) {
176
175
.shown {
177
176
opacity : 1 ;
178
177
transform : scale (1 ) translateX (0 );
@@ -212,7 +211,7 @@ const Nav = () => {
212
211
const [ isNavRendered , setIsNavRendered ] = useState ( false )
213
212
214
213
const unLock = ( ) => {
215
- if ( window . innerWidth >= 1240 ) {
214
+ if ( window . innerWidth >= 1040 ) {
216
215
setIsNavRendered ( false )
217
216
}
218
217
}
0 commit comments