custom.css not being read?
Posted: Saturday 03 September 2022 19:48
Hi All,
I've been trying - without success - to make some changes to my dashboard via custom.css, but all the evidence suggests that the custom.css file isn't being parsed at all. This is really frustrating me now!
I put some complete garbage in the file to make sure it would throw up an error, and no error appeared in the browser console.
The file permissions are 644 domoticz.domoticz and the folders down to it are 755 domoticz.domoticz; dashticz runs in docker but I've no idea which host system user it's mapping to, but it clearly is able to read other dashticz files that have the same permissions. The only other thing I've noticed that might be related, is that if I change a setting from the dashticz UI, it doesn't stick - CONFIG.js is not altered.
Is dashticz perhaps trying to open the files for write rather than read access (makes sense for CONFIG.js but shouldn't be the case for custom.css), and running as anonymous or some other user? [Edit: even changing the files to 666 permissions doesn't eliminate the css or UI config problem, so it's not that simple!]
Is there anything else could mean that custom.css isn't parsed or is ignored?
I've been trying - without success - to make some changes to my dashboard via custom.css, but all the evidence suggests that the custom.css file isn't being parsed at all. This is really frustrating me now!
I put some complete garbage in the file to make sure it would throw up an error, and no error appeared in the browser console.
Code: Select all
/* custom.css */
// check that it's really reading the file...
body {
background-color: pink !important;
}
!loadofnonsense ! ! #
// these don't work either
.block_VentSys .off {
color: red !important;
}
.block_VentSys .on {
color:#00ff00 !important;
}
Is dashticz perhaps trying to open the files for write rather than read access (makes sense for CONFIG.js but shouldn't be the case for custom.css), and running as anonymous or some other user? [Edit: even changing the files to 666 permissions doesn't eliminate the css or UI config problem, so it's not that simple!]
Is there anything else could mean that custom.css isn't parsed or is ignored?