我正在尝试让 zinnia 中的 css 面向 future 。 -django 博客使用 compass , susy , 和 sass .我已通过运行 python manage.py collectstatic
成功地将我的 zinnia 模板复制到 /var/www/static/zinnia
中。然后我编辑一个 sass 文件,cd
到 /var/www/static/zinnia/
,然后运行 compass compile
。这会产生以下错误并导致我的博客不再使用 css 呈现!
error sass/screen.scss (Line 27 of sass/partials/_layouts.scss: Mixin container takes 0 arguments but 2 were passed.) #from running compass compile in shell
在我的博客网页顶部出现了以下在 firefox 中的内容:
Syntax error: Mixin container takes 0 arguments but 2 were passed.
on line 27 of /var/www/static/zinnia/sass/partials/_layouts.scss, in `container'
from line 27 of /var/www/static/zinnia/sass/partials/_layouts.scss
from line 20 of /var/www/static/zinnia/sass/screen.scss
Relevant zinnia code is visible on github.目前代码是github仓库的虚拟镜像。这是 line 27 ,这个错误似乎是从哪里产生的。
_layouts.scss 的第 27 行:
@include container($total-columns, $screen-layout);
作为线索,我能够学习 this .但是,我更愿意使用我可用的最新 gem 版本。我不知道这是否可以与旧的 gems 一起编译,但是这 block 拼图的答案有点切题(虽然有用)。因此,我需要一个可以正确编译的答案。
感谢您的帮助。
最佳答案
我遇到了同样的错误,即使是在 susy 之前导入 compass 的顺序。为我修复的是卸载 this no-longer-used gem: compass-susy-plugin .
关于html - Mixin容器接受0个参数但传递了2个,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16449160/