Commit: 3c4d58435829a6d6744d7ccd0cc4940f2dc8f636 Author: Paul Dragoonis <[email protected]> Fri, 31 Dec 2010 05:35:23 +0000 Parents: f3734aaca1d8dca130c950f9bc4fd3ae73265d3b Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=3c4d58435829a6d6744d7ccd0cc4940f2dc8f636 Log: Adding alternate row colors Changed paths: M js/common.js M styles/doc.css Diff: diff --git a/js/common.js b/js/common.js index 1c12b6f..1855206 100644 --- a/js/common.js +++ b/js/common.js @@ -121,6 +121,10 @@ $(document).ready(function() { $(this).append("<a class='genanchor' href='#" + $(this).parent().attr("id") + "'> ΒΆ</a>"); }); + if($('.docs table.doctable').length) { + $('tbody tr:even').addClass("alt-row") + } + }); /** diff --git a/styles/doc.css b/styles/doc.css index c7126fa..7d3b3f9 100644 --- a/styles/doc.css +++ b/styles/doc.css @@ -143,12 +143,13 @@ aside#quicktoc { padding: 2px 5px; } +.docs .doctable tr.alt-row { + background-color: #EFEFEF; +} + .docs .doctable { margin: 3px 30px; } -.docs .doctable tbody tr:hover { - background-color: #EFEFEF; -} .docs .doctable th { border-bottom: 1px solid #987db3; } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
