Removed bottom margins

This commit is contained in:
Mike Francis 2014-09-23 10:16:54 +01:00
parent 34c584bf8c
commit 858bcd1311
1 changed files with 3 additions and 13 deletions

View File

@ -21,35 +21,25 @@
@mixin grid-loop($name){ @mixin grid-loop($name){
@for $i from 1 through $grid-columns { @for $i from 1 through $grid-columns {
.col--#{$name}-#{$i} { .col--#{$name}-#{$i} {
width: percentage($i/$grid-columns); width: percentage($i / $grid-columns);
} }
.col--#{$name}-offset-#{$i} { .col--#{$name}-offset-#{$i} {
margin-left: percentage($i/$grid-columns); margin-left: percentage($i / $grid-columns);
} }
} }
} }
@each $breakpoint in $breakpoints-list { @each $breakpoint in $breakpoints-list {
$name: nth($breakpoint, 1); $name: nth($breakpoint, 1);
$declaration: nth($breakpoint, 2); $declaration: nth($breakpoint, 2);
@if $name == ld { @if $name == ld {
@include grid-loop($name); @include grid-loop($name);
} }
@else { @else {
@media only screen and #{$declaration} { @media only screen and #{$declaration} {
@if $name == sd {
.col .col {
margin-bottom: $gutter;
&:last-child {
margin-bottom: 0;
}
}
}
@include grid-loop($name); @include grid-loop($name);
} }
} }
} }