How to add css to plugin?

Max Sinelnikov hace 8 años actualizado por Eugene Pankov (Project coordinator) hace 8 años 2

 Hi! I'm writing custom plugin which shows software raid state. I put arrays.less file to plugins/raid/files subdir but it's rules not applied to the rendered page. Do I  need to write some configuration about custom css/less files? How it works?


Please double-check that your CSS rules are not present in the page using Chrome inspector or Firebug. You don't need any extra work - just putting the file in should work. See how Terminal plugin does that: https://github.com/Eugeny/ajenti/blob/master/plugins/iptables/files/fw.less

 My fault. I made a typo in the element's class name. Fixed it and all things work fine. Thank you.