got members.py to dump out <th>'s instead of <td>'s in the header row and made the table it generates more colourful.
This commit is contained in:
parent
c1fe676938
commit
61e2b2a7e5
|
@ -29,7 +29,7 @@ print "<p>The members for " + term2 + " " + str(year) + " are listed here. We cu
|
|||
print "Use of this list for solicitation of any form is prohibited. If you wish to get in touch with the membership as a whole please contact <a href=\"mailto:exec@csclub.uwaterloo.ca\">the Executive</a>.</p>"
|
||||
print "<center>"
|
||||
print "<table>"
|
||||
print " <tr><td>Name</td><td>Program</td><td>Username</td>"
|
||||
print " <tr><th>Name</th><th>Program</th><th>Username</th>"
|
||||
for (_, member) in members:
|
||||
if not 'program' in member:
|
||||
member['program'] = ['']
|
||||
|
|
|
@ -441,16 +441,25 @@ dd {
|
|||
/* GENERAL */
|
||||
|
||||
table {
|
||||
border: solid 1px black;
|
||||
background-color: #fff;
|
||||
border-collapse: collapse;
|
||||
border: 2px solid #fff;
|
||||
outline: 1px solid #4a47ae;
|
||||
}
|
||||
th {
|
||||
background-color: #abc;
|
||||
border: solid 1px black;
|
||||
text-align: center;
|
||||
background-color: #aaa;
|
||||
color: #fff;
|
||||
text-align: left;
|
||||
background-color: #4A47AE;
|
||||
}
|
||||
td {
|
||||
background-color: #def;
|
||||
border: solid 1px black;
|
||||
|
||||
tr:nth-child(odd) {
|
||||
background-color: #c0ffee;
|
||||
background-color: #d3dfee;
|
||||
}
|
||||
|
||||
td a {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
hr {
|
||||
|
|
Loading…
Reference in New Issue