From 4cec8a7058914c4f257e82b2bc53f19eb2313037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 15 Jan 2015 14:30:02 -0800 Subject: [PATCH] Remove CSS transition on window resize They do more harm than good. We still have the "HD" and "non-HD" styles, just no smooth transitions between them. Bug: T85614 Change-Id: I52dd9883eb4e7df00f0613182d4adaa3f28fe5b7 --- SkinVector.php | 16 ---------------- components/animations.less | 28 ---------------------------- screen.less | 1 - 3 files changed, 45 deletions(-) delete mode 100644 components/animations.less diff --git a/SkinVector.php b/SkinVector.php index 8f7056d..c52a20b 100644 --- a/SkinVector.php +++ b/SkinVector.php @@ -39,8 +39,6 @@ class SkinVector extends SkinTemplate { $this->vectorConfig = $config; } - protected static $bodyClasses = array( 'vector-animateLayout' ); - /** * Initializes output page and sets up skin-specific parameters * @param OutputPage $out Object to initialize @@ -79,18 +77,4 @@ class SkinVector extends SkinTemplate { public function setupTemplate( $classname, $repository = false, $cache_dir = false ) { return new $classname( $this->vectorConfig ); } - - /** - * Adds classes to the body element. - * - * @param OutputPage $out - * @param array &$bodyAttrs Array of attributes that will be set on the body element - */ - function addToBodyAttributes( $out, &$bodyAttrs ) { - if ( isset( $bodyAttrs['class'] ) && strlen( $bodyAttrs['class'] ) > 0 ) { - $bodyAttrs['class'] .= ' ' . implode( ' ', static::$bodyClasses ); - } else { - $bodyAttrs['class'] = implode( ' ', static::$bodyClasses ); - } - } } diff --git a/components/animations.less b/components/animations.less deleted file mode 100644 index ab273dc..0000000 --- a/components/animations.less +++ /dev/null @@ -1,28 +0,0 @@ -/* Animate between standard and high definition layouts */ -body.vector-animateLayout { - .mw-body, - div#footer, - #left-navigation { - .transition(margin-left 250ms, padding 250ms;); - } - - #p-logo { - .transition(left 250ms); - } - - #mw-panel { - .transition(padding-right 250ms); - } - - #p-search { - .transition(margin-right 250ms); - } - - #p-personal { - .transition(right 250ms); - } - - #mw-head-base { - .transition(margin-left 250ms); - } -} diff --git a/screen.less b/screen.less index da0dec5..353f35f 100644 --- a/screen.less +++ b/screen.less @@ -3,7 +3,6 @@ @import "variables.less"; @import "components/common.less"; -@import "components/animations.less"; @import "components/navigation.less"; @import "components/footer.less"; @import "components/externalLinks.less";