Commit:    bc86b5b77b028a2d54f67bb4834ac61e97ced776
Author:    Hannes Magnusson <[email protected]>         Fri, 31 Dec 2010 12:28:15 
+0000
Parents:   e4c9d8fc2fad2a6b179510f4deea5485ce2ccfaa
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=bc86b5b77b028a2d54f67bb4834ac61e97ced776

Log:
use css for this

Changed paths:
  M  js/common.js
  M  styles/doc.css


Diff:
diff --git a/js/common.js b/js/common.js
index f441e54..4f756b1 100644
--- a/js/common.js
+++ b/js/common.js
@@ -172,10 +172,6 @@ $(document).ready(function() {
         $(this).append("<a class='genanchor' href='#" + 
$(this).parent().attr("id") + "'> ΒΆ</a>");
     });
 
-    if($('.docs table.doctable').length) {
-        $(this).find('tbody tr:even').addClass("alt-row")
-    }
-
 });
 
 /**
diff --git a/styles/doc.css b/styles/doc.css
index 9cb4bc7..b881a85 100644
--- a/styles/doc.css
+++ b/styles/doc.css
@@ -143,7 +143,7 @@ aside#quicktoc {
     padding: 2px 5px;
 }
 
-.docs .doctable tr.alt-row {
+.docs .doctable tbody tr:nth-child(odd) {
     background-color: #EFEFEF;    
 }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to