I'm writing an add-on and am using settings in an admin option to set a couple of style variables. I want to use those in a .less template.
Is it possible to do something like this?
The only problem I see is that in templates, the { } brackets in CSS/LESS would probably conflict with trying to insert a variable in a template which also uses brackets (like
Or do I need to add something in Style Properties instead, and then try to work those into my template mods instead?
Is it possible to do something like this?
CSS:
.my-style {
width: // my option from admin here //;
}
The only problem I see is that in templates, the { } brackets in CSS/LESS would probably conflict with trying to insert a variable in a template which also uses brackets (like
{$xf.options.myOptionHere} which is what I would do in a regular template).Or do I need to add something in Style Properties instead, and then try to work those into my template mods instead?
