mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
Merge "Remove CSS transition on window resize"
This commit is contained in:
commit
7e84bb9525
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue