簡體   English   中英

要導入的文件未找到或不可讀:指南針/ css3 /動畫

[英]File to import not found or unreadable: compass/css3/animation

我需要使用帶指南針的動畫,所以我嘗試使用如doc中所述: http//compass-style.org/reference/compass/css3/animation/

我把文件放在頂部:

@import "compass/css3/animation";

但我有錯誤:

 File to import not found or unreadable: compass/css3/animation.

我有最新版本的指南針和rails-compass寶石,所以我不知道我的錯誤在哪里?

謝謝。

不確定你是否已經嘗試過這個但希望這有幫助 - 在自述文件中它說你應該像這樣導入指南針:

@import "compass";

@import "your_project/mixins";
@import "your_project/base";

或者,您應該使用application.css:

/*
*= require styleguide_full_of_compass_stuff
*/

最后,README還建議不要在單個文件中包含指南針。

我正在等待好的解決方案,但待定,我使用此修復程序: http//joshbroton.com/quick-fix-sass-mixins-for-css-keyframe-animations/

希望對別人有用。

試試這個

sudo gem install compass

如果沒有幫助嘗試使用這個指南針插件: https//github.com/ericam/compass-animation

要添加它,您應該執行下一步:

1)在控制台中運行

gem install animation --pre

2)添加

require 'animation' 

在你的config.rb中

3)添加

@import "animation"; 

在.scss / .sass文件中。

-

希望它對你有所幫助!

干杯

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM