From af5bc7cdefa0b6c491feece42d1e0b67a4de19c9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 24 Nov 2003 22:39:48 +0000 Subject: - Made the Xtemplate theme degrade gracefully when CSS is disabled. --- includes/theme.inc | 2 +- themes/xtemplate/xtemplate.css | 12 ++++-------- themes/xtemplate/xtemplate.xtmpl | 10 +++++----- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/includes/theme.inc b/includes/theme.inc index 3e8af9546..2c2c8dba3 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -247,7 +247,7 @@ function theme_box($subject, $content, $region = "main") { **/ function theme_block($block) { $output = "
module\" id=\"block-$block->module-$block->delta\">"; - $output .= "

$block->subject

"; + $output .= "

$block->subject

"; $output .= "
$block->content
"; $output .= "
"; return $output; diff --git a/themes/xtemplate/xtemplate.css b/themes/xtemplate/xtemplate.css index 36b09efa4..388090dba 100644 --- a/themes/xtemplate/xtemplate.css +++ b/themes/xtemplate/xtemplate.css @@ -142,21 +142,17 @@ table { padding-bottom: 0.75em; margin-bottom: 1.5em; } -.node { - padding: 0 0 2.5em 0; -} .comment { border: 1px solid #abc; - padding: 1.5em 1.5em 1.5em 1.5em; + padding: 0 1.5em 1.5em 1.5em; margin: 0.5em 0 0.5em 0; } -.node .title, .block .title, .box .title, .node .title a, .box .title a { - padding-bottom: 0.5em; +.node h2, .node h2 a, .block h2, .box h2 { font-weight: bold; font-size: 1.3em; color: #777; } -.form-item .title { +.form-item label { font-size: 1em; color: #222; } @@ -187,7 +183,7 @@ table { .path a, .path a:visited { color: #777; } -.comment .title { +.comment h3 { font-weight: bold; font-size: 1.1em; color: #777; diff --git a/themes/xtemplate/xtemplate.xtmpl b/themes/xtemplate/xtemplate.xtmpl index cf4107867..e9199c674 100644 --- a/themes/xtemplate/xtemplate.xtmpl +++ b/themes/xtemplate/xtemplate.xtmpl @@ -52,7 +52,7 @@
- +

{title}

Submitted by {author} on {date}. {taxonomy}
{content}
@@ -62,8 +62,8 @@
+

{title}

new -
{title}
Posted by {author} on {date}.
{content}
@@ -72,7 +72,7 @@
-
{title}
+

{title}

Posted by {author} on {date}.
{content}
@@ -81,14 +81,14 @@
-
{subject}
+

{subject}

{content}
-
{subject}
+

{subject}

{content}
-- cgit v1.2.3