I'm currently adding a class to a DIV in javascript using the following code
if(note !== 0) $el.addClass('seq-note');
and here is the css
.seq-ui .seq-row span.seq-note {
background: #444 -webkit-linear-gradient(#7c8, transparent);
background: #444 linear-gradient(#7c8, transparent);
border-color: #565;
}
note is actually a hex value, so I want to change the gradient to that hax color. How would I re-factor this code so that the color is dynamic