Configuring Siebel Open UI > Customizing Styles, Applets, and Fields > Customizing Client Logo, Background, and Style >
Customizing the Sequence That Siebel Open UI Uses to Load Cascading Style Sheets
This topic describes how to replace the sequence that Siebel Open UI uses to load cascading style sheets. Siebel Open UI includes a set of cascading style sheets that it loads in a predefined sequence at run time, starting with Siebel CRM versions 8.1.1.11 and 8.2.2.4. It uses a companion Id for each style sheet immediately after it loads the main style sheet. For example, the structure cascading style sheet that Siebel Open UI loads for Siebel Mobile uses the companion sb_theme Id. Siebel Open UI loads this companion Id when it loads the theme-mb-structure.css file. The cascading style sheet that you can use to customize the structure uses the sbe_theme Id, which Siebel Open UI loads immediately after it loads sb_theme, even though it does not load a cascading style sheet file for this Id, by default. If you configure Siebel Open UI to use this Id to load a cascading style sheet file, then it loads the new cascading style sheet immediately after it loads the theme-mb-structure.css file. You can replace this sequence with your own custom sequence. To replace the sequence that Siebel Open UI uses to load cascading style sheets
- Navigate to the following folder, and then use a JavaScript editor to open the theme.js file:
ORACLE_HOME\siebsrvr\WEBMASTER\siebel_build\scripts\siebel\custom
- Add the following code:
SiebelApp.ThemeManager.addResource( "GRAY_TAB", { css: { "sbe-theme":"files/custom.css" } } );
where:
- custom.css is a .css file that includes your custom sequence. You can use any file name. For example, my-layout.css.
How Siebel Mobile Loads Cascading Style Sheets That It Displays on Tablets
Table 11 describes the sequence that Siebel Open UI uses to load Ids and cascading style sheet files when it renders the client in a tablet. It uses the SBL-MOBILE theme, by default. It loads sb_theme first, and then sbe_theme, and so on.
Table 11. How Siebel Open UI Loads Cascading Style Sheets That It Displays on Tablets
|
|
|
|
1 |
sb_theme |
theme-mb-structure.css |
Predefined file that specifies the default page layout. |
2 |
sbe_theme |
Not applicable. |
Placeholder that you can use to load your custom cascading style sheet to customize the default layout. |
3 |
ss_theme |
theme-mb-swatches.min.css |
Predefined file that specifies color schemes. |
4 |
sc_theme |
theme-mb-style.css |
File that specifies the default colors and style. |
5 |
sce_theme |
Not applicable. |
Placeholder that you can use to load your custom cascading style sheet to customize the default colors and style. |
How Siebel Mobile Loads Cascading Style Sheets That It Displays on Phones
Table 12 describes the sequence that Siebel Open UI uses to load Ids and cascading style sheet files when it renders the client on a phone. It uses the SBL-MOBILE theme, by default.
Table 12. How Siebel Open UI Loads Cascading Style Sheets That It Displays on Phones
|
|
|
|
1 |
sb_theme |
theme-mb-structure.css |
Predefined file that specifies the default page layout. |
2 |
sbe_theme |
Not applicable |
Placeholder that you can use to load a custom cascading style sheet that modifies the default layout. |
3 |
sbp_theme |
theme-mbp-structure.css |
Predefined file that specifies the page layout that Siebel Open UI displays in a phone. |
4 |
sbpe_theme |
Not applicable |
Placeholder that you can use to load a custom cascading style sheet that modifies the default layout that Siebel Open UI displays in a phone. |
5 |
ss_theme |
theme-mb-swatches.min.css |
Predefined file that specifies color schemes. |
6 |
sc_theme |
theme-mb-style.css |
File that specifies the default colors and style. |
7 |
sce_theme |
Not applicable |
Placeholder that you can use to load a custom cascading style sheet that specifies colors and style. |
8 |
scp_theme |
theme-mbp-style.css |
Predefined file that specifies default colors and style for a phone. |
9 |
scpe_theme |
Not applicable |
Placeholder that you can use to load a custom cascading style sheet that modifies the default color and style that Siebel Open UI displays in a phone. |
How Siebel Mobile Loads Cascading Style Sheets That It Displays on Desktops
Table 13 describes the sequence that Siebel Open UI uses to load Ids and cascading style sheet files when it renders the client on a desktop computer. You can use ThemeRoller swatches only with Siebel Mobile. However, you can use the files that Table 13 describes to customize how Siebel Open UI loads the cascading style sheets that it displays on desktop computers for the GRAY_TAB theme. it uses the same loading sequence and Ids for all themes. Only the file names are specific to a theme.
Table 13. How Siebel Open UI Loads Cascading Style Sheets That It Displays on Desktops
|
|
|
|
1 |
sb_theme |
theme-base.css |
Predefined file that specifies the page layout. |
2 |
sbe_theme |
Not applicable |
Placeholder that you can use to load a custom cascading style sheet that modifies the default layout. |
3 |
sc_theme |
theme-gray.css |
Predefined file that specifies color schemes and style. |
4 |
sce_theme |
Not applicable |
Placeholder that you can use to load a custom cascading style sheet that modifies the default color schemes and style. |
5 |
sn_theme |
theme-nav-tab.css |
Predefined file that specifies to use tabs for navigation. |
6 |
sne_theme |
Not applicable |
Placeholder that you can use to load a custom cascading style sheet that specifies navigation. |
7 |
sca_theme |
theme-calendar.css |
Predefined file that specifies styles in the calendar. |
8 |
scae_theme |
Not applicable |
Placeholder that you can use to load a custom cascading style sheet that specifies styles in the calendar. |
|