开发者

Loading print.css in Rails 3.1 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, v开发者_开发百科ague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago.

How do I load my print.css file in Rails 3.1?


Not sure if you want the print css which applies to print media

The following should serve the purpose - stylesheet_link_tag "print", :media => "print"


Actually, if you take a look in the application.css document you would see :

/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*= require_tree . 
*/

It means that application.css will be included (require_self) and also the others CSS in the stylesheets folder (require_tree .).

I'm a beginner in Rails so I cannot go further in the explanation! Search any informations about require_self, require_tree and SASS language.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜