fairmondo/fairmondo

View on GitHub
app/assets/stylesheets/mixins/_grid.scss

Summary

Maintainability
Test Coverage
// will make the element grid-like with the specified number of columns
//
// $number - bumber of columns
@mixin grid-with-columns($number) {
  @include span(1 of $number 0.05);
  &:nth-child(#{$number}n) {
    @include omega;
  }
  &:nth-child(#{$number}n+1) {
    clear:both;
  }
}