From 0dbd8f912f94c516984f629a9c523b2cfd6d5e8a Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Tue, 31 Aug 2004 18:58:17 +0000 Subject: [PATCH] Cleanup the default styles rules for local rss messages that don't link to remote pages. --- mail/extensions/newsblog/content/FeedItem.js | 27 +++++--------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/mail/extensions/newsblog/content/FeedItem.js b/mail/extensions/newsblog/content/FeedItem.js index 23b1f72e836..d9c09974f91 100755 --- a/mail/extensions/newsblog/content/FeedItem.js +++ b/mail/extensions/newsblog/content/FeedItem.js @@ -61,11 +61,6 @@ const MESSAGE_TEMPLATE = "\n\ \n\ %TITLE%\n\ \n\ \n\ @@ -82,6 +77,11 @@ const REMOTE_CONTENT_TEMPLATE = "\n\ "; const REMOTE_STYLE = "\n\ + body {\n\ + margin: 0;\n\ + border: none;\n\ + padding: 0;\n\ + }\n\ iframe {\n\ position: fixed;\n\ top: 0;\n\ @@ -102,24 +102,11 @@ const REMOTE_STYLE = "\n\ // Mozilla bug 97283, which makes it hard to scroll an auto overflow div. const LOCAL_CONTENT_TEMPLATE = "\n\ -
\n\ %CONTENT%\n\ -
\n\ "; -// We pad the top more to account for the space taken up by the toolbar. -// In theory the top should be padded 1.8em if we want 0.4em of padding between -// the 1.4em high toolbar and the content, but extra padding seems to get added -// to the top of the message, so we have to reduce the top padding accordingly. - -const LOCAL_STYLE = "\n\ - #content {\n\ - margin: 0;\n\ - border: none;\n\ - padding: 0.4em;\n\ - padding-top: 1.8em;\n\ - }\n\ -"; +// no local style overrides at this time +const LOCAL_STYLE = "\n"; FeedItem.prototype.store = function() { if (this.isStored()) {