README.md in css_builder-0.1.2 vs README.md in css_builder-0.1.3

- old
+ new

@@ -1,11 +1,16 @@ -# css_builder +# Css Builder A ruby interface for creating CSS files; LESS and SASS planned; +## Installation + + gem install css_builder + ## Usage + require "css_builder" css = CssBuilder.new css.div(:id => "hello", :class => "world") { color "green" background_color "blue" @@ -14,11 +19,11 @@ css.table([], [:tag => "tr"], [:tag => "td", :nth_child => "odd"]) do border "1px #345 solid" background_color "#efefef" end - @css.comment! "This is a magical momment" + css.comment! "This is a magical momment" css.value! # outputs => div#hello.world { color : green; @@ -60,9 +65,23 @@ css.value! # outputs => #bears.grizzly .claws:hover() { background-color : red; font-family : Sharp; + } + + ### + + css = CssBuilder.new + + css.div([], [:selector => "~"], [:tag => "span"]) { + border "1px" + } + + css.value! # outputs => + + div ~ span { + border : 1px; } ## Contributing to css_builder * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.