Skip to content

Commit 1e9bc71

Browse files
committed
Fix: adjust header breakpoints to prevent page overflow
1 parent eece240 commit 1e9bc71

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

src/css/_navigation.scss

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
#primary-menu {
1414
position: relative;
1515
padding: 0;
16-
margin:0;
16+
margin: 0;
1717

18-
#search-menu {
18+
#search-menu {
1919
position: initial;
2020
}
2121
}
2222

2323

24-
#primary-menu > li {
24+
#primary-menu>li {
2525
position: relative;
2626
opacity: 1;
2727
transition: opacity 200ms linear;
@@ -30,7 +30,7 @@
3030

3131
a {
3232
display: inline-block;
33-
padding:8px 7px;
33+
padding: 8px 7px;
3434

3535
}
3636
}
@@ -56,9 +56,9 @@
5656
}
5757

5858
form {
59-
position:absolute;
60-
right:60px;
61-
top:2px;
59+
position: absolute;
60+
right: 60px;
61+
top: 2px;
6262
width: 0%;
6363
overflow: hidden;
6464
transition: width 300ms linear;
@@ -71,7 +71,7 @@
7171

7272
#cta-download {
7373
position: relative;
74-
top:-4px;
74+
top: -4px;
7575
}
7676

7777

@@ -125,24 +125,24 @@
125125
width: 160px;
126126
top: 100px;
127127
left: -8px;
128-
opacity: 0;;
128+
opacity: 0;
129+
;
129130
font-weight: normal;
130131
border: solid 2px rgba(255, 255, 255, 0.5);
131-
background-clip: padding-box;
132+
background-clip: padding-box;
132133
font-size: 0.9em;
133134
transition: all 40ms cubic-bezier(0.42, 0, 1, 1);
134135
}
135136

136-
.site-header li:hover {
137+
.site-header li:hover {
137138
.sub-menu {
138139
top: 100%;
139140
opacity: 1;
140141
}
141142
}
142143

143144
.site-header nav .sub-menu {
144-
a {
145-
}
145+
a {}
146146
}
147147

148148
.hamburger-click {
@@ -154,7 +154,7 @@
154154
right: 40px;
155155
}
156156

157-
@media screen and (max-width: 825px) {
157+
@media screen and (max-width: 1000px) {
158158
.header-social {
159159
display: none;
160160
}
@@ -174,21 +174,22 @@ input {
174174
margin-top: 4px;
175175
}
176176

177-
@media screen and (max-width: 825px) {
177+
@media screen and (max-width: 1000px) {
178+
178179
.hamburger-icon,
179180
.hamburger-click {
180181
display: block;
181182
}
182183

183-
input:checked ~ #primary-menu {
184+
input:checked~#primary-menu {
184185
transform: none;
185186
}
186187

187188
#cta-download {
188189
display: none;
189190
}
190191

191-
#primary-menu{
192+
#primary-menu {
192193
-webkit-transform: none;
193194
transform: none;
194195
background: red;
@@ -202,27 +203,27 @@ input {
202203
font-size: 2em;
203204
margin: 0px;
204205
width: 100%;
205-
background: rgba(255,255,255,0.9);
206+
background: rgba(255, 255, 255, 0.9);
206207
z-index: 10;
207208
transform-origin: 0% 0%;
208209
transform: translate(-120%, 0%);
209-
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
210+
transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
210211

211212
li {
212213
padding: 0;
213214
}
214215

215216
.sub-menu {
216-
top:0;
217+
top: 0;
217218
opacity: 1;
218219
position: relative;
219220
width: 100%;
220221
padding: 0;
221-
margin:0;
222-
222+
margin: 0;
223+
223224
a {
224225
font-size: 0.7em;
225-
opacity:0.8;
226+
opacity: 0.8;
226227
}
227228
}
228229
}
@@ -231,23 +232,22 @@ input {
231232
width: 100%;
232233
line-height: 0;
233234
font-size: 0.7em;
235+
234236
.toggler {
235237
display: none;
236238
}
237-
239+
238240
form {
239241
width: 100%;
240242
position: relative;
241-
right:0px;
242-
top:0px;
243+
right: 0px;
244+
top: 0px;
243245
}
244-
246+
245247
input {
246248
width: 100%;
247249
}
248250
}
249-
250-
251-
}
252251

253252

253+
}

0 commit comments

Comments
 (0)