[英]File to import not found or unreadable: compass/css3/animation
I need to use animation wih compass, so I try to use like said in doc: http://compass-style.org/reference/compass/css3/animation/ 我需要使用带指南针的动画,所以我尝试使用如doc中所述: http : //compass-style.org/reference/compass/css3/animation/
I put at top of my file: 我把文件放在顶部:
@import "compass/css3/animation";
but I have error: 但我有错误:
File to import not found or unreadable: compass/css3/animation.
I have the latest version of compass and rails-compass gem, so I don't know where is my mistake? 我有最新版本的指南针和rails-compass宝石,所以我不知道我的错误在哪里?
thx. 谢谢。
Not sure if you have tried this already but hopefully this helps - In the README it says that you should import compass like so: 不确定你是否已经尝试过这个但希望这有帮助 - 在自述文件中它说你应该像这样导入指南针:
@import "compass";
@import "your_project/mixins";
@import "your_project/base";
Or, you should use the application.css: 或者,您应该使用application.css:
/*
*= require styleguide_full_of_compass_stuff
*/
Finally the README also advises not to include compass in individual files. 最后,README还建议不要在单个文件中包含指南针。
I'm waiting the good solution, but pending, I use this fix: http://joshbroton.com/quick-fix-sass-mixins-for-css-keyframe-animations/ 我正在等待好的解决方案,但待定,我使用此修复程序: http : //joshbroton.com/quick-fix-sass-mixins-for-css-keyframe-animations/
hope helpful others. 希望对别人有用。
Try do this 试试这个
sudo gem install compass
If it not help try to use this compass plugin: https://github.com/ericam/compass-animation 如果没有帮助尝试使用这个指南针插件: https : //github.com/ericam/compass-animation
to add it you should to do next steps: 要添加它,您应该执行下一步:
1) run in console 1)在控制台中运行
gem install animation --pre
2) add 2)添加
require 'animation'
in your config.rb 在你的config.rb中
3) add 3)添加
@import "animation";
in you .scss/.sass file. 在.scss / .sass文件中。
-- -
Hope it's help you! 希望它对你有所帮助!
Cheers 干杯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.