Skip to content

Commit

Permalink
Finetune for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
rymai committed Sep 2, 2013
1 parent 3f41a99 commit 8955d27
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -31,7 +31,7 @@ <h1>Rémy Coutable</h1>
<script type="text/javascript">
$(function() {
$(window).resize(function() {
if($(this).width() >= 767) {
if($(this).width() >= 320) {
$.backstretch("me_bg.jpg", { fade: 50 });
}
}).resize(); // trigger resize on page load
Expand Down
28 changes: 28 additions & 0 deletions style.css
Expand Up @@ -74,6 +74,34 @@ footer .credits a:hover {
color:#ccc;
}

@media (max-width: 450px) {
html, body {
font-size:14px;
}

h1 {
font-size:28px;
}

#global {
margin:10px auto;
}
}

@media (max-width: 650px) {
footer .copyright {
position:relative;
float:left;
margin-right:10px;
}

footer .copyright, footer .credits {
position:relative;
float:left;
right:0;
}
}

footer a {
color:#112;
}
Expand Down

0 comments on commit 8955d27

Please sign in to comment.