Reworking the homepage styles to work on mobile as well as screen

This commit is contained in:
Will Marshall
2013-11-06 14:14:55 +11:00
parent 0784642517
commit f9a4718bdd
2 changed files with 17 additions and 2 deletions

View File

@@ -32,4 +32,19 @@ a.inactive {
.group-header {
min-height: emCalc(55);
vertical-align: top;
}
}
@media only screen and (max-width: 768px) {
.hub_group.landing-page-row {
padding-bottom: 0px;
&.with-bottom-border {
padding-top: 0px;
}
& > .columns {
margin-bottom: 60px;
}
}
.group-header {
min-height: 0px;
}
}

View File

@@ -30,7 +30,7 @@
%h3 WHERE WOULD YOU LIKE TO SHOP?
%p.secondary Select your hub from the list below
- @groups.in_groups_of(4, false) do |row|
.row.landing-page-row{:class => (row.last == @groups.last ? "with-bottom-border" : "")}
.row.landing-page-row.hub_group{:class => (row.last == @groups.last ? "with-bottom-border" : "")}
- row.each do |group|
.large-3.columns
.group-header