jquery-mobile/themes/default
Kin Blas 19c06952fd Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
The expected prototype for a transitionHandler is as follows:

function handler(name, reverse, $to, $from)

The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.

In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:

$.mobile.defaultTransitionHandler = myTransitionHandler;

The changes to make all this necessary are as follows:

- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.

- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.

- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.

- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.

- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 14:06:10 -07:00
..
images improved the icons at regular and retina resolutions. added check and radio to the sprite; fewer requests ftw. Fixes #844 2011-03-25 17:35:45 -04:00
index.php Rule #1, when you change a file name, update its references. Fixing bustage from my previous checkin. Sorry 'bout that. 2010-11-09 14:09:04 -08:00
jquery.mobile.button.css fixed form button appearance in Windows Phone 7 and IE 2011-03-14 00:20:25 -04:00
jquery.mobile.collapsible.css fix extra-wide pages in opera & opera mini 2011-01-12 18:00:53 -05:00
jquery.mobile.controlgroup.css Grouped buttons had extra margins. Fixes #1231 2011-03-14 11:13:47 -04:00
jquery.mobile.core.css Set loader z-index to 100 so it sits over sliders. Fixes #1371 2011-04-05 12:20:54 -04:00
jquery.mobile.dialog.css Page min-height was being calculated with JS and it was far too tall. This moves the values into CSS with values that are aimed towards iPhone (as this is addressing an iPhone transitions issue with the address bar show/hide). 2011-02-03 17:22:23 -05:00
jquery.mobile.forms.checkboxradio.css added z-index rules to ensure label sits on top of input, regardless of source order. 2010-11-16 17:17:19 -05:00
jquery.mobile.forms.fieldcontain.css moved over to our class-based media query 2011-02-01 10:40:18 -05:00
jquery.mobile.forms.select.css less padding on select menu titles. Credit goes to oiva (Oiva Eskola). Thanks! 2011-03-15 19:04:58 -04:00
jquery.mobile.forms.slider.css fixed the flip switch in Windows Phone 7. Z indexes needed tweaking to accommodate IE. 2011-03-14 00:20:25 -04:00
jquery.mobile.forms.textinput.css Whitespace. Again. 2011-03-10 10:16:42 +00:00
jquery.mobile.grids.css This adds a fallback for navbars that have one item, so they simply fill 100%. Credit for this fix and idea goes to kennedyr (Richard Kennedy), but we changed the naming around a bit. Fixes #1107. Thanks Richard! 2011-03-14 20:26:20 -04:00
jquery.mobile.headerfooter.css Fix for "header/footer scrolls with document" problem in Issue 58. 2010-11-10 16:02:55 -08:00
jquery.mobile.listview.css fixed bug in CSS counter in readonly lists 2011-03-31 17:34:16 -04:00
jquery.mobile.navbar.css more outline disabling 2011-01-22 14:46:58 -05:00
jquery.mobile.theme.css Removed duplicate text shadow rule 2011-04-04 22:31:14 -04:00
jquery.mobile.transitions.css Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute. 2011-04-26 14:06:10 -07:00