Skip to content

Instantly share code, notes, and snippets.

@lisasy
Last active August 29, 2015 14:05
Show Gist options
  • Save lisasy/c1c9d2f76c5c65c5d690 to your computer and use it in GitHub Desktop.
Save lisasy/c1c9d2f76c5c65c5d690 to your computer and use it in GitHub Desktop.
Multiple Columns with Neat
$column-num: col !default;
@for $i from 2 through 4 {
.#{$column-num}-#{$i} {
overflow: hidden;
.column {
@include fill-parent();
@include media($medium-screen) {
@include span-columns( (12/$i) of 12);
@include omega(#{$i}n);
}
}
}
}
/*** Output ***
.col-2 {
oveflow: hidden;
.column {
@include fill-parent();
@include media($medium-screen) {
@include span-columns(6 of 12);
@include omega(2n);
}
}
}
.col-3 {
oveflow: hidden;
.column {
@include fill-parent();
@include media($medium-screen) {
@include span-columns(4 of 12);
@include omega(3n);
}
}
}
.col-4 {
oveflow: hidden;
.column {
@include fill-parent();
@include media($medium-screen) {
@include span-columns(3 of 12);
@include omega(4n);
}
}
}
*************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment