Skip to content

Commit

Permalink
Tweak iOS only CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminma committed Aug 28, 2021
1 parent 788059d commit c81f274
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions styles/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

.footer {
width: 100vw;
height: 20vh;
height: 15vh;
display: flex;
justify-content: center;
align-items: stretch;
Expand Down Expand Up @@ -360,6 +360,5 @@
/* fix mobile viewport */
height: -webkit-fill-available;
min-height: -webkit-fill-available;
border: 4rem dashed tomato;
}
}
10 changes: 10 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,13 @@ a:active {
* {
box-sizing: border-box;
}

/* CSS for iOS only */
@supports (-webkit-touch-callout: none) {
html,
body {
/* fix mobile viewport */
height: -webkit-fill-available;
min-height: -webkit-fill-available;
}
}

0 comments on commit c81f274

Please sign in to comment.