Went though SASS/LESS documentation, but could not find anything that I am looking for. I am working on an AngularJS app, which has loads of dynamic, predefined styling (think CMS).
Is it possible with CSS3/LESS/SASS/Anything to create CSS rules dynamically from a element attribute - in the browser?
I know I could do in-line styling, but I am not really comfortable with it - there must be a better way!
From the following HTML
<div id="el" animation-time="3"></div>
Create following css:
#el { transition: 3s linear all; }
I have seen some examples on-line of the following usage, so my hopes are high:
#container {
min-width: 600px;
width:expression(document.body.clientWidth < 600? "600px": "auto" );
}