简体   繁体   English

Sencha Touch-罗盘编译时未定义的mixin“实验性”

[英]Sencha Touch - Undefined mixin 'experimental' on compass compile

When I try to compile my sass code with compass compile I get the following error : 当我尝试使用compass compile来编译我的sass代码时,出现以下错误:

error app.scss (Line 42 of /MyProject/touch/resources/themes/stylesheets/sencha-touch/base/src/_ProgressIndicator.scss: Undefined mixin 'experimental'.)

My sass code is pretty normal, I have : 我的SASS代码很正常,我有:

@import 'sencha-touch/default';
@import 'sencha-touch/default/all';

/* Rest of my css below */

I'm using : 我正在使用 :
Sencha Touch 2.4 Compass 1.0.1 (Polaris) ruby 2.2.0dev Mac OSX Yosemite Sencha Touch 2.4 Compass 1.0.1 (Polaris) ruby 2.2.0dev Mac OSX Yosemite

Adding @import "compass/css3/shared"; 添加@import "compass/css3/shared"; to the project's app.scss resolves the error. 到项目的app.scss解决该错误。 This import needs to be added before the sencha imports. 该导入需要在sencha导入之前添加。

For subsequent errors I also had to add: 对于后续错误,我还必须添加:

@import "compass/css3/box";
$experimental-support-for-pie:false;

Versions: Sencha Touch: 2.4.1, Compass 1.0.1, Sass 3.4.9, Ruby 1.9.3 版本:Sencha Touch:2.4.1,Compass 1.0.1,Sass 3.4.9,Ruby 1.9.3

References: http://hugogiraudel.com/2013/03/25/compass-extensions/ , http://compass-style.org/reference/compass/css3/box/ , 参考文献: http://hugogiraudel.com/2013/03/25/compass-extensions/http://compass-style.org/reference/compass/css3/box/

Complete import to resolve the error: 完成导入以解决错误:

@import "compass/css3/shared";
@import "compass/css3/box";
$experimental-support-for-pie: false;
@import 'sencha-touch/default';
@import 'sencha-touch/default/all';

<-- The rest of your sass -->

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM