Created
April 10, 2014 20:34
-
-
Save trub/10420545 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
// ---- | |
// 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; | |
} |
This file contains 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
.block { | |
width: min-width 1024px 8; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment