Added a class to body which enables/disables layout transitions
authorTrevor Parscal <tparscal@wikimedia.org>
Thu, 10 May 2012 18:17:05 +0000 (11:17 -0700)
committerTrevor Parscal <tparscal@wikimedia.org>
Thu, 10 May 2012 18:29:32 +0000 (11:29 -0700)
commit79dc96f355ac3b4c76bcca232fc5d5763c5b422e
tree6af9935196a40c3b7a1dc663b8602abc554d17c8
parenteec6d86af32884781e51f75b2f36f5655c4c7d8d
Added a class to body which enables/disables layout transitions

This allows people to disable animation of CSS properties temporarily
if needed by removing the vector-animateLayout class from the body.

// Disabled CSS transitions on properties customized by the hd layout
$( 'body' ).removeClass( 'vector-animateLayout' );
// Change something that would normally be animated
$( '#content' ).css( 'margin-left', 0 );
// Re-enables transitions
$( 'body' ).addClass( 'vector-animateLayout' );

Change-Id: I6d164e45c1e31d4f83e0fa390011c5d182eb69c3
skins/Vector.php
skins/vector/screen.css