Created
August 2, 2012 08:43
-
-
Save afknapping/3235507 to your computer and use it in GitHub Desktop.
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
@mixin columns($n) | |
width: ( $fallback-unit * $n * 4 ) + ( $fallback-unit * ( ($n - 1)*4 )) | |
width: ( $unit * $n * 4 ) + ( $unit * (( $n - 1 )*4 )) | |
@if $n == 12 | |
margin: auto | |
clear: both | |
overflow: auto | |
@if $n < 12 | |
margin-left: $fallback-unit | |
margin-left: $unit | |
margin-right: 0 | |
float: left |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment