]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix grid-context mixin 7330/head
authorZé Cipriano <ze@zecipriano.com>
Tue, 1 Dec 2015 11:07:07 +0000 (11:07 +0000)
committerZé Cipriano <ze@zecipriano.com>
Tue, 1 Dec 2015 11:07:07 +0000 (11:07 +0000)
Store the correct value in $old-grid-column-count so it can be restored
later.

As it was, everytime the grid-context mixin was called, the global value
of $grid-column-count would change to the value of the $columns
parameter.

scss/grid/_row.scss

index 5b1f25397322f73ae5332a873a4502bd99f8cda3..25e768e86a3406a2095867b3676183241a39b6a0 100644 (file)
@@ -18,7 +18,7 @@
   $root: false
 ) {
   // Store the current column count so it can be re-set later
-  $old-grid-column-count: $columns;
+  $old-grid-column-count: $grid-column-count;
   $grid-column-count: $columns !global;
 
   @if $root {