Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a8b00bd816
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (8 sloc) 0.371 kb

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'
Jump to Line
Something went wrong with that request. Please try again.