Skip to content

andrewtimberlake/css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Parse, create and work with CSS files in ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages