From 1587cdfb60ec7a96b2926d240c7e3d2003bd6613 Mon Sep 17 00:00:00 2001 From: AronDemian Date: Fri, 24 Apr 2020 00:59:07 +0200 Subject: [PATCH] Add `.mw-footer` CSS class & replace `#footer` selector with it `#footer` kept for backwards compatibility with user styles and gadgets. Bug: T248137 Change-Id: Ied8e79c5895f8fe383b1ca743a31890549cc8d86 --- includes/MonoBookTemplate.php | 1 + resources/screen-common.less | 2 +- resources/screen-mobile.less | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/MonoBookTemplate.php b/includes/MonoBookTemplate.php index c72b9fd..4fda195 100644 --- a/includes/MonoBookTemplate.php +++ b/includes/MonoBookTemplate.php @@ -589,6 +589,7 @@ class MonoBookTemplate extends BaseTemplate { $html .= Html::openElement( 'div', [ 'id' => 'footer', + 'class' => 'mw-footer', 'role' => 'contentinfo', 'lang' => $this->get( 'userlang' ), 'dir' => $this->get( 'dir' ) diff --git a/resources/screen-common.less b/resources/screen-common.less index e4661bc..5b4bc6f 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -225,7 +225,7 @@ li#pt-anonuserpage { /* ** footer */ -#footer { +.mw-footer { background-color: @content-background; border-top: 1px solid @orange-border; border-bottom: 1px solid @orange-border; diff --git a/resources/screen-mobile.less b/resources/screen-mobile.less index b57465c..306f4e4 100644 --- a/resources/screen-mobile.less +++ b/resources/screen-mobile.less @@ -241,7 +241,7 @@ /* ** footer */ -#footer li { +.mw-footer li { margin-left: 0; }