Skip to content

Commit

Permalink
Merge pull request #3 from jvah/master
Browse files Browse the repository at this point in the history
Make change in pull request #2 to also work on libsass.
  • Loading branch information
jareware committed Oct 7, 2014
2 parents ff172d6 + 663fe44 commit a87ec6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _viewports.scss
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ $VIEWPORTS_DEFAULT_QUERY: 'among';

$return: ();
@each $rangeName in range-names() {
@if not index($namedRanges, $rangeName) { // this is NOT one of the named ranges -> include it
@if not(index($namedRanges, $rangeName)) { // this is NOT one of the named ranges -> include it
$return: append($return, bounds-for-range($rangeName));
}
}
Expand Down Expand Up @@ -235,7 +235,7 @@ $VIEWPORTS_DEFAULT_QUERY: 'among';
@if validate-config() {

$resolved: null;
@if not index($VIEWPORTS_QUERY_TYPES, nth($queryConfig, 1)) { // if first arg isn't a query type...
@if not(index($VIEWPORTS_QUERY_TYPES, nth($queryConfig, 1))) { // if first arg isn't a query type...
$resolved: resolve-query($VIEWPORTS_DEFAULT_QUERY, $queryConfig); // ...use the default type, and treat all args as range names
} @else { // ...otherwise first arg is the type, and rest should be treated as range names
$resolved: resolve-query(nth($queryConfig, 1), rest-in-list($queryConfig));
Expand Down

0 comments on commit a87ec6a

Please sign in to comment.