From a11ebe12570bd9df45a0dbe8e2a367eb10450b46 Mon Sep 17 00:00:00 2001 From: Pedro Reis Date: Sun, 29 Jun 2014 10:29:27 +0100 Subject: [PATCH] Update _grid.scss --- scss/base/_grid.scss | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/scss/base/_grid.scss b/scss/base/_grid.scss index 37a71d1..7e09c6d 100644 --- a/scss/base/_grid.scss +++ b/scss/base/_grid.scss @@ -1,3 +1,9 @@ +.container { + max-width: $max-width; + margin: 0 auto; + clear: both; +} + .row { @extend .clearfix; clear: both; @@ -8,8 +14,8 @@ float: left; padding-left: $gutter; margin-bottom: $gutter; - .col & { - margin-bottom: 0; + .row { + margin-top: $gutter; } } @@ -17,17 +23,17 @@ $name: nth($breakpoint, 1); $declaration: nth($breakpoint, 2); @media only screen and #{$declaration}{ + @if $name == sd { + .col .col { + margin-bottom: $gutter; + &:last-child { + margin-bottom: 0; + } + } + } @for $i from 1 through $grid-columns { .col--#{$name}-#{$i} { width: percentage($i/$grid-columns); - @if $name == sd { - .col { - margin-bottom: $gutter; - &:last-child { - margin-bottom: 0; - } - } - } } .col--#{$name}-offset-#{$i} { margin-left: percentage($i/$grid-columns);