Gulp-sass is crashing because of an error - because it was crashing at first I didn't even get an error, then I ran the sass through the ruby compiler instead I got the following.
error neat/grid/_media.scss (Line 34: Illegal nesting: Only properties maybe nested beneath properties)
I can't see anything wrong with _media.scss therefore I don't know what the error message is referring to.
I have seen answers on Stackoverflow for the meaning of this error message from Sass code but I cannot see how this message could apply to Scss code because indentation is not an issue in Scss.
Here's a link to the neat/grid/_media.scss which is mentioned in the error message.
https://github.com/thoughtbot/neat/blob/master/app/assets/stylesheets/grid/_media.scss
Heres the docs for the mixin. http://thoughtbot.github.io/neat-docs/latest/#media
Heres the actual code in the file that is mentioned in the error message:
@mixin media($query: $feature $value $columns, $total-columns: $grid- columns) {
@if length($query) == 1 {
@media screen and ($default-feature: nth($query, 1)) {
$default-grid-columns: $grid-columns;
$grid-columns: $total-columns !global;
@content;
$grid-columns: $default-grid-columns !global;
}
} @else {
$loop-to: length($query);
$media-query: "screen and ";
$default-grid-columns: $grid-columns;
$grid-columns: $total-columns !global;
@if is-not(is-even(length($query))) {
$grid-columns: nth($query, $loop-to) !global;
$loop-to: $loop-to - 1;
}
$i: 1;
@while $i <= $loop-to {
$media-query: $media-query + "(" + nth($query, $i) + ": " + nth($query, $i + 1) + ") ";
@if ($i + 1) != $loop-to {
$media-query: $media-query + "and ";
}
$i: $i + 2;
}
@media #{$media-query} {
@content;
$grid-columns: $default-grid-columns !global;
}
}
}
Does anyone know what the error message means for SCSS (not Sass) ? It says there is an nesting (indentation) error in _media.scss but SCSS doesn't care about indentation!