Skip to content

Instantly share code, notes, and snippets.

@afknapping
Created August 2, 2012 08:43
Show Gist options
  • Save afknapping/3235507 to your computer and use it in GitHub Desktop.
Save afknapping/3235507 to your computer and use it in GitHub Desktop.
@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