Skip to content

Instantly share code, notes, and snippets.

@mirisuzanne
Created December 14, 2011 20:42
Show Gist options
  • Save mirisuzanne/1478413 to your computer and use it in GitHub Desktop.
Save mirisuzanne/1478413 to your computer and use it in GitHub Desktop.
push and pull for susy
@function move($n,$context:false)
$move: columns($n,$context) + gutter($context)
@return $move
=push($n,$c:false)
$sg: side-gutter()
@if $c
$sg: 0
margin-left: $sg + move($n,$c)
=pull($n,$c:false)
margin-left: 0 - move($n,$c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment