Work In Progress
This document is a work-in-progress. This page is for documenting all Mobile FSS classnames: what they do, when to use them, and how to extend them.
Join the infusion-users mailing list and ask your questions there.
Introduction
Note: The Mobile FSS is new in v1.2.
This article is for documents all the Mobile FSS classnames and describes what they do, when to use them, and how to extend them.
Knowledge of the core [FSS API] is not required, although extremely useful.
Mobile FSS recycles a large number of desktop FSS class names for the sake of easy portability. Mobile FSS includes some new class names too, which are unique in their usage. While the desktop and mobile flavours of FSS are very similar, there are some important differences:
- The fss-mobile-layout.css file is required.
- The fss-mobile-layout.css file has theme-specific layout adjustments.
- fss-reset.css is not as relevant on the mobile platform as it is on the desktop.
- mobile FSS relies heavily on Webkit, and is currently limited to platforms that use Webkit-based browsers (eg Android, iPhone, etc)
- Since performance on the mobile platform is very different than any other, it is highly recommended to reduce the amount of network traffice your page generates. Therefore, try not to include theme files you wont use, ie: don't push the iphone theme file to an android device if your not using it.
A typical mobile FSS setup looks like
fss-mobile-layout.css fss-mobile-themeOfYourChoice.css your-tweaks.css
...and, as always, order is important!
<hr style="clear:both">
FSS / mFSS overlapping class names
The following class names used in FSS are also used in mobile FSS, with different effects applied.
Any other FSS class name has no effect unless you include the [FSS] files.
Classname |
Notes |
Difference between FSS and mFSS |
---|---|---|
.fl-container* |
|
Width values are ignored, the element is indented 10px, and for the iphone it adds rounded corners to |
.fl-icon |
|
Resizes the default dimensions for icons. Adds rounded corners. Manipulated extensively within |
.fl-label |
|
width is reduced to 25% from 50% |
.fl-button |
|
Changes the appearance to a simple rounded button |
.fl-button-inner |
|
No styling applied since it becomes redundant in modern mobile browsers. Sliding door, scalable buttons can be achieved without it. |
.fl-tabs |
|
Restyled to look more like a multipurpose cluster of elements instead of desktop OS-style tabs |
.fl-tabs-active |
|
Still highlights the selected tab |
.fl-list-menu |
|
list-based menus are the core navigation mechanism in mobile FSS. Usage is outlined in detail in the latest Mobile FSS demos |
.fl-grid |
|
Grid items are much smaller, depending on other required mobile FSS class names like |
.fl-grid-caption |
|
Captions are below image and not on top |
Layout
Containers
Classname |
Variants |
Description |
---|---|---|
.fl-container* |
Fixed width variants found in [FSS] are ignored |
For the iphone, it forces a list to have round corners and content to be indented by 10px |
.fl-table |
|
For making an arbitrary element display like a table |
.fl-table-cell |
|
For making an arbitrary element display like a table cell, enabling vertically alignment for children, (ie. centering things vertically) |
.fl-table-row |
|
For making an arbitrary element display like a table row |
Lists
Classname |
Variants |
Description |
---|---|---|
.fl-list |
|
Applies to a list container, formats the |
.fl-list-menu |
|
Applies to a list container, formats the |
.fl-list-thumbnails |
|
Applies to a list container, formats the |
.fl-icon |
|
When used inside an |
Tabs
Classname |
Variants |
Description |
---|---|---|
.fl-tabs |
|
Works exactly like FSS Tabs (scroll to the bottom) but is much more compact for smaller mobile screens Tabs Demo |
.fl-tabs-active |
|
Hilights the active tab. Class name belongs on the |
Buttons
Classname |
Variants |
Description |
---|---|---|
.fl-button |
.fl-button-green, .fl-button-black, .fl-button-blue, .fl-button-white |
Doesn't do much on its own, but when used with the iphone/android theme there is a border image and translucent gradient shading applied. Buttons Demo |