Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
fix media queries for iPhone
Browse files Browse the repository at this point in the history
  • Loading branch information
grungerabbit committed Apr 26, 2014
1 parent 6b93c37 commit f807bdd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 3 deletions.
19 changes: 18 additions & 1 deletion _site/lib/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,8 @@ li[class^='past']:hover div:last-child {
}
@media only screen and (max-width: 30em) {
.grid li,
.grid.sponsors li {
.grid.sponsors li,
.grid li.half {
width: 100%;
padding: 1em;
margin-bottom: 5%;
Expand All @@ -753,6 +754,22 @@ li[class^='past']:hover div:last-child {
}
}
@media only screen and (max-width: 40em) {
header {
margin-top: 2.75rem;
}
.back-to-future {
position: fixed;
z-index: 999;
width: 100%;
}
.back-to-future small,
.back-to-future h5 {
display: inline;
font-size: 1.5rem;
}
.back-to-future h5:before {
content: "• ";
}
header.main {
background-position: center bottom;
min-height: 30em;
Expand Down
17 changes: 16 additions & 1 deletion lib/css/_less/media-queries.less
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

}
@media only screen and (max-width: 30em) {
.grid li, .grid.sponsors li {
.grid li, .grid.sponsors li, .grid li.half {
width: 100%;
padding: 1em;
margin-bottom: 5%;
Expand All @@ -122,6 +122,21 @@
}
}
@media only screen and (max-width: 40em) {
header {
margin-top: 2.75rem;
}
.back-to-future {
position: fixed;
z-index: 999;
width: 100%;
small, h5 {
display: inline;
font-size: 1.5rem;
}
h5:before {
content: "";
}
}
header.main {
background-position: center bottom;
min-height: 30em;
Expand Down
19 changes: 18 additions & 1 deletion lib/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,8 @@ li[class^='past']:hover div:last-child {
}
@media only screen and (max-width: 30em) {
.grid li,
.grid.sponsors li {
.grid.sponsors li,
.grid li.half {
width: 100%;
padding: 1em;
margin-bottom: 5%;
Expand All @@ -753,6 +754,22 @@ li[class^='past']:hover div:last-child {
}
}
@media only screen and (max-width: 40em) {
header {
margin-top: 2.75rem;
}
.back-to-future {
position: fixed;
z-index: 999;
width: 100%;
}
.back-to-future small,
.back-to-future h5 {
display: inline;
font-size: 1.5rem;
}
.back-to-future h5:before {
content: "• ";
}
header.main {
background-position: center bottom;
min-height: 30em;
Expand Down

0 comments on commit f807bdd

Please sign in to comment.