Skip to content

Instantly share code, notes, and snippets.

@davisml
Last active December 12, 2015 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davisml/4693293 to your computer and use it in GitHub Desktop.
Save davisml/4693293 to your computer and use it in GitHub Desktop.

Desired CSS Output

.gradientElement { background: #999; background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); background: -moz-linear-gradient(top, #ccc, #000); }

CSSJSON Input

{ children: { ".gradientElement": { attributes: { "background": [ "#999", "-webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000))", "-moz-linear-gradient(top, #ccc, #000)" ] } } } }

CSSJSON Output

.gradientElement { background: #999,-webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)),-moz-linear-gradient(top, #ccc, #000); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment