Page 1 of 1

External CSS being applied to all programs

Posted: Wed Feb 10, 2021 5:52 pm
by JayGoo83
I created a css file that was meant to be for 1 profound application file. I saved it in
profoundui_docs/userdata/custom/css/custom.css
In the visual designer i reference it. Works fine.
But it has come to my attention that the css rules are being picked up in other profound programs, regardless if the program is referencing it in the file. Am I setting this up wrong or something else?
If need more information please let me know what you need.

Re: External CSS being applied to all programs

Posted: Thu Feb 11, 2021 2:01 am
by Scott Klement
I'm not sure what "profoundui_docs" is... but, assuming it is the IFS directory of a profoundui instance, then anything beneath 'userdata/custom' will be picked up automatically by
  • The Visual Designer
  • Programs run via the /profoundui/start or /profoundui/auth/start URL
  • Programs run via Atrium's Rich Display launcher.
It will not be picked up by Genie automatically, to use these in Genie, you have to add a <link> tag to your Genie skin's start.html file.

Does this answer your question?

Assuming you want this to show both when the application is running and when in the Visual Designer, I would suggest you do indeed want it loaded in all of the above scenarios (and in Genie, too!). If it is conflicting with other things, then I would recommend creating a more specific CSS selector so that it doesn't affect anything but the desired screen.