0
Answered

How to add css to plugin?

Max Sinelnikov 8 year бұрын updated by Eugene Pankov (Project coordinator) 8 year бұрын 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?

+1

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.