NAND table: alternate row colors
PATCH 1/1 NAND table: alternate row colors
From: Artem Bityutskiy <[email protected]>
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.
--- nand-data/csvtohtml.py | 2 +- nand-data/header.tmpl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
nand-data/csvtohtml.py +1 -1
@@ -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"):
nand-data/header.tmpl +3 -0
@@ -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> <!--
Signature · 1 line
1.8.1.2
Quoted 7 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
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 <[email protected]>
Thanks, I agree that it can be difficult to follow as-is. I primarily deal with it using spreadsheet software, so I have helpful aids there :)
Your color scheme can clash a bit with foreground blue/red text (for "unsupported" chips), but hey, I'm not a web designer, and I think this is an improvement.