Jul 17, 2020 10:20 AM - edited Jul 17, 2020 10:22 AM
Is there any reason why the below wouldn't work? Is this even possible?
module.css
footer{ background-color: {{ module.background_color.color }}; }
fields.json
{ "label" : "Background", "locked" : false, "name" : "background_color", "required" : false, "type" : "color", "default" : {"color" : "#F8F8F8"}, "visibility" : { "hidden_subfields" : { "opacity" : true } } },
Solved! Go to Solution.
Jul 17, 2020 10:36 AM
Answer:
Module CSS can not contain variables. If the module is used once and is global, then maybe try putting it in the theme fields.json and get it at a global level
Jul 17, 2020 10:36 AM
Answer:
Module CSS can not contain variables. If the module is used once and is global, then maybe try putting it in the theme fields.json and get it at a global level