Hello all,
A couple of related UT/CSS questions here please...
a) I've got a scenario where I need to distinguish between production/non-production environments and a nice way to do this would be to adjust the universal theme conditionally based upon the DB NAME (or similar). As I am using APEX 5 I think I'll proceed to use the APEX_UTIL.SET_CURRENT_THEME_STYLE procedure to achieve this - there are a few examples I can follow on this and I'm reasonably comfortable with this approach.
However, one thing I'm not sure of is at which point should I execute the PL/SQL with the call to APEX_UTIL.SET_CURRENT_THEME_STYLE ? Should this be done within the application, or is it OK to make this a post deployment manual task i.e. once the application is installed and/or after the DB is refreshed? Is there a preferred way?
b) related to the above the application in question also includes some custom CSS which applies styling for row selection in interactive reports regions, some custom active tab colouring/borders. These colours are defined within a Global Page (Page 0) directly within the CSS region. As expected using the theme roller doesn't affect this styling so selected row colour stay the same regardless of theme.
Is there any way to reference the theme palette from within custom CSS and/or javascript so that if I use the the theme roller to set colours, my custom CSS can also be affected to correspond to the active theme colours e.g a red theme = red row selection, a blue theme = blue row selection, a green theme = green row selection etc.. Or is there some other way I can dynamically do this without having to manually adjusting the CSS depending upon the environment?
Thanks,
Daljit
My environment details:
- APEX 5.0.4.00.12
- Oracle 11g (11.2.0.1), CentOS 5
- ORDS 3 - Tomcat 7
- Internet Explorer 11 (Windows 7)
- Universal Theme