]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Issue #7498 Remove !global flag from $grid-column-count 7538/head
authorAaron Arney <ocularrhythm@users.noreply.github.com>
Mon, 14 Dec 2015 22:26:52 +0000 (17:26 -0500)
committerAaron Arney <ocularrhythm@users.noreply.github.com>
Mon, 14 Dec 2015 22:26:52 +0000 (17:26 -0500)
Creating a custom row size using the grid-row mixin was not properly generating the correct CSS. Removing the !global flag from the $grid-column-count in the grid-context mixin seems to correct this.

Tested using following scss. The first list generates a row 17 columns wide, while the second list generates the default 12
ul.one
  @include grid-row(17)
  li
    @include grid-column(1)

ul.two
  li
    @include grid-column(1)

scss/grid/_row.scss

index 25e768e86a3406a2095867b3676183241a39b6a0..3f0aa3bf2f8c987214f69ba0414cea22f0ffa3d7 100644 (file)
@@ -29,7 +29,7 @@
   }
 
   // Restore the old column count
-  $grid-column-count: $old-grid-column-count !global;
+  $grid-column-count: $old-grid-column-count;
 }
 
 /// Creates a grid row.