Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Parse, create and work with CSS files in ruby

tree: a8b00bd816

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.