Skip to content

Instantly share code, notes, and snippets.

@trub
Created April 10, 2014 20:34
Show Gist options
  • Save trub/10420545 to your computer and use it in GitHub Desktop.
Save trub/10420545 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
$grid-columns: 12;
$visual-grid-breakpoints: null;
$default-feature: min-width;
@function new-breakpoint($query:$feature $value $columns, $total-columns: $grid-columns) {
@if length($query) == 1 {
$query: $default-feature nth($query, 1) $total-columns;
}
@else if length($query) % 2 == 0 {
$query: append($query, $total-columns);
}
// @if not belongs-to($query, $visual-grid-breakpoints) {
// $visual-grid-breakpoints: append($visual-grid-breakpoints, $query, comma) !global;
// }
@return $query;
}
$tablet: new-breakpoint(min-width 1024px 8);
.block {
width: $tablet;
}
.block {
width: min-width 1024px 8;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment