Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Parse, create and work with CSS files in ruby
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
css.gemspec

README.rdoc

CSS

A Ruby gem that allows the parsing and creation of css files.

Quick Start

style = "body { background: #FFF url('image.png') no-repeat; }"
css = CSS::Parser.new.parse(style)
puts css['body'].background.color.to_s #=> #FFF
css['body'].background.position = 'top center'
puts css['body'].to_s #=> 'background: #FFF url('image.png') top center no-repeat'
Something went wrong with that request. Please try again.