From d0d12a1ccbcdf3f5d4c398b6d89280348b369a89 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 27 May 2012 13:55:50 +0200 Subject: [PATCH] Ensure that table styles are only applied to the encapsulating table and not to tables in the e-mail body --- templates/message.html | 32 +++++++++++++++++--------------- templates/style.css | 4 ++-- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/templates/message.html b/templates/message.html index 92278b9..913289f 100644 --- a/templates/message.html +++ b/templates/message.html @@ -14,21 +14,23 @@ %(versions)s - - - - - - - - - - - - - + + + + + + + + + + + + + + +
From:To:Date:
%(from)s%(to)s%(date)s
- %(body)s -
From:To:Date:
%(from)s%(to)s%(date)s
+ %(body)s +
diff --git a/templates/style.css b/templates/style.css index f1d82a1..6a91a40 100644 --- a/templates/style.css +++ b/templates/style.css @@ -45,14 +45,14 @@ table.message margin-top: 20px; } -table th, table td +table.message > tbody > tr > th, table.message > tbody > tr > td { text-align: left; border: 1px solid #313131; padding: 5px 7px; } -table th +table.message > tbody > tr > th { background-color: #313131; color: white;