Beautiful Css is a gem to help clean up your css. It reorders your style to remove duplication.
Add this line to your application's Gemfile:
gem 'beautiful-css'
And then execute:
$ bundle
Or install it yourself as:
$ gem install beautiful-css
Beautiful Css can be used from the command line:
beautifulcss style.css
Or directly from code:
styles = 'a {color:red}'
BeautifulCss::Engine.new(styles).render
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request