Cómo se carga un marco CSS en Rails 3.1?
stoy tratando de cargar un marco CSS, Blueprint, en mi aplicación Rails 3.1.
In Rails 3.0+, tendría algo como esto en mis vistas / diseños / application.html.erb:
<%= stylesheet_link_tag 'blueprint/screen', 'application' %>
<%= stylesheet_link_tag 'blueprint/print', 'media' => 'print' %>
<!--[if lt IE 8]>
<%= stylesheet_link_tag 'blueprint/ie' %>
<![endif]-->
Sin embargo, Rails 3.1 ahora usa SASS. ¿Cuál sería la forma correcta de cargar estos archivos Blueprint CSS?
Actualmente, tengo el blueprint dir en app / assets / stylesheets /
Mi aplicación / assets / stylesheets / application.css se ve así:
/*
* 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 .
*/
¿Debo hacer algo con application.css para que cargue los archivos Blueprint necesarios? ¿Si es así, cómo
n segundo lugar, ¿cómo proporcionaría algún tipo de condición para verificar IE8, para cargar blueprint / ie.css?
EDITAR
Hmmm, volviendo a cargar la página web de la aplicación. Rails 3.1 incluye los archivos Blueprint. Incluso si los archivos css están en una carpeta (en este caso: app / assets / stylesheets / blueprint).
Lo que me deja con dos preguntas
¿Cómo se debe aplicar la si lt IE 8 condición usando SASS? ¿Cómo se carga un archivo CSS para el formato de impresión (es decir, <% = stylesheet_link_tag 'blueprint / print', 'media' => 'print'%>) usando SASS?