]> www.infradead.org Git - mtd-www.git/commitdiff
NAND table: alternate row colors
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 4 Mar 2013 11:00:30 +0000 (13:00 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 5 Mar 2013 15:12:30 +0000 (17:12 +0200)
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>
Acked-by: Brian Norris <computersforpeace@gmail.com>
nand-data/csvtohtml.py
nand-data/header.tmpl

index 06b010bbc6c356d0b626205e6555b35e1ae04188..36c72aaf785f844df9fc02fbca4cf9b9acc1bd7a 100755 (executable)
@@ -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"):
index d0b34239b37c5789e0a3091f9cdf2e1dbd151c5f..a9d54205db01324e5c028be193033fdfca04ca86 100644 (file)
@@ -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>
 <!--