// ---- // Sass (v3.4.4) // Compass (v1.0.1) // ---- $positions: (top, right, bottom, left); .stretch { position: absolute; @each $pos in $positions { #{$pos}: 0; } } @mixin stretch($top:0, $right:0, $bottom:0, $left:0) { position: absolute; top: $top; right: $right; bottom: $bottom; left: $left; } // .foo { // @include stretch(); // } // .bar { // @include stretch(50%, 50%, 50%, 50%); // } // .baz { // @include stretch($top:null); // }