Add and use `.mw-footer` & `.mw-footer-container` CSS classes

Adding `.mw-footer` & `.mw-footer-container` CSS classes & replacing 
`#mw-footer`,`#mw-footer-container` selectors with them.

`#mw-footer` & `#mw-footer-container` ids are kept for JS, gadgets 
compatibility and backwards compatibility with user styles.

Bug: T248137
Change-Id: I6e262cb5fa1838a22c3c6de8866d0324e83f84b3
isekai
AronDemian 5 years ago committed by VolkerE
parent 2877914b04
commit 73388405c3

@ -87,8 +87,9 @@ class TimelessTemplate extends BaseTemplate {
) )
); );
$html .= Html::rawElement( 'div', [ 'id' => 'mw-footer-container', 'class' => 'ts-container' ], $html .= Html::rawElement( 'div',
Html::rawElement( 'div', [ 'id' => 'mw-footer', 'class' => 'ts-inner' ], [ 'id' => 'mw-footer-container', 'class' => 'mw-footer-container ts-container' ],
Html::rawElement( 'div', [ 'id' => 'mw-footer', 'class' => 'mw-footer ts-inner' ],
$this->getFooter() $this->getFooter()
) )
); );

@ -6,7 +6,7 @@
#mw-site-navigation, #mw-site-navigation,
#mw-related-navigation, #mw-related-navigation,
#mw-page-header-links, #mw-page-header-links,
#mw-footer, .mw-footer,
#catlinks { #catlinks {
display: none; display: none;
} }

@ -32,7 +32,7 @@ body {
word-wrap: break-word; word-wrap: break-word;
} }
#mw-footer-container { .mw-footer-container {
border-top: solid 1px @base20; border-top: solid 1px @base20;
box-shadow: inset 0 7px 2px -4px rgba( 0, 0, 0, 0.1 ); box-shadow: inset 0 7px 2px -4px rgba( 0, 0, 0, 0.1 );
color: @base100; color: @base100;
@ -154,7 +154,7 @@ body {
/* Footer */ /* Footer */
#mw-footer { .mw-footer {
padding-top: 0.5em; padding-top: 0.5em;
padding-bottom: 1em; padding-bottom: 1em;

@ -156,7 +156,7 @@
padding-right: 0.5em; padding-right: 0.5em;
} }
#mw-footer { .mw-footer {
padding: 0 @content-padding; padding: 0 @content-padding;
} }

@ -6,7 +6,7 @@
/* Layout */ /* Layout */
#mw-data-after-content, #mw-data-after-content,
#mw-footer { .mw-footer {
padding: 0 @content-padding; padding: 0 @content-padding;
} }

Loading…
Cancel
Save