Make things easier to read and express in CSS.
A JavaScript CSS applicator designed to work with a JavaScript selector engine of choice following CSS JSON notation.
CSSugar(
{
//match every even tr element
"tr:even" : {
"background": "pink"
},
//match every input element of type text
":text" : {
"fontFamily": "Verdana",
"fontSize": "11px",
"color": "green"
},
//match the second div in the body
"body div:gt(1)" : {
"background": "orange"
}
},
//lets use the jQuery selector engine
$
);
//now feel the power, even in IE6!
Anyone can view or clone the source code repository at github.
http://groups.google.com/group/cssugar