0
我发现主题susy, media queries, and lt IE9它声明您可以将“fallback类”添加到变量中,以使其应用于所有指定的使用变量的断点。At-breakpoint回退导致错误
所以我改变了我的变量:
$desk: 58em 12;
到
$desk: 58em 12 lt-ie9;
但是,这会导致这样的错误:
Syntax error: Base-level rules cannot contain the parent-se1ector-referencing character ' & ' .
on line 91 of C: /Ruby200/lib/ruby/gems/2.0.0/gems/susy-1.0.9/sass/susy/_media.scss, in ‘ Gcontent '
from line 15 of C: /Ruby200/lib/ruby/gems/2.0.0/gems/susy-1.0.9/sass/susy/_media.scss, in ‘ layout '
from line 54 of C: /Ruby200/lib/ruby/gems/2.0.0/gems/susy-1.0.9/sass/susy/_media.scss, in ‘ at-breakpoint '
from line 87 of C: /localpath/sass/layouts/project/site.layout.scss
最后一行是第一个行,其中媒体第一次调用布局变量“$ desk”。
@include at-breakpoint($desk) {
.l-header,
.l-main,
.l-footer,
.l-region--navigation {
@include set-container-width; // Reset only the container width (elements have already been declared as containers).
}
我是否缺少一些明显的语法错误?
感谢您的回答埃里克,不会已经能够找到这对我自己。 – Trikkle