Is it feasible to modify Less documents using JavaScript? I am attempting to adjust a property of a Less file with JavaScript. Here is my code:
document.getElementsByClassName('content-main--inner').style.border = '1px solid yellow!important';
I have experimented with both including and excluding !important
, but the alteration does not take effect. It seems like the issue may lie here:
('content-main--inner')
Can you provide guidance on manipulating Less files through JavaScript?