I am creating two different layouts: One for Landscape and one for portrait. The landscape layout has wider columns. I am using the new version of Susy to do this.
This is my code:
/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
$total-columns : 7;
$column-width : 10.900em;
$gutter-width : 2.80em;
$grid-padding : 4.00em;
$show-grid-backgrounds : true;
}
/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 0px)
and (max-device-width : 768px)
and (orientation : portrait) {
$total-columns : 7;
$column-width: 7.2em;
$gutter-width: 2.8em;
.container {
@include container;
}
}
But it doesn't work. The columns stay the same size (the smaller portrait size). How can I fix this?
Other responsive code on my page does work, it's just the grids that do not!
Susy Documentation has a whole section on Responsive Grids, but it's a bit complex to follow and doesn't discuss orientation. There's also this question that I asked before, but the solution does not work (I think its because the solution was for the old Susy version).
Thanks for any help that can be offered!