I'm trying to understand how to attach a custom css style to a dashboard element. I can't seem to find the exact question & answer, so here goes...
In my NR settings file, I have added the css tag
editorTheme: {
/** The following property can be used to set a custom theme for the editor.
* See https://github.com/node-red-contrib-themes/theme-collection for
* a collection of themes to chose from.
*/
//theme: "",
/** To disable the 'Welcome to Node-RED' tour that is displayed the first
* time you access the editor for each release of Node-RED, set this to false
*/
//tours: false,
page: {
css: "/home/pi/.node-red/customcss.css",
},
And my customcss.css file looks like this (it is in the specified folder)
.back-trans {
background-color: transparent;
}
.back-white {
background-color: #ffffff;
}
.back-red {
background-color: red;
}
It does not seem to be having any effect, so I must be doing something wrong. Assuming my code above is correct, what goes in the '</> Class' box on the node configuration dialog?
Thanks.
Don