03 Skins
Skins are groupings of styles (colors, fonts, presentation, images) that may be user selected.
Within one theme, multiple skins can give the layout even more personalization. No changes need to be made to the mark up for switching between skins, so an XSL transformation is not necessary. The theme merely points to which skin will be used. To change which skin is viewed, then, the user simply changes the location of the skin directory to which the theme points. The skins are defined using Cascading Style Sheets and graphics.
Applying a skin is the last step in building each page in uPortal, wrapping the layout with the color scheme and text styles. The user has the ability to change the skin of their portal in the preferences section. This change will take place instantly, and will not effect their layout.
Creating New Skins
New skins can easily be made and added to uPortal. Creating a new skin requires the following steps:
- Making a new or overriding the default Cascading Style Sheet (CSS) files
- Modifying the skin graphics
- Moving the new files into their appropriate folders and redeploying the portal
Creating a CSS File
uPortal uses a cascading style sheet to control the text fonts and styles, as well as the background color scheme information. Each skin uses a single style sheet for all of its styles. The styles defined in the new CSS will be translated into the look of the uPortal layout when that skin is chosen.
A number of standard styles are used throughout uPortal, within channels, and defined in the Portlet Spec.