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