Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{style}
.wiki-content h4 {
background:transparent;
}
.wiki-content h3 {
padding:5px;
background:transparent;
}
.api {
  border:1px solid #ccc;
  border-collapse:collapse;
  clear:both;
  width:100%;
 }

.api th,
.wiki-content .api tr th{
  border:1px solid #ccc;
  background:#f4f4f4;
  padding:5px;
  text-align:center;
  table-layout:fixed;
 }

.api td,
.wiki-content .api tr td {
  border:1px solid #ccc;
  padding:5px;
  vertical-align:top;
 }

.api tr td:nth-child(1),
.api tr td:nth-child(2) {
  font-family:monospace;
 }

.api tr td:nth-child(1) {  width:150px; }
.api tr td:nth-child(2) {  width:150px; }
.api tr td:nth-child(3) {  width:400px; }
{style}
{info:title=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.
{info}

{include:FSS Links Panel}
{div:class=LinksPanel | style=clear:none;}
{panel:title= On This Page| borderStyle=solid| borderColor=#566b30| titleBGColor=#D3E3C4| bgColor=#fff}
{toc:minLevel=2|maxLevel=5}
{panel}
{div}

h2. Introduction

Note: The Mobile FSS is {color:purple}new in v1.1{color}.

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 APICheat Sheet] 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
{code}
fss-mobile-layout.css
fss-mobile-themeOfYourChoice.css
your-tweaks.css
{code}

...and, as always, *order is important\!*




{html}
<hr style="clear:both">
{html}

h2. 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|fluid:FSS APICheat Sheet] files.

{table-plus:class=api}
|| 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-list-*}} children. Usage is outlined in detail in the [latest Mobile FSS demos | http://fluidproject.org/releases/1.2/demos/fss/mobile/demo.html] |
| .fl-icon | | Resizes the default dimensions for icons. Adds rounded corners. Manipulated extensively within {{.fl-list-*}} elements. Usage is outlined in detail in the [latest Mobile FSS demos | http://fluidproject.org/releases/1.2/demos/fss/mobile/demo.html] |
| .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 | http://fluidproject.org/releases/1.2/demos/fss/mobile/html/nav/basic.html] |
| .fl-grid | | Grid items are much smaller, depending on other required mobile FSS class names like {{.fl-list-thumbnails and .fl-thumbnails-expanded}} |
| .fl-grid-caption | | Captions are below image and not on top |

h2. Layout


h3. Containers

{table-plus:class=api}
|| Classname || Variants || Description ||
| .fl-container\* | Fixed width variants found in [FSS|fluid:FSS API] 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 |

h3. Lists
{table-plus:class=api}
|| Classname || Variants || Description ||
| .fl-list |  | Applies to a list container, formats the {{li}} as container for general purpose content [List Demo|http://fluidproject.org/releases/1.2/demos/fss/mobile/html/nav/basic.html] |
| .fl-list-menu |  | Applies to a list container, formats the {{li}} and an {{a}} child as a menu of options [List Demo|http://fluidproject.org/releases/1.2/demos/fss/mobile/html/nav/basic.html] |
| .fl-list-thumbnails |  | Applies to a list container, formats the {{li}} with an {{a}} child with an {{img.fl-icon}} child as a menu of options with a large graphic on the left [DEMO|http://build.fluidproject.org/infusion/demos/fss/mobile/html/nav/thumb.html]|
| .fl-icon | | When used inside an  {{.fl-list-menu}} it becomes a 30px x 30px graphic. When used within {{.fl-list-thumbnails}} it becomes a 44px x 44px thumbnail. When used within {{.fl-thumbnails-expanded}} it becomes a 64px x 64px thumbnail. {{.fl-icon}} inside and {{.fl-list}} has rounded corners and can be made "glossy" [Icon Demo| http://fluidproject.org/releases/1.2/demos/fss/mobile/html/nav/icon.html] [Thumbnail Demo|http://fluidproject.org/releases/1.2/demos/fss/mobile/html/nav/thumb.html] |
{table-plus}

h3. Tabs
{table-plus:class=api}
|| Classname || Variants || Description ||
| .fl-tabs |  | Works exactly like [FSS Tabs (scroll to the bottom)|http://fluidproject.org/releases/1.2/demos/fss/layout/demo.html] but is much more compact for smaller mobile screens [Tabs Demo|http://fluidproject.org/releases/1.2/demos/fss/mobile/html/tabs/basic.html]|
| .fl-tabs-active |  | Hilights the active tab. Class name belongs on the {{li}} element [Tabs Demo|http://fluidproject.org/releases/1.2/demos/fss/mobile/html/tabs/basic.html] |
{table-plus}

h3. Buttons
{table-plus:class=api}
|| 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 (the android theme is {color:purple}new in v1.2{color}) there is a border image and translucent gradient shading applied. [Buttons Demo|http://fluidproject.org/releases/1.2/demos/fss/mobile/html/buttons/basic.html] |
{table-plus}