Skip to content

Instantly share code, notes, and snippets.

@Cezarion
Created February 5, 2013 20:01
Show Gist options
  • Save Cezarion/4717166 to your computer and use it in GitHub Desktop.
Save Cezarion/4717166 to your computer and use it in GitHub Desktop.
Mixin column
@mixin makeColumn($columns: 1, $offset: 0, $makeColumnWidth: $gridColumnWidth) {
float: left;
margin-left: ($makeColumnWidth * $offset) + ($gridGutterWidth * ($offset - 1)) + ($gridGutterWidth * 2);
width: ($makeColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment