nex3/sass — Issue #225: issue with @import and nested rules together
Author: b3rimbau
Created: 2011-12-13 17:07:44+00:00
State: open

>sass --ver
Sass 3.1.11 (Brainy Betty)

Here's my test case:

My variable is imported from test-import.scss, whose only contents is:

$column-spacing: 12px;

My SASS file is test.scss, whose contents are:

@import "test-import.scss";

.outer {
margin-left: $column-spacing;

.inner {
color: red;
}
}

This compiles ot test.css, whose contents are:

.outer {
margin-left: 12px; }

If I change test.scss by changing margin-left to margin, then I get the expected result:

.outer {
margin: 12px; }
.outer .inner {
color: red; }

If I've made a stupid mistake, sorry.