I'm using sass imports to handle most of my styles for our rails 3.2 app. My application.css.scss file looks like this:
application.css
/*
*= require_self
*= require_tree ./vendor
*= require admin
*/
admin.css.scss
// Reset
@import "global/reset";
// General Variables
@import "admin/general/_variables";
// Main Elements
@import "admin/general/_typography";
// Layout
@import "global/_layout";
@import "admin/general/_gridset";
// Modules
@import "admin/modules/_table";
@import "admin/modules/_forms";
@import "admin/modules/_buttons";
// Styles
@import "admin/_style-clean";
@import "admin/_style-images";
// Features
@import "admin/features/features";
Error message: Sass::SyntaxError - Undefined variable: "$body-bg". (in /var/www/apps/dev_wbs/releases/20130624191222/app/assets/stylesheets/admin/_style-clean.css.scss)
_variables.css.scss (imported) contains $body-bg, and it is referenced in _style-clean.css.scss
I originally had this in the sass syntax, but every time we push to the dev server, we get an error of Sass::SyntaxError - Undefined variable: "$body-bg". The variable is declared in the variables file, and the error comes from the _style-clean scss file. I've dropped this variable into the style-clean file, but then I get another variable error, but it refers to one in the typography file, which is above the style-clean, making me think somehow that the assets are being pre-compiled and then added.
I'd like to go back to using sass syntax, but both scss and sass throw variable errors.
All individual files are currently in the format of: _variables.css.scss.
Any help would be appreciated!