为什么我得到“未定义的混合'边界半径'”?在指南针? [英] Why do I get "Undefined mixin 'border-radius'" in Compass?

查看:55
本文介绍了为什么我得到“未定义的混合'边界半径'”?在指南针?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的指南针中,最上面的文件包含以下行,其中包括必要的插件:

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

的文件

但是在编译具有的文件时@include border-radius($ box-radius-small); 错误指出未定义的mixin'边界半径'未定义的变量: $ box-radius-small。-这两个都应该已经包括在内!

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!

有人可以帮忙吗?

PS我的包裹是:

指南针0.12.2(Alnilam )
Sass 3.2.7(媒体标记)

Compass 0.12.2 (Alnilam) Sass 3.2.7 (Media Mark)

推荐答案

只需将以下导入内容放在scss文件顶部

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

@import "compass/css3";

css3的功能:: http://compass-style.org/examples/compass/css3/

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

还有很多其他进口商品...如果您发现自己经常重复使用css块以保证额外的工作,则可以创建自己的代码。

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.

这篇关于为什么我得到“未定义的混合'边界半径'”?在指南针?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆