From 8382ea5459c6601b10ebaeb6c2d0de497c25d887 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 13 Sep 2003 11:23:28 +0000 Subject: - Xtemplate improvements by Kristjan: > no changes in presentation, just a structure changes > > - removed inline styles from .xtmpl > - removed duplicated #header class reference, renamed second one to #content as context$ > - simplified some CSS selectors (tested on IE and mozilla, please test on Opera, if pos$ > - some .class -> #class Note: tested on Opera; couldn't spot any differences. --- themes/xtemplate/xtemplate.css | 24 ++++++++++++++---------- themes/xtemplate/xtemplate.xtmpl | 15 ++++++++------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/themes/xtemplate/xtemplate.css b/themes/xtemplate/xtemplate.css index 8a1e3c67a..614d0aeb2 100644 --- a/themes/xtemplate/xtemplate.css +++ b/themes/xtemplate/xtemplate.css @@ -42,36 +42,39 @@ p { img { border-width: 0; } -.header { +#header, #content { width: 100%; } -.header .menu { +#header { background-color: #69c; - padding: 0.5em 0.5em 0 0.5em; } -.menu #logo { - vertical-align: middle; +#logo { + vertical-align: bottom; border: 0; - margin-bottom: .8em; font-weight: bold; font-size: 1.9em; color: #fff; } -.menu #primary { +#menu { + padding: 0.5em 0.5em 0 0.5em; + text-align: right; + vertical-align: middle; +} +#primary { font-size: 1.0em; padding: 0em 0.8em 0.5em 0; color: #9cf; } -.menu #primary a { +#primary a { font-weight: bold; color: #fff; } -.menu #secondary { +#secondary { padding: 0 1em 0.5em 0; font-size: 0.8em; color: #9cf; } -.menu #secondary a { +#secondary a { font-weight: bold; color: #9cf; } @@ -109,6 +112,7 @@ img { width: 16em; /* padding in px not ex because IE messes up 100% width tables otherwise */ padding: 10px; + vertical-align: top; } #footer { background-color: #eee; diff --git a/themes/xtemplate/xtemplate.xtmpl b/themes/xtemplate/xtemplate.xtmpl index 7612b3d74..17ca06269 100644 --- a/themes/xtemplate/xtemplate.xtmpl +++ b/themes/xtemplate/xtemplate.xtmpl @@ -13,11 +13,12 @@ - +
- - + - +
- @@ -92,7 +93,7 @@ - -- cgit v1.2.3