Custom CSS for plugin on ACP.
-
On v1.0.3? It used to read the css and less from the plugin.json, but it was removed. I made an issue about it, but the fix didn't make it into 1.0.3. imo, it should have been back-ported.
Plugin added ACP LESS 路 Issue #4523 路 NodeBB/NodeBB
Client styles were removed from the acp here: e134689 but there doesn't appear to be any other way for plugins to add minified less to the ACP? I realize it was a bug. I would like an acpLess in plugin.json, or at the very least just add...
GitHub (github.com)
-
You could also use a link tag, linking to a css file in one of the
staticDirs
in your plugin.json, for instance, if your plugin has a file at/public/css/style.css
and the plugin.json with"staticDirs": { "public": "public" },
then in your template you could do
<link rel="stylesheet" type="text/css" href="/plugins/nodebb-plugin-yourplugin/public/css/style.css">