External CSS being applied to all programs

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
JayGoo83
Profound User
Posts: 36
Joined: Fri Jul 17, 2020 12:52 pm
First Name: Jason
Last Name: Guzik
Company Name: 3Linc
Contact:

External CSS being applied to all programs

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: External CSS being applied to all programs

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests