Skip to content

Commit 8a73ed9

Browse files
committed
Fixed overflowing on iPhone SE due to CSS Grid
1 parent 7c4c79e commit 8a73ed9

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{% include header.html %}
1111
<div class="iphonePreview">
1212

13-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 0 0" style="position:absolute">
13+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 0 0" style="position: absolute;">
1414
<clipPath id="screenMask" clipPathUnits="objectBoundingBox" transform="scale(0.00257, 0.00119)">
1515
<path d="M6490.24,1234.36H6216.28c-2.57,0-10.55-.07-12.07-0.07a87.524,87.524,0,0,1-12-1.03,40.051,40.051,0,0,1-11.4-3.79,38.315,38.315,0,0,1-16.82-16.84,39.948,39.948,0,0,1-3.78-11.42,72.257,72.257,0,0,1-1.04-12.02c-0.06-1.83-.06-5.56-0.06-5.56V452.125h0s0.06-11.391.06-12.086a87.9,87.9,0,0,1,1.04-12.025,39.843,39.843,0,0,1,3.78-11.413,38.283,38.283,0,0,1,16.82-16.847,39.762,39.762,0,0,1,11.4-3.785,71.909,71.909,0,0,1,12-1.037c16.99-.567,36.32-0.061,34.51-0.061,5.02,0,6.5,3.439,6.63,6.962a35.611,35.611,0,0,0,1.2,8.156,21.326,21.326,0,0,0,19.18,15.592c2.28,0.192,6.78.355,6.78,0.355H6433.7s4.5-.059,6.79-0.251a21.348,21.348,0,0,0,19.18-15.591,35.582,35.582,0,0,0,1.19-8.154c0.13-3.523,1.61-6.962,6.64-6.962-1.81,0,17.52-.5,34.5.061a71.923,71.923,0,0,1,12.01,1.038,39.832,39.832,0,0,1,11.4,3.784,38.283,38.283,0,0,1,16.82,16.844,40.153,40.153,0,0,1,3.78,11.413,87.844,87.844,0,0,1,1.03,12.023c0,0.695.06,12.084,0.06,12.084h0V1183.64s0,3.72-.06,5.55a72.366,72.366,0,0,1-1.03,12.03,40.2,40.2,0,0,1-3.78,11.41,38.315,38.315,0,0,1-16.82,16.84,40.155,40.155,0,0,1-11.4,3.79,87.669,87.669,0,0,1-12.01,1.03c-1.52,0-9.5.07-12.07,0.07" transform="translate(-6159.12 -394.656)"/>
1616
</clipPath>

_sass/layout.scss

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
background-size: cover;
1313
background-position: top;
1414
border-radius: 0px 0px 40px 40px;
15+
1516
}
1617

1718
.headerBackground {
@@ -20,7 +21,6 @@
2021
}
2122

2223
.container { // Set up the container for the site content
23-
box-sizing: border-box;
2424
display: grid;
2525
margin: auto;
2626
max-width: $content-width;
@@ -39,8 +39,9 @@
3939

4040
@media only screen and (max-width: 992px) {
4141

42-
4342
.container {
43+
grid-column-gap: 0px;
44+
grid-template-columns: 1;
4445
grid-template-rows: 115px auto auto auto auto;
4546
grid-template-areas:
4647
"h h h h h h h h h h h h"
@@ -49,15 +50,14 @@
4950
"c c c c c c c c c c c c"
5051
"f f f f f f f f f f f f";
5152
}
52-
}
53+
}
5354

5455
header {
5556
grid-area: h;
5657
display: flex;
5758
}
5859

5960
.logo {
60-
width: 50%;
6161
display: flex;
6262
justify-content: flex-start;
6363
align-items: center;
@@ -80,7 +80,6 @@ header {
8080
}
8181

8282
nav {
83-
width: 50%;
8483
display: flex;
8584
justify-content: flex-end;
8685
align-items: center;
@@ -181,8 +180,7 @@ nav > ul li a:active {
181180
}
182181

183182
.downloadButtonsContainer {
184-
display: inline-flex;
185-
flex-direction: row;
183+
display: inline-block;
186184
margin-top: 42px;
187185
filter: $drop-shadow;
188186
}
@@ -198,7 +196,6 @@ nav > ul li a:active {
198196

199197
.playStore {
200198
height: 75px;
201-
margin-right: 25px;
202199
margin-bottom: 27px;
203200
}
204201

@@ -214,14 +211,6 @@ nav > ul li a:active {
214211
height: 75px;
215212
}
216213

217-
.playStoreLink {
218-
margin: 0px;
219-
}
220-
221-
.appStoreLink {
222-
margin: 0px;
223-
}
224-
225214
.iphonePreview {
226215
grid-area: p;
227216
background-image: url($device-color);
@@ -245,7 +234,6 @@ nav > ul li a:active {
245234
clip-path: url(#screenMask);
246235
margin-left: 28px;
247236
margin-top: 3px;
248-
padding: 0px;
249237
}
250238

251239
.videoContainer > video {
@@ -274,7 +262,8 @@ nav > ul li a:active {
274262
}
275263

276264
.videoContainer {
277-
265+
width: 226px;
266+
height: 488px;
278267
}
279268

280269
}
@@ -360,7 +349,6 @@ nav > ul li a:active {
360349
padding-left: 15px;
361350
}
362351

363-
364352
}
365353

366354
footer {

0 commit comments

Comments
 (0)