Sorry folks, I was given this a long time ago to address a question I had and now I am trying to apply it, it isn't working.
Not blaming the person who gave it to me. It is probably something on my machine.
(But before we go there - a question which this has kind of raised)
There are 3 levels of CSS.... and typically now I am trying to find my notes: I can't.
But basically as I remember it there are: inline - applies to code in that line. page which applies to that page (tab?) and lastly global which is.... global.
And the priority is reversed in application as in global is applied to all.
But then is there is something for that page it overwrites the global settings and lastly if there is something inline it overwrites the other two.
If I am wrong, then that's why it isn't working.
So the code:
[{"id":"d9c05df8e5f12ca0","type":"ui_text","z":"0918ee609bf69fc7","group":"924a2dc07ecdd1a4","order":0,"width":0,"height":0,"name":"group1","label":"Some widgets here","format":"Some widgets here","layout":"col-center","x":980,"y":140,"wires":[]},{"id":"8e80beb59e380f96","type":"ui_text","z":"0918ee609bf69fc7","group":"924a2dc07ecdd1a4","order":0,"width":0,"height":0,"name":"group1","label":"Some widgets here","format":"Some widgets here","layout":"col-center","x":980,"y":100,"wires":[]},{"id":"bf67ca0eb24dac61","type":"ui_template","z":"0918ee609bf69fc7","group":"924a2dc07ecdd1a4","name":"group1","order":7,"width":0,"height":0,"format":"<style>\n .group1 p.nr-dashboard-cardtitle {\n color: {{msg.payload}} !important ;\n }\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":800,"y":120,"wires":[[]],"info":"<style>\r\n.mplug17 p.nr-dashboard-cardtitle {\r\n color: green !important;\r\n }\r\n</style>"},{"id":"58d9e91c3691c384","type":"inject","z":"0918ee609bf69fc7","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"red","payloadType":"str","x":610,"y":100,"wires":[["bf67ca0eb24dac61"]]},{"id":"43040dbea39ee0d9","type":"inject","z":"0918ee609bf69fc7","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"lime","payloadType":"str","x":610,"y":140,"wires":[["bf67ca0eb24dac61"]]},{"id":"924a2dc07ecdd1a4","type":"ui_group","name":"group1","tab":"9e1ed5e519ff655f","order":1,"disp":true,"width":"6","collapse":true},{"id":"9e1ed5e519ff655f","type":"ui_tab","name":"TEST","icon":"dashboard","order":39,"disabled":false,"hidden":false}]
machine details:
NR 2.1.4
Dashboard 2.28.1
Ubuntu 21.04
Firefox
Dashboard settings:
Use angular theme in ui_template
The screen font is the default bluish colour.
Pressing either of the inject
nodes, no change visible.
Sorry for leaving it this long to respond, but other things have been happening.
Thanks in advance.