From: Brett Mason Date: Thu, 6 Oct 2016 10:28:58 +0000 (+0100) Subject: Fixes the default grid to work when added to a container (namespaced). X-Git-Tag: v6.2.4-rc1~18^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb8474854736f7d965bba507ce8856786d26b617;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fixes the default grid to work when added to a container (namespaced). Fully fixes #9225 --- diff --git a/scss/grid/_classes.scss b/scss/grid/_classes.scss index abbfd4aaa..7ceb01191 100644 --- a/scss/grid/_classes.scss +++ b/scss/grid/_classes.scss @@ -23,7 +23,7 @@ $expanded: 'expanded' ) { // Row - .#{$row} { + & .#{$row} { @include grid-row; // Collapsing @@ -34,7 +34,7 @@ } // Nesting - & & { + & .#{$row} { @include grid-row-nest($grid-column-gutter); &.#{$collapse} { @@ -69,14 +69,14 @@ // The double .row class is needed to bump up the specificity .#{$column}.#{$row}.#{$row} { float: none; + } - // To properly nest a column row, padding and margin is removed - .#{$row} & { - padding-left: 0; - padding-right: 0; - margin-left: 0; - margin-right: 0; - } + // To properly nest a column row, padding and margin is removed + .#{$row} .#{$column}.#{$row}.#{$row} { + padding-left: 0; + padding-right: 0; + margin-left: 0; + margin-right: 0; } @include -zf-each-breakpoint { @@ -116,13 +116,17 @@ .#{$-zf-size}-#{$collapse} { > .#{$column} { @include grid-col-collapse; } - .#{$row}, - .#{$expanded}.#{$row} &.#{$row} { + .#{$row} { margin-left: 0; margin-right: 0; } } + .#{$expanded}.#{$row} .#{$-zf-size}-#{$collapse}.#{$row} { + margin-left: 0; + margin-right: 0; + } + .#{$-zf-size}-#{$uncollapse} { $gutter: -zf-get-bp-val($grid-column-gutter, $-zf-size);