README.md in css_builder-0.1.1 vs README.md in css_builder-0.1.2
- old
+ new
@@ -9,15 +9,29 @@
css.div(:id => "hello", :class => "world") {
color "green"
background_color "blue"
}
+ 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.value! # outputs =>
div#hello.world {
color : green;
background-color : blue;
}
+
+ table tr td:nth-child(odd) {
+ border : 1px #345 solid;
+ background-color : #efefef;
+ }
+
+ /* This is a magical momment */
###
css = CssBuilder.new