Skip to content

Instantly share code, notes, and snippets.

@briangonzalez
Created May 12, 2014 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briangonzalez/f44e8edf8172a67a7208 to your computer and use it in GitHub Desktop.
Save briangonzalez/f44e8edf8172a67a7208 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// SassyLists (v)
// ----
@import "SassyLists";
@mixin slice($slices...) {
@if ( last($slices) == true ) {
-bps-slices: remove( $slices, true);
-bps-height-based: true;
} @else {
-bps-slices: $slices;
-bps-height-based: nth($slices, length($slices)) == true;
}
}
.test-width-based {
@include slice( 1, 3, 6 )
}
.test-height-based {
@include slice( 1, 3, 6, true )
}
.test-width-based {
-bps-slices: 1, 3, 6;
-bps-height-based: false;
}
.test-height-based {
-bps-slices: 1, 3, 6;
-bps-height-based: true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment