I let you bother with the project directory. You must import it as is. Avoid importing project css files into another tree or into separate directories (this can lead to breaking relative paths).
The path to the Blueprint folder should look like app / assets / stylesheets / blueprint / , and you should import the styles styles before the styles of your application (so that you can override any indescribable style imported from the drawing).
The following solution is based on Matheus Moreira's answer and is related to these problems:
/* * application.css * General styles for the application *= require ./blueprint/screen *= require_self */ /* * application-print.css * Styles for print media *= require ./blueprint/print *= require_self */ /* * application-ie.css * Styles if lt IE 8 *= require ./blueprint/ie *= require_self */
The file tree should look like this:
app/assets/stylesheets/application.css app/assets/stylesheets/application-ie.css app/assets/stylesheets/application-print.css app/assets/stylesheets/blueprint/
Your application layout should import style sheets as:
<%= stylesheet_link_tag 'application', media: 'screen, projection' %> <%= stylesheet_link_tag 'application-print', media: 'print' %>
You should also check out these rails made by Ryan Bates about the Sass Fundamentals in Rails 3.1: http://railscasts.com/episodes/268-sass-basics
source share