]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix wrong implementation of centering the grid-container 11634/head
authorHarwin <harwin@impres.nl>
Mon, 17 Dec 2018 10:41:57 +0000 (11:41 +0100)
committerHarwin <harwin@impres.nl>
Mon, 17 Dec 2018 10:41:57 +0000 (11:41 +0100)
The margin on top and bottom of the container should not be set to ZERO. And vertical margin on the grid-container makes it impossible to add a new margin top or bottom. Should not be set by default.

scss/xy-grid/_grid.scss

index 9a91bc6f514e70911472a6f30307705852ce2339..722d0b24eea1142090ca78d450fb692defe55b56 100644 (file)
@@ -17,7 +17,8 @@
   @include xy-gutters($gutters: $padding, $gutter-type: padding);
 
   max-width: $width;
-  margin: 0 auto;
+  margin-left: auto;
+  margin-right: auto;
 }
 
 /// Creates a container for your flex cells.