Merge "Remove CSS transition on window resize"

This commit is contained in:
jenkins-bot 2015-01-16 22:04:49 +00:00 committed by Gerrit Code Review
commit 7e84bb9525
3 changed files with 0 additions and 45 deletions

View File

@ -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 );
}
}
}

View File

@ -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);
}
}

View File

@ -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";