From 329f38f9ab2d4b805c410ec1aa398ebb6271fb61 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Thu, 7 Feb 2008 16:39:41 +0000 Subject: [PATCH] format the sitesub, site notice and usermessage boxes into a single box with footer-grad border. this gives a consistent look to all of them, clearly divided from the content. when no boxes are displayed, the containing div has no height and the gradient doesn't show --- skins/Modern.php | 25 +++++++++++++++---------- skins/modern/main.css | 31 ++++++++++++++++++++++++++----- 2 files changed, 41 insertions(+), 15 deletions(-) diff --git a/skins/Modern.php b/skins/Modern.php index 24c87b3eec..a8730666e2 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -91,7 +91,6 @@ class ModernTemplate extends QuickTemplate {
-
@@ -114,18 +113,24 @@ class ModernTemplate extends QuickTemplate { the content area without affecting the meaning of 'em' in #mw_content, which is used for the margins -->
- data['newtalk'] ) { ?>
html('newtalk') ?>
- data['sitenotice']) { ?>
html('sitenotice') ?>
+
+
msg('tagline') ?>
+ data['newtalk'] ) { + ?>
html('newtalk') ?>
+ + data['sitenotice']) { + ?>
html('sitenotice') ?>
+ +
-

msg('tagline') ?>

-
html('subtitle') ?>
+
html('subtitle') ?>
- data['undelete']) { ?>
html('undelete') ?>
- data['showjumplinks']) { ?> + data['undelete']) { ?>
html('undelete') ?>
+ data['showjumplinks']) { ?> - html('bodytext') ?> -
- data['catlinks']) { ?> + html('bodytext') ?> +
+ data['catlinks']) { ?>
diff --git a/skins/modern/main.css b/skins/modern/main.css index de9eb04f19..78cd2b2286 100644 --- a/skins/modern/main.css +++ b/skins/modern/main.css @@ -111,7 +111,7 @@ body { border-bottom: solid 1px #bbbbbb; line-height: 1.5em; - padding: 1em 1em 1em 1em; + padding: 0 1em 1em 1em; } #mw_portlets { @@ -1068,12 +1068,33 @@ pre { } .usermessage { + background-color: #dadaff; +} + +.mw-topboxes { + border-collapse: collapse; + margin: 0 -1em 1em -1em; + padding: 0 0 8px 0; + background: url(footer-grad.png) repeat-x bottom left; +} + +.mw-topbox p { + padding: 0 0 0 0; + margin: 0 0 0 0; +} + +.mw-topbox { color: black; font-weight: bold; - margin: -1em -1em 0 -1em; - padding: 0 1em 1em 1em; - vertical-align: middle; - background: #dadaff url(footer-grad.png) repeat-x bottom left; + margin: 0 0 0 0; + padding: 0 1em 0 1em; + vertical-align: middle; + border-collapse: collapse; + border-bottom: solid 1px #bbbbbb; +} + +#siteSub { + background-color: #dddddd; } /* emulate center */ -- 2.20.1