You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Anand Nath <an...@oracle.com> on 2011/09/02 08:55:39 UTC

[Trinidad] [Jira 2111] skinning ability for tablet devices (ipad, iphone etc)

Hi,

A patch is provided for Jira issue 2111 
<https://issues.apache.org/jira/browse/TRINIDAD-2111>.

The patch (tri-code-24082011.patch) introduces a way to specify css 
rules specific to touchScreen devices.Agents capture a capability named 
"touchScreen" with valid values of none, single and multiple.

Syntax implemented allows user to specify rules as follows:

@agent (touchScreen:none) {
    /* Some styles that should not be rendered on touchScreen devices. */
}

@agent (touchScreen:single) {
    /* some styles specific for touchScreen with single touch. */
}

@agent (touchScreen:multiple) {
    /* some styles specific for touchScreen with multiple touch. */
}

@agent (touchScreen) {
    /* some touchScreen specific styles for all touch devices: both 
single and multiple touch. */
}

@agent webkit and (version: 9) and (touchScreen:single) {
    /* some touchScreen specific styles for touch devices with single 
touch running webkit version 6. */
}

@agent gecko and (version: 6), webkit and (touchScreen:single) {
    /* styles to be rendered on version 6 of gecko agent and single 
touch devices running webkit */
}


Thanks
Anand