sass/susy/_margin.scss in susy-1.0.5.alpha.0 vs sass/susy/_margin.scss in susy-1.0.5
- old
+ new
@@ -11,19 +11,21 @@
@mixin pre(
$columns,
$context : $total-columns,
$from : $from-direction
) {
+ $from : unquote($from);
margin-#{$from}: space($columns,$context);
}
// 'push' is a synonymn for 'pre'
@mixin push(
$columns,
$context : $total-columns,
$from : $from-direction
) {
+ $from : unquote($from);
@include pre($columns,$context,$from)
}
// Apply negative 'columns' margin before an element to pull it along the grid.
//
@@ -35,10 +37,11 @@
@mixin pull(
$columns,
$context : $total-columns,
$from : $from-direction
) {
+ $from : unquote($from);
margin-#{$from}: 0 - space($columns, $context);
}
// Apply 'columns' margin after an element to contain it in a grid.
//
@@ -50,10 +53,11 @@
@mixin post(
$columns,
$context : $total-columns,
$from : $from-direction
) {
+ $from : unquote($from);
$to : opposite-position($from);
margin-#{$to}: space($columns,$context);
}
// Apply 'columns' before and/or after an element to contain it on a grid.
@@ -68,9 +72,10 @@
$pre : false,
$post : false,
$context : $total-columns,
$from : $from-direction
) {
+ $from : unquote($from);
@if $pre {
@include pre($pre,$context,$from)
}
@if $post {
@include post($post,$context,$from)