Created
November 23, 2015 19:40
-
-
Save ryanve/d964efeeacbef0d5f9c3 to your computer and use it in GitHub Desktop.
css layout utility for multicolumn lists
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
| [class*="is-grid-x"] { | |
| @include clearfix; | |
| margin-left: auto; | |
| margin-right: auto; | |
| padding-left: 0; | |
| padding-right: 0; | |
| } | |
| [class*="is-grid-x"] > * { | |
| @include px-rem(margin-bottom, $base-spacing-unit); | |
| } | |
| @each $n in (2, 3, 4) { | |
| .is-grid-x#{$n} > * { | |
| @include span-columns($grid-columns/$n); | |
| } | |
| .is-grid-x#{$n} > :nth-child(#{$n}n) { | |
| @include omega; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
more: https://gist.github.com/ryanve/973ee01374c0a14ac518