Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2640E431FD7 for ; Thu, 13 Feb 2014 08:51:00 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MhsLx47Yh4ro for ; Thu, 13 Feb 2014 08:50:53 -0800 (PST) Received: from qmta12.westchester.pa.mail.comcast.net (qmta12.westchester.pa.mail.comcast.net [76.96.59.227]) by olra.theworths.org (Postfix) with ESMTP id 20F35431FC0 for ; Thu, 13 Feb 2014 08:50:47 -0800 (PST) Received: from omta14.westchester.pa.mail.comcast.net ([76.96.62.60]) by qmta12.westchester.pa.mail.comcast.net with comcast id Rp6A1n0051HzFnQ5Csqnbk; Thu, 13 Feb 2014 16:50:47 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta14.westchester.pa.mail.comcast.net with comcast id Rsom1n00a152l3L3asonyu; Thu, 13 Feb 2014 16:48:47 +0000 Received: from mjolnir.tremily.us (unknown [192.168.0.140]) by odin.tremily.us (Postfix) with ESMTPS id 42E1C102DA0A; Thu, 13 Feb 2014 08:48:46 -0800 (PST) Received: (nullmailer pid 17993 invoked by uid 1000); Thu, 13 Feb 2014 16:47:29 -0000 From: "W. Trevor King" To: notmuch@notmuchmail.org Subject: [PATCH v3 6/8] nmbug-status: Add inter-message padding Date: Thu, 13 Feb 2014 08:47:21 -0800 Message-Id: X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1392310247; bh=tHi6d9am6wBt9inMfqksOF/IWXgW/CZ97UH6rA0QrzU=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-Id; b=PjsXaiAQ+lSIseI1A80S/6vhoZfHjFsi5FhfePseUJpNaRijgggjmfnppVrWNQiuG lFEfMKd/0AOtpb0wKVBrQM9ZQKYi/py3qAwnSRMuOiYeNvmWM2CCcqeRb+l9o/tZJ/ Vp6V1shlOXYstI/TZdqZr3rMgHQ1uz5qncTumw5odB6QJalukzzWbHiJXDMT4eZw15 c9oZ6kDCYb0d5ft9XNQjPet2Ab/1f4d6mtnlbEy0u8njsV6T2Y7OL5c1SNv77BsP/z oLNJ3rey4xhMu6UnMbBoO6Mt0k7TD8tsb3fzaRuKROzE2quOctnyIVsRHDg1aMOacT 5+r1Djnf364TQ== Cc: Tomi Ollila X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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, 13 Feb 2014 16:51:00 -0000 We already had the tbody with a blank row separating threads (which is not colored); this commit adds a bit of spacing to separate messages within a thread. It will also add a bit of colored padding above the first message and below the final message, but the main goal is to add padding *between* two-row message blocks. <--- new padding thread-1, message-1, row-1 (class="message-first") thread-1, message-1, row-2 (class="message-last") <--- new padding spacer tbody with a blank row <--- new padding thread-2, message-1, row-1 (class="message-first") thread-2, message-1, row-2 (class="message-last") <--- new padding <--- new padding thread-2, message-2, row-1 (class="message-first") thread-2, message-2, row-2 (class="message-last") <--- new padding --- devel/nmbug/nmbug-status | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index 57eec6c..9ad7d35 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -208,11 +208,11 @@ class HtmlPage (Page): stream.write(' \n') for message_display_data in thread: stream.write(( - ' \n' + ' \n' ' {date}\n' ' {message-id-term}\n' ' \n' - ' \n' + ' \n' ' {from}\n' ' {subject}\n' ' \n' @@ -256,6 +256,12 @@ _PAGES['html'] = HtmlPage( table {{ border-spacing: 0; }} + tr.message-first td {{ + padding-top: {inter_message_padding}; + }} + tr.message-last td {{ + padding-bottom: {inter_message_padding}; + }} td {{ padding-left: {border_radius}; padding-right: {border_radius}; @@ -288,6 +294,7 @@ For more infomation see nmbug

Views

'''.format(date=datetime.datetime.utcnow().date(), + inter_message_padding='0.25em', border_radius='0.5em'), footer='\n\n', ) -- 1.8.5.2.8.g0f6c0d1