Skip to content

Instantly share code, notes, and snippets.

@hatefulcrawdad
Created November 28, 2012 23:16
Show Gist options
  • Save hatefulcrawdad/4165463 to your computer and use it in GitHub Desktop.
Save hatefulcrawdad/4165463 to your computer and use it in GitHub Desktop.
Jackie
.row { width: $rowWidth; max-width: 100%; min-width: $screenSmall; margin: 0 auto;
.row { width: auto; max-width: none; min-width: 0; margin: 0 (-($columnGutter/2)); }
&.collapse {
.column, .columns { padding: 0; }
}
.row { width: auto; max-width: none; min-width: 0; margin: 0 (-($columnGutter/2));
&.collapse { margin: 0; }
}
}
.column, .columns { float: $defaultFloat; min-height: 1px; padding: 0 ($columnGutter/2); position: relative;
&.centered { float: none; margin: 0 auto; }
}
[class*="column"] + [class*="column"]:last-child { float: $defaultOpposite; }
[class*="column"] + [class*="column"].end { float: $defaultFloat; }
// Creating column classes
@for $i from 1 through $totalColumns {
.#{convert-number-to-word($i)} { width: gridCalc($i, $totalColumns); }
}
// Creating .row-# classes
@for $i from 1 through $totalColumns {
.row {
.#{convert-number-to-word($i)} { @extend .#{convert-number-to-word($i)}; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment