com web/php: use css for this: js/common.js styles/doc.css
| From: | Paul Dragoonis | Date: | Fri, 31 Dec 2010 12:28:15 +0000 |
| Subject: | com web/php: use css for this: js/common.js styles/doc.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23692@lists.php.net to get a copy of this message | ||
Commit: bc86b5b77b028a2d54f67bb4834ac61e97ced776
Author: Hannes Magnusson <bjori@php.net> 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;
}