wingrunr21 / flat-ui-sass

Designmodo's Flat-UI ported to SASS with support for Flat-UI Pro
MIT License
156 stars 44 forks source link

Use proper @import rules. #11

Closed metaskills closed 10 years ago

metaskills commented 10 years ago

Fixes: Sass::SyntaxError: File to import not found or unreadable: icon-font.

I implemented a replace_file_imports similiar to bootstrap-sass's. These imports are now fully compliant with the proper path/namespace to use. In my example this fixes all imports like this.

@import "icon-font";

To this:

@import "flat-ui-pro/icon-font";

This follows the convention of an asset gem using the directory for the namespace and is exactly what bootstrap-sass does too.

metaskills commented 10 years ago

Also, I apologize for the whitespace noise. Someone said this setting was a good idea.

metaskills commented 10 years ago

screen shot 2014-01-28 at 2 24 01 pm