You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code would need altering to suit as I haven't found how your variables/constraints are managed but if you were to set a variable like you would in Sass then have it placed in the CSS dump it would negate the need for any other CSS and only need GSS.
Javascript pulled from gss.js and edited
StyleSheet.prototype.dumpCSS=function(){varcss,rule,ruleCSS,_i,_len,_ref;css="";_ref=this.rules;for(_i=0,_len=_ref.length;_i<_len;_i++){rule=_ref[_i];ruleCSS=rule.dumpCSS();if(ruleCSS){css+=ruleCSS;}}// for (constraint in constraints) { //loops through the constraints or variables_key='primary-color';//constraint.key_replace=newRegExp(/\[/.source+_key+/\]/.source,"g");_value='#f0f';//constraint.valuecss=css.replace(_replace,_value);// }returncss;};
The following code would need altering to suit as I haven't found how your variables/constraints are managed but if you were to set a variable like you would in Sass then have it placed in the CSS dump it would negate the need for any other CSS and only need GSS.
Javascript pulled from gss.js and edited
Example it would replace in its current state
The text was updated successfully, but these errors were encountered: