Create wrapper for all junk below firstHeading, including nav stuff

And put the position:relative on that. Keeps the sticky header out of
it, regardless, and let folks do their weird non-content voodoo on
stuff like the siteSub more consistently, I guess...

Bug: T231400
Change-Id: I7ac35f741210a0c54976f43d2294af8f123967a1
isekai
Isarra 6 years ago
parent e8824f4bd7
commit 62c2eb0760

@ -126,33 +126,35 @@ class TimelessTemplate extends BaseTemplate {
], ],
$this->get( 'title' ) $this->get( 'title' )
) . ) .
Html::rawElement( 'div', [ 'id' => 'siteSub' ], $this->getMsg( 'tagline' )->parse() ) . Html::rawElement( 'div', [ 'id' => 'bodyContentOuter' ],
Html::rawElement( 'div', [ 'id' => 'mw-page-header-links' ], Html::rawElement( 'div', [ 'id' => 'siteSub' ], $this->getMsg( 'tagline' )->parse() ) .
$this->getPortlet( Html::rawElement( 'div', [ 'id' => 'mw-page-header-links' ],
'namespaces', $this->getPortlet(
$this->pileOfTools['namespaces'], 'namespaces',
'timeless-namespaces', $this->pileOfTools['namespaces'],
[ 'extra-classes' => 'tools-inline' ] 'timeless-namespaces',
) . [ 'extra-classes' => 'tools-inline' ]
$this->getPortlet( ) .
'more', $this->getPortlet(
$this->pileOfTools['more'], 'more',
'timeless-more', $this->pileOfTools['more'],
[ 'extra-classes' => 'tools-inline' ] 'timeless-more',
[ 'extra-classes' => 'tools-inline' ]
) .
$this->getVariants() .
$this->getPortlet(
'views',
$this->pileOfTools['page-primary'],
'timeless-pagetools',
[ 'extra-classes' => 'tools-inline' ]
)
) . ) .
$this->getVariants() . $this->getClear() .
$this->getPortlet( Html::rawElement( 'div', [ 'class' => 'mw-body-content', 'id' => 'bodyContent' ],
'views', $this->getContentSub() .
$this->pileOfTools['page-primary'], $this->get( 'bodytext' ) .
'timeless-pagetools', $this->getClear()
[ 'extra-classes' => 'tools-inline' ]
) )
) .
$this->getClear() .
Html::rawElement( 'div', [ 'class' => 'mw-body-content', 'id' => 'bodyContent' ],
$this->getContentSub() .
$this->get( 'bodytext' ) .
$this->getClear()
) )
); );

@ -22,7 +22,7 @@ body {
padding: 1em @content-padding 3em; padding: 1em @content-padding 3em;
} }
#mw-content-text { #bodyContentOuter {
/* Set a z-index for the content to group it away from any nav stuff (extensions) - T200148 */ /* Set a z-index for the content to group it away from any nav stuff (extensions) - T200148 */
position: relative; position: relative;
z-index: 0; z-index: 0;

Loading…
Cancel
Save