From 6b0630d589c73763b84114fa41d6ca5dac2756d8 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 6 Jan 2020 18:32:44 -0500 Subject: [PATCH] Cleaned up unnessecary components --- includes/CitizenTemplate.php | 10 ++-------- resources/components/common.less | 1 + resources/components/footer.less | 1 - resources/components/navigation.less | 4 ---- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/includes/CitizenTemplate.php b/includes/CitizenTemplate.php index 2ed1bce0..ba01f443 100644 --- a/includes/CitizenTemplate.php +++ b/includes/CitizenTemplate.php @@ -245,7 +245,7 @@ class CitizenTemplate extends BaseTemplate { [ 'id' => 'mw-header-menu-drawer-container' ], Html::rawElement( 'div', - [ 'id' => 'mw-header-banner' ], + [ 'id' => 'mw-header-banner', 'role' => 'banner' ], $this->getLogo() . $this->getSiteTitle( 'text' ) ) . @@ -331,17 +331,11 @@ class CitizenTemplate extends BaseTemplate { * @return string html */ protected function getLogo( $id = 'p-logo' ) { - $html = Html::openElement( 'div', [ - 'id' => $id, - 'class' => 'mw-portlet', - 'role' => 'banner', - ] ); $html .= Html::element( 'a', [ 'href' => $this->data['nav_urls']['mainpage']['href'], + 'id' => 'p-logo', 'class' => 'mw-wiki-logo', ] + Linker::tooltipAndAccesskeyAttribs( 'p-logo' ) ); - - return $html . Html::closeElement( 'div' ); } /** diff --git a/resources/components/common.less b/resources/components/common.less index 8f38a9b4..6a740c9c 100644 --- a/resources/components/common.less +++ b/resources/components/common.less @@ -228,6 +228,7 @@ a { .mw-wiki-title { font-family: @fonts-secondary !important; text-transform: uppercase; + letter-spacing: 2px; a& { color: @base-50; diff --git a/resources/components/footer.less b/resources/components/footer.less index 451f1934..d64725aa 100644 --- a/resources/components/footer.less +++ b/resources/components/footer.less @@ -98,7 +98,6 @@ .mw-wiki-title { color: @base-90; font-size: 20px; - letter-spacing: 2px; } } diff --git a/resources/components/navigation.less b/resources/components/navigation.less index 89aa0981..4e44afaa 100644 --- a/resources/components/navigation.less +++ b/resources/components/navigation.less @@ -62,10 +62,6 @@ * Modified from https://codepen.io/erikterwan/pen/EVzeRP and https://codepen.io/oxla/pen/zgvqmM */ #mw-header-menu { - .mw-wiki-title { - letter-spacing: 2px; - } - input { &:checked {