Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding row hover effects.

  • Loading branch information...
commit 0a64639ac7f71b04f4369e809ddad93b2afaa46b 1 parent 30446c2
John Benediktsson authored
Showing with 13 additions and 4 deletions.
  1. +9 −4 tracsql/htdocs/common.css
  2. +4 −0 tracsql/templates/sql.html
13 tracsql/htdocs/common.css
View
@@ -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 tracsql/templates/sql.html
View
@@ -45,14 +45,18 @@
</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>
Please sign in to comment.
Something went wrong with that request. Please try again.