Skip to content
/ css Public
forked from andrewtimberlake/css

Parse, create and work with CSS files in ruby

License

Notifications You must be signed in to change notification settings

raykov/css

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 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

  • Ruby 100.0%