Last active
August 29, 2015 14:05
-
-
Save lisasy/c1c9d2f76c5c65c5d690 to your computer and use it in GitHub Desktop.
Multiple Columns with Neat
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
$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