Skip to content

Commit

Permalink
simplified responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter West committed Jun 16, 2012
1 parent 3df892b commit fb35efb
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions public/less/styles.less
Expand Up @@ -28,9 +28,12 @@
@cardWidth: 222px;
@cardHeight: 310px;

body {
min-width: 225px;
}

.container {
margin-bottom: 20px;
min-width: 210px;
}

form.search {
Expand Down Expand Up @@ -79,7 +82,7 @@ form.search {

.image {
position: absolute; left: 0;
height: @cardHeight; min-width: @cardWidth;
height: @cardHeight; min-width: @cardWidth; max-width: @cardWidth + 3;
margin-right: 15px; margin-bottom: 10px;
background: url(../images/card_back.png) no-repeat;
}
Expand All @@ -91,14 +94,6 @@ form.search {
.btn { float: none; }
}

/* Adjusts image sizing for very small windows */
@media (max-width: 265px) {
.card .image {
height: auto; min-width: 0;
background: none;
}
}

/* Right aligns search button */
@media (max-width: 767px) {
form.search input.submit {
Expand All @@ -113,4 +108,4 @@ form.search {
margin-left: 0;
margin-top: @cardHeight + 10px;
}
}
}

0 comments on commit fb35efb

Please sign in to comment.