Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 36 Next »

Reference Information

Best Practices

1. Use classes instead of ids whenever possible:

class="portlet-titlebar"

rather than:

id="portletTitlebar"

2. Separate class names by dashes:

class="portlet-titlebar"

rather than:

class="portlet_titlebar"

3. Prefix portlet classes with the portlet namespace:

class="portlet-titlebar"

rather than:

class="titlebar"

4. Class names should be semantic rather than stylistic:

class="portlet-titlebar"

rather than:

class="big-red-bar"

5. Multiple classes assigned to an element should be listed in this order:

  1. FSS classes (fl-)
  2. uPortal classes (up-)
  3. Portlet classes (portlet-)
  4. Custom classes

For example:

class="fl-container-flex, up-portlet-container portlet-titlebar my-custom-class"

CSS Naming Conventions

Fluid Skinning System

Namespace prefix: fl-

uPortal Portal

Namespace prefix: up-

  • Layered on top of FSS for additional helpers and styling.
  • For use in the portal theme (exclusive to uPortal), but not portlets.

uPortal Portlets

Namespace prefix: portlet-

  • Layered on top of FSS for additional helpers and styling.
  • Includes and extends the JSR-168 PLT.C CSS Style Definitions.
  • For use in portlets (only), whether exclusive to uPortal or not.
  • No labels