jakesgordon / sprite-factory

Automatic CSS Sprite Generator
http://codeincomplete.com/posts/2011/4/29/sprite_factory/
MIT License
621 stars 76 forks source link

Added !important #27

Closed valk closed 10 years ago

valk commented 11 years ago

In my rake file I'm using SpriteFactory.run!(... :selector => '.' ...) which produces just classes that I can use on any element.

This change will ensure - where there's more CSS specificity - that nothing else will override the background.

jakesgordon commented 10 years ago

Sorry, I'm not going to hard code !important in the generated css. It's generally bad practice.

If you want to implement an option to enable it on demand, that might work ?