Permalink
Browse files

fixed spacing issue for mobile

  • Loading branch information...
sukhada committed Mar 15, 2013
1 parent 4149fcd commit 7fb747eadcbb5ed8b3f59cbcfe734b4f6cae358a
Showing with 4 additions and 29 deletions.
  1. +4 −2 reddit.js
  2. +0 −27 styles.css
View
@@ -212,10 +212,12 @@ function fixMargins() {
window.onload = function() {
if ($(window).width < 704) {
$(".image").css("max-width", $(window).width());
- $(".image").css("max-width", $(window).height());
+ $(".image").css("max-width", $(window).height());
+ $("#apptitle").css("font-size", "16px");
}
else {
- $(".image").css("max-width", 500);
+ $(".image").css("max-width", 500);
+
}
console.log($(window).width());
if (localStorage.getItem('subreddits')) {
View
@@ -241,34 +241,7 @@ span.comments{
}
@media screen and (max-width: 44em) {
- body {
- margin:1.5em 0;
- }
-img {
- max-width: 44em;
- max-height: 500px;
-}
-
-#apptitle {
- float: left;
- font: 16px 'Open Sans' white;
- font-weight: bold;
- margin-top: 10px;
-}
- nav{
- ul {
- padding:0 .5em;
- }
- ul > li {
- width:100%;
- padding:.45em .25em;
- margin:0 0 .55em 0;
- &:after {
- box-shadow:none;
- }
- }
- }
}
.new {

0 comments on commit 7fb747e

Please sign in to comment.