From: Artem Bityutskiy <dedekind1@gmail.com>
To: Brian Norris <computersforpeace@gmail.com>
Cc: MTD Maling List <linux-mtd@lists.infradead.org>
Subject: [PATCH] NAND table: alternate row colors
Date: Mon, 4 Mar 2013 13:03:47 +0200 [thread overview]
Message-ID: <1362395027-6513-1-git-send-email-dedekind1@gmail.com> (raw)
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
The truly great NAND table that we have is rather difficult to follow because
it is big. Make this a bit easier by applying different background colors to
different rows. Alternate the colors with period = 4.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
nand-data/csvtohtml.py | 2 +-
nand-data/header.tmpl | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/nand-data/csvtohtml.py b/nand-data/csvtohtml.py
index 06b010b..36c72aa 100755
--- a/nand-data/csvtohtml.py
+++ b/nand-data/csvtohtml.py
@@ -21,7 +21,7 @@ def csvToHTML(file):
tmp = open(head, 'r')
fdout.write(tmp.read())
tmp.close()
- fdout.write('<table>\n')
+ fdout.write('<table class="zebra">\n')
row = reader.next()
for i in range(len(row)):
if (row[i] == "All but Size"):
diff --git a/nand-data/header.tmpl b/nand-data/header.tmpl
index d0b3423..a9d5420 100644
--- a/nand-data/header.tmpl
+++ b/nand-data/header.tmpl
@@ -22,6 +22,9 @@
table th { background-color: #eee; }
.wrong-size { color: #0066FF; }
.exception { color: red; }
+ .zebra tbody tr:nth-child(4n+1) { background-color: #ffffef;}
+ .zebra tbody tr:nth-child(4n+2) { background-color: #ffefff;}
+ .zebra tbody tr:nth-child(4n+3) { background-color: #efffff;}
#footer { text-align: left; }
</style>
<!--
--
1.8.1.2
next reply other threads:[~2013-03-04 11:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 11:03 Artem Bityutskiy [this message]
2013-03-04 20:17 ` [PATCH] NAND table: alternate row colors Brian Norris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1362395027-6513-1-git-send-email-dedekind1@gmail.com \
--to=dedekind1@gmail.com \
--cc=computersforpeace@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.