Skip to content

Commit

Permalink
Adding row hover effects.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed May 27, 2010
1 parent 30446c2 commit 0a64639
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tracsql/htdocs/common.css
Expand Up @@ -4,12 +4,17 @@ div.query table {
border: 1px #ccc solid;
}

div.results table th {
div.results table thead th {
font-weight: bold;
border-bottom: 1px #ccc solid;
padding: 3px ;
padding: 5px ;
}

div.results table td {
padding: 3px ;
div.results table tbody td {
padding: 5px ;
}

div.results table tbody tr:hover {
font-weight: italic;
background: #ececec;
}
4 changes: 4 additions & 0 deletions tracsql/templates/sql.html
Expand Up @@ -45,14 +45,18 @@ <h1><font color="red">Error!</font></h1>
</py:when>
<py:otherwise>
<table cellpadding="2" cellspacing="0">
<thead>
<tr>
<py:for each="col in cols"><th>${col}</th></py:for>
</tr>
</thead>
<tbody>
<py:for each="row in rows">
<tr>
<py:for each="col in row"><td>${col}</td></py:for>
</tr>
</py:for>
</tbody>
</table>
</py:otherwise>
</py:choose>
Expand Down

0 comments on commit 0a64639

Please sign in to comment.