Why do I get “Undefined mixin 'border-radius'” in Compass?

社会主义新天地 提交于 2019-11-30 01:34:22

问题


In my Compass the top file has lines which include necessary plugins:

@import "compass";
@import "rgbapng";
@import "compass/css3";
@import "config";    // file that has my variables

But during compilation of a file that has @include border-radius($box-radius-small); errors out saying Undefined mixin 'border-radius' and Undefined variable: "$box-radius-small". - both of which should be included already!

Can anyone please help with this issue?

PS my packages are:

Compass 0.12.2 (Alnilam) Sass 3.2.7 (Media Mark)


回答1:


Just place the following import at the top of your scss file

@import "compass/css3";

Features of css3 :: http://compass-style.org/examples/compass/css3/

There are many other imports available out there...and you can create your own if you find yourself re-using blocks of css often enough to warrant the extra effort.




回答2:


Try to @import "compass" and your "config" variable sheet in every stylesheet that uses the mixins or variables.



来源:https://stackoverflow.com/questions/15422098/why-do-i-get-undefined-mixin-border-radius-in-compass

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!