Skip to content

Instantly share code, notes, and snippets.

@ryanve
Created November 23, 2015 19:40
Show Gist options
  • Select an option

  • Save ryanve/d964efeeacbef0d5f9c3 to your computer and use it in GitHub Desktop.

Select an option

Save ryanve/d964efeeacbef0d5f9c3 to your computer and use it in GitHub Desktop.
css layout utility for multicolumn lists
[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;
}
}
@ryanve
Copy link
Copy Markdown
Author

ryanve commented Mar 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment