From 9c20e762e090a29e5a57d5fd195f1a8783d9fdd6 Mon Sep 17 00:00:00 2001 From: John-Paul Robinson <jpr@uab.edu> Date: Fri, 2 Dec 2011 16:55:47 -0600 Subject: [PATCH] Introduce the banner section from the UAB theme The #banner section comes after the #whitebar. Moved the logo rendering and php load code to embed it in the banner element. Removed the #p-logo properties from the vector theme css and adjusted the height of the #p-log a anchor to be 110px to match the height of the logo. --- skins/UabVector.php | 12 +++++++++--- skins/uabvector/main-ltr.css | 8 +------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/skins/UabVector.php b/skins/UabVector.php index a52e48b..0787146 100644 --- a/skins/UabVector.php +++ b/skins/UabVector.php @@ -486,6 +486,15 @@ class UabVectorTemplate extends QuickTemplate { <!-- /whitebar --> <div style="clear:both"></div> + <!-- banner --> + <div id="banner"> + <!-- logo --> + <div id="p-logo"><a style="background-image: url(<?php $this->text( 'logopath' ) ?>);" href="<?php echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] ) ?>" <?php echo $this->skin->tooltipAndAccesskey( 'p-logo' ) ?>></a></div> + <!-- /logo --> + </div> + <!-- /banner --> + <div style="clear:both"></div> + <div id="hide-mw-page-base" class="noprint"></div> <div id="hide-mw-head-base" class="noprint"></div> <!-- whitebox-shadow --> @@ -569,9 +578,6 @@ class UabVectorTemplate extends QuickTemplate { <div class="sidebar"> <!-- panel --> <div id="mw-panel" class="noprint"> - <!-- logo --> - <div id="p-logo"><a style="background-image: url(<?php $this->text( 'logopath' ) ?>);" href="<?php echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] ) ?>" <?php echo $this->skin->tooltipAndAccesskey( 'p-logo' ) ?>></a></div> - <!-- /logo --> <?php $this->renderPortals( $this->data['sidebar'] ); ?> </div> <!-- /panel --> diff --git a/skins/uabvector/main-ltr.css b/skins/uabvector/main-ltr.css index 1b9f130..86a5f23 100644 --- a/skins/uabvector/main-ltr.css +++ b/skins/uabvector/main-ltr.css @@ -484,16 +484,10 @@ body.ltr #footer #footer-places { } /* Logo */ #p-logo { - position: absolute; - top: -160px; - left: 0; - width: 10em; - height: 160px; } #p-logo a { display: block; - width: 10em; - height: 160px; + height: 110px; background-repeat: no-repeat; background-position: center center; text-decoration: none; -- GitLab