Loading print.css in Rails 3.1 [closed]
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.
精彩评论