Fixed error: there is no opposite-position(both)

This commit is contained in:
Andrew Vit 2010-08-27 23:57:45 -07:00 committed by Chris Eppstein
parent 8083760ef2
commit 3db4760782

View File

@ -24,9 +24,11 @@ $compass-right-gutter-width: floor($compass-gutter-width / 2);
// Remove the gutter for a particular side of a floated element // Remove the gutter for a particular side of a floated element
// pass `both` to disable the gutter on both sides. // pass `both` to disable the gutter on both sides.
@mixin gutterless($side) { @mixin gutterless($side) {
margin-#{$side}: 0;
@if $side == both { @if $side == both {
margin-#{opposite-position($side)}: 0; margin-left: 0;
margin-right: 0;
} @else {
margin-#{$side}: 0;
} }
} }