JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
use new evenodd style for admin tables
authorJason Woofenden <jason@jasonwoof.com>
Thu, 18 Dec 2014 23:54:54 +0000 (18:54 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 18 Dec 2014 23:54:54 +0000 (18:54 -0500)
admin_admins.html
admin_files.html
admin_images.html
styl.styl

index e803d83..b19cc15 100644 (file)
@@ -46,7 +46,7 @@
                <!--~listings once_if {~-->
                        <p><a href="admin_admins?new=1">[Add a new account]</a></p>
 
-                       <table cellspacing="0" cellpadding="4" border="1" summary="">
+                       <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
                                <tr><th>Name</th><th>Username</th><th>Role</th><th>&nbsp;</th></tr><!--~listings {~-->
                                <tr>
                                        <td class="listing"><a href="admin_admins?edit_id=~id~">~name html~<!--~name empty {~--><em>(blank)</em><!--~}~--></a></td>
index d0f09cc..bd76f4b 100644 (file)
@@ -46,7 +46,7 @@
                <p><a href="admin_files?new=1">[Add a new file]</a></p>
 
                <!--~listings once_if {~-->
-                       <table cellspacing="0" cellpadding="4" border="1" summary="">
+                       <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
                                <tr><th>&nbsp;</th><th>Path</th><th>Description</th><th>&nbsp;</th></tr><!--~listings {~-->
                                <tr>
                                        <td class="listing"><!--~filename nonempty {~--><a href="/~filename attr~">download</a><!--~}~--><!--~filename empty {~-->&nbsp;<!--~}~--></td>
index 050d97c..d6a720d 100644 (file)
@@ -87,7 +87,7 @@
                <!--~listings once_if {~-->
                        <p><a href="admin_images?new=1">[Add a new image]</a></p>
 
-                       <table cellspacing="0" cellpadding="4" border="1" summary="">
+                       <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
                                <tr><th>Image</th><th>Name</th><th>Caption</th><th>&nbsp;</th></tr><!--~listings {~-->
                                <tr>
                                        <td class="listing"><a href="admin_images?id=~id~"><!--~image nonempty {~--><img src="~image thumb_src~" width="~image thumb_width~" height="~image thumb_height~" alt=""><!--~}~--></a></td>
index 5c8be5d..b95e4f0 100644 (file)
--- a/styl.styl
+++ b/styl.styl
@@ -261,12 +261,14 @@ div > :last-child,
 table.evenodd
        > thead, > tbody, &
                > tr:nth-child(2n+1)
-                       > td:nth-child(2n)
-                               background: rgba(0,0,0,0)
-                       > td:nth-child(2n+1)
-                               background: rgba(0,0,0,0.05)
+                       > td, > th
+                               background: rgba(0,0,0,0.04)
+                       &:hover
+                               > td, > th
+                                       background: rgba(0,0,0,0.07)
                > tr:nth-child(2n+0)
-                       > td:nth-child(2n)
-                               background: rgba(0,0,0,0.05)
-                       > td:nth-child(2n+1)
-                               background: rgba(0,0,0,0.1)
+                       > td, > th
+                               background: rgba(0,0,0,0.02)
+                       &:hover
+                               > td, > th
+                                       background: rgba(0,0,0,0.09)