From 6fb990869989d8064722b941f73efbe0915b7da0 Mon Sep 17 00:00:00 2001 From: Brett Mason Date: Wed, 14 Jun 2017 20:12:26 +0100 Subject: [PATCH] Add properties that reset the width/height to auto when using `.grid-margin-y` on a `.grid-x` for example --- scss/xy-grid/_classes.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scss/xy-grid/_classes.scss b/scss/xy-grid/_classes.scss index 0575abbec..d9599459b 100644 --- a/scss/xy-grid/_classes.scss +++ b/scss/xy-grid/_classes.scss @@ -129,6 +129,16 @@ @include -xy-breakpoint-cell-classes($-zf-size, $-zf-size, $vertical); } } + + // Reset width when using `.grid-margin-x` not on `.grid-x` + .grid-margin-x:not(.grid-x) > .cell { + width: auto; + } + + // Reset height when using `.grid-margin-y` not on `.grid-y` + .grid-margin-y:not(.grid-y) > .cell { + height: auto; + } } // Padding Grid classes -- 2.47.2