Permalink
Browse files

Quick fix for the $grid-columns variable scope within breakpoint()

  • Loading branch information...
1 parent 890365a commit aae46b82287f8706377128ad8cc1a522474147f6 Reda Lemeden committed Aug 27, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 grid/_grid.scss
View
@@ -120,24 +120,33 @@ $fg-max-width: $max-width;
@if length($query) == 1 {
@media screen and ($default-feature: nth($query, 1)) {
+ $default-grid-columns: $grid-columns;
$grid-columns: $total-columns;
@content;
+ $grid-columns: $default-grid-columns;
}
}
@else if length($query) == 2 {
@media screen and (nth($query, 1): nth($query, 2)) {
+ $default-grid-columns: $grid-columns;
$grid-columns: $total-columns;
@content;
+ $grid-columns: $default-grid-columns;
}
}
@else if length($query) == 3 {
@media screen and (nth($query, 1): nth($query, 2)) {
+ $default-grid-columns: $grid-columns;
$grid-columns: nth($query, 3);
@content;
+ $grid-columns: $default-grid-columns;
}
- } @else {
+ }
+
+ @else {
@warn "Wrong number of arguments for breakpoint(). Read the documentation for more details.";
}
}
+

0 comments on commit aae46b8

Please sign in to comment.