[Pcsclite-cvs-commit] r5141 - in /website: matrix.css matrix.py
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Aug 16 08:12:42 UTC 2010
Author: rousseau
Date: Mon Aug 16 08:12:30 2010
New Revision: 5141
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5141
Log:
Use a darker color for odd lines of the matrix
Modified:
website/matrix.css
website/matrix.py
Modified: website/matrix.css
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.css?rev=5141&op=diff
==============================================================================
--- website/matrix.css (original)
+++ website/matrix.css Mon Aug 16 08:12:30 2010
@@ -1,5 +1,8 @@
a img{position:absolute;visibility:hidden}
a:hover img{visibility:visible}
tr.supported, td.supported {background-color:#ffffff;}
+tr.supported_odd, td.supported_odd {background-color:#eeeeee;}
tr.shouldwork, td.shouldwork {background-color:#a0ffff;}
+tr.shouldwork_odd, td.shouldwork_odd {background-color:#a0eeee;}
tr.unsupported, td.unsupported {background-color:#ffa0a0;}
+tr.unsupported_odd, td.unsupported_odd {background-color:#eea0a0;}
Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=5141&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Mon Aug 16 08:12:30 2010
@@ -375,7 +375,15 @@
num = 0
for r in index:
num += 1
- file.write('<tr class="%s">' % readers[r]['section'])
+ # define color of the line
+ if num % 2:
+ # even line number
+ color = readers[r]['section']
+ else:
+ # odd line number
+ color = readers[r]['section'] + '_odd'
+ file.write('<tr class="%s">' % color)
+
file.write("<td>%d</td>" % num)
for f in fields:
if f == 'iProduct':
More information about the Pcsclite-cvs-commit
mailing list