[PATCH] nmbug-status: Style headers with smaller fonts
authorW. Trevor King <wking@tremily.us>
Thu, 7 Jan 2016 13:51:29 +0000 (05:51 +1600)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:20:48 +0000 (16:20 -0700)
a9/37535f092390fb7e5a904d8b69ccfbe003d046 [new file with mode: 0644]

diff --git a/a9/37535f092390fb7e5a904d8b69ccfbe003d046 b/a9/37535f092390fb7e5a904d8b69ccfbe003d046
new file mode 100644 (file)
index 0000000..cfac755
--- /dev/null
@@ -0,0 +1,118 @@
+Return-Path: <wking@tremily.us>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id B8DE56DE0C4A\r
+ for <notmuch@notmuchmail.org>; Thu,  7 Jan 2016 05:53:36 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.544\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.544 tagged_above=-999 required=5 tests=[AWL=-0.455,\r
+  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FS_WITH_SMALL=1,\r
+ RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id XF5ACvs4HS9X for <notmuch@notmuchmail.org>;\r
+ Thu,  7 Jan 2016 05:53:30 -0800 (PST)\r
+Received: from resqmta-po-02v.sys.comcast.net (resqmta-po-02v.sys.comcast.net\r
+ [96.114.154.161])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id A0AF96DE0C11\r
+ for <notmuch@notmuchmail.org>; Thu,  7 Jan 2016 05:53:30 -0800 (PST)\r
+Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242])\r
+ by resqmta-po-02v.sys.comcast.net with comcast\r
+ id 31t91s0055E3ZMc011tTXL; Thu, 07 Jan 2016 13:53:27 +0000\r
+Received: from mail.tremily.us ([73.221.72.168])\r
+ by resomta-po-18v.sys.comcast.net with comcast\r
+ id 31rS1s0043dr3C9011rSy1; Thu, 07 Jan 2016 13:51:27 +0000\r
+Received: from ullr.tremily.us (unknown [192.168.10.7])\r
+ by mail.tremily.us (Postfix) with ESMTPS id 691251B3B116;\r
+ Thu,  7 Jan 2016 05:51:22 -0800 (PST)\r
+Received: (nullmailer pid 19350 invoked by uid 1000);\r
+ Thu, 07 Jan 2016 13:51:31 -0000\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] nmbug-status: Style headers with smaller fonts\r
+Date: Thu,  7 Jan 2016 05:51:29 -0800\r
+Message-Id:\r
+ <b1a0c49671f26d37a6925bb46a249c8edba99963.1452174532.git.wking@tremily.us>\r
+X-Mailer: git-send-email 2.1.0.60.g85f0837\r
+In-Reply-To: <87k2nl8r0k.fsf@zancas.localnet>\r
+References: <87k2nl8r0k.fsf@zancas.localnet>\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+ s=q20140121; t=1452174807;\r
+ bh=cFYl94DANEVqDveAx+Nd/AbD2xug3JlOsKQvUVlxHVU=;\r
+ h=Received:Received:Received:Received:From:To:Subject:Date:\r
+ Message-Id;\r
+ b=u0KMRPzcuQySPZzdLyDgcfUYkq9aofRp27IvfROvuTX80c/AtwusGkbtjcfr41xin\r
+ NypjtYp3if2GcWNAFfpBx63mbmKmUj9zD6PerAKVqZJZMxmS40fqu4tZkMS41EmPs0\r
+ N5tbFCGUkMkpuLu1RCHfilmnkZpJANvVKKXImmfvp3qrZ6E1ecKojIrdLaIu102kfy\r
+ 28YwTBWKDT8TRG5mGGUKAUE7tCwR9YZNkUTeizbN5boQc+PumVqEfzMWabw6dqdVz4\r
+ xaWzlt1Jn3TOW2Q+cUEmWApLEQGJxzHBJ6K6aWgGeWwx0GMswwOiY1Ag3IhPFPcA61\r
+ Qf3uEFVoIfH7Q==\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 07 Jan 2016 13:53:36 -0000\r
+\r
+We only use h1 through h3, and David prefers smaller headers [1], so\r
+shift over to the font sizes usually used for h2 through h4 [2,3,4].\r
+I haven't bothered with the W3C's default margins, since a bit of\r
+extra whitespace doesn't seem like a big deal.\r
+\r
+[1]: id:87k2nl8r0k.fsf@zancas.localnet\r
+     http://article.gmane.org/gmane.mail.notmuch.general/21595\r
+[2]: http://www.w3.org/TR/html-markup/h2.html\r
+[3]: http://www.w3.org/TR/html-markup/h3.html\r
+[4]: http://www.w3.org/TR/html-markup/h4.html\r
+---\r
+On Thu, Jan 07, 2016 at 09:20:59AM -0400, David Bremner wrote:\r
+> W. Trevor King writes:\r
+> > We can always add additional CSS if the default h1 formatting is\r
+> > too intense.\r
+>\r
+> I'm pretty sure it will be, at least for me, since that's the reason\r
+> I did it this way in the first place. I'm (obviously) not a web\r
+> person, how about providing some CSS to roughly duplicate the\r
+> current visuals?\r
+\r
+Here you go :).\r
+\r
+Cheers,\r
+Trevor\r
+\r
+ devel/nmbug/nmbug-status | 9 +++++++++\r
+ 1 file changed, 9 insertions(+)\r
+\r
+diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status\r
+index f33f660..0382919 100755\r
+--- a/devel/nmbug/nmbug-status\r
++++ b/devel/nmbug/nmbug-status\r
+@@ -327,6 +327,15 @@ header_template = config['meta'].get('header', '''<!DOCTYPE html>\r
+   <meta http-equiv="Content-Type" content="text/html; charset={encoding}" />\r
+   <title>{title}</title>\r
+   <style media="screen" type="text/css">\r
++    h1 {{\r
++      font-size: 1.5em;\r
++    }}\r
++    h2 {{\r
++      font-size: 1.17em;\r
++    }}\r
++    h3 {{\r
++      font-size: 100%;\r
++    }}\r
+     table {{\r
+       border-spacing: 0;\r
+     }}\r
+-- \r
+2.1.0.60.g85f0837\r
+\r