From 928f4b9c3ff50511391502d61524da9433a65c2e Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 27 Nov 2010 19:00:25 +0100 Subject: [PATCH] style overhaul (fixed-width navigation & side bars) --- content/static/style/default.css | 41 +++++++++--------- xsl/common.xsl | 8 ++-- xsl/footer.xsl | 71 +++++++++++++++----------------- xsl/xhtml5.xsl | 69 ++++++++++++++++--------------- 4 files changed, 95 insertions(+), 94 deletions(-) diff --git a/content/static/style/default.css b/content/static/style/default.css index b3dc9f61f..1bc47b788 100644 --- a/content/static/style/default.css +++ b/content/static/style/default.css @@ -42,13 +42,14 @@ pre { background-image: url(../images/logo.png); background-repeat: no-repeat; height: 0px !important; - height /**/:65px; } /* -- Body -- */ #body { display: block; - float: left; + /*float: left;*/ + background-color: white; + margin: 0 2em 0 2em; } /* -- Navigation -- */ @@ -56,9 +57,9 @@ pre { #navigation { float: left; text-align: left; - width: 12%; - margin-left: 2em; - padding: 1em; + width: 12em; + margin: 0; + padding: 1em 0; padding-top: 100px; background: url(../images/ck.png) top center no-repeat; } @@ -99,13 +100,12 @@ pre { /* -- Content -- */ #content { text-align: left; - float: left; - width: 50%; border-left: #ccc 1.1px dashed; border-right: #ccc 1.1px dashed; line-height: 1.3em; padding: 2em; - min-height: 200px; + min-height: 300px; + margin: 0 20em 0 12em; } #content p { @@ -210,17 +210,21 @@ pre { padding-right: 4px; } +/* -- Sidebar right -- */ +#rsidebar { + width: 20em; + float: right; + margin: 0; + padding: 0; + font-size: small; + text-align: left; +} + /* -- News -- */ #news { - text-align: left; - float: right; - margin-right: 1em; - margin-left: -5%; - width: 19%; background: url(../images/pesthoernchen.png) top center no-repeat; padding: 2em; padding-top: 90px; - font-size: small; } #news h2 { @@ -254,13 +258,7 @@ pre { /* -- Upcoming -- */ #upcoming { - text-align: left; - float: right; - margin-right: 1em; - margin-left: -5%; - width: 19%; padding: 2em; - font-size: small; } #upcoming h2 { @@ -302,6 +300,7 @@ pre { /* -- footer -- */ #footer { + clear: both; margin: 0 2em 2em 2em; text-align: center; font-size: small; @@ -768,6 +767,8 @@ p.blockquote { background-color: #fafafa; } +/* -- Flattr button -- */ + a.flattr { content: url(../images/flattrthis.png); opacity: 0.8; diff --git a/xsl/common.xsl b/xsl/common.xsl index d3ef9fc2d..b64261532 100644 --- a/xsl/common.xsl +++ b/xsl/common.xsl @@ -161,7 +161,7 @@ - + -
+ diff --git a/xsl/footer.xsl b/xsl/footer.xsl index cdd2550c2..ddf9070d2 100644 --- a/xsl/footer.xsl +++ b/xsl/footer.xsl @@ -8,55 +8,52 @@
- - - ### Footer ### - - - +
diff --git a/xsl/xhtml5.xsl b/xsl/xhtml5.xsl index 9d8cbd7f5..45f67be62 100644 --- a/xsl/xhtml5.xsl +++ b/xsl/xhtml5.xsl @@ -80,30 +80,42 @@
- - - ### Navigation ### - - + + + + + + ### News ### + + + @@ -112,15 +124,15 @@ - + -
+
vevent @@ -145,16 +157,7 @@ yes -
- - - - ### News ### - - - - - +