Created
December 14, 2011 20:42
-
-
Save mirisuzanne/1478413 to your computer and use it in GitHub Desktop.
push and pull for susy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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