Created
February 13, 2012 22:59
-
-
Save jescalan/1821285 to your computer and use it in GitHub Desktop.
split 2
This file contains hidden or 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
| // Create a fluid content area. This should be used rather than floating and setting widths | |
| // for increased flex. They can be rearranged with responsive queries later | |
| =split($params) | |
| @for $i from 1 to length($params) + 1 | |
| & > *:nth-child(#{$i}) | |
| float: left | |
| width: nth($params, $i) | |
| // Usage | |
| .main | |
| +split(25% 75%) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment