com web/php: wrap "{Edit|Report bug on} this page" footer links: js/common.js styles/theme.css
| From: | Peter Cowburn | Date: | Mon, 11 Jun 2012 21:00:52 +0000 |
| Subject: | com web/php: wrap "{Edit|Report bug on} this page" footer links: js/common.js styles/theme.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13669@lists.php.net to get a copy of this message | ||
Commit: b7b4431bf970aec0703364dc718d09b229c0724e
Author: Peter Cowburn <petercowburn@gmail.com> Mon, 11 Jun 2012 22:00:05 +0100
Parents: 49d31c03f5910a6f40c457ecea2e5f6e2224dc9f
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=b7b4431bf970aec0703364dc718d09b229c0724e
Log:
wrap "{Edit|Report bug on} this page" footer links
The recent increase in global font size caused these menu links to
mush into the copyright line.
Changed paths:
M js/common.js
M styles/theme.css
Diff:
diff --git a/js/common..js b/js/common.js
index 54bd1c3..c0e4533 100644
--- a/js/common.js
+++ b/js/common.js
@@ -195,10 +195,12 @@ $(document).ready(function() {
var bugurl = "http://bugs.php.net/report.php?bug_type=Documentation+problem&manpage="
+ pageid;
// Add edit & bugreporting urls to the footer
- $($(".footmenu")[1])
- .append("<li><a href='" + editurl + "'>Edit this
page</a></li>")
- .append("<li><a href='" + bugurl + "'>Report bug
on this page</a></li>")
- ;
+ $($(".footmenu")[1]).after(
+ "<ul class='footmenu pagetools'>"
+ + "<li><a href='" + editurl + "'>Edit this
page</a></li>"
+ + "<li><a href='" + bugurl + "'>Report bug on this
page</a></li>"
+ + "</ul>"
+ );
// Make a list, start making <li>'s dynamically.
// we use .data() to store which element the TOC item should scrollTo()
diff --git a/styles/theme.css b/styles/theme.css
index 33f63ab..f88833c 100755
--- a/styles/theme.css
+++ b/styles/theme.css
@@ -594,6 +594,9 @@ footer .footmenu {
float: right;
margin: 0;
}
+footer .footmenu.pagetools {
+ clear: right;
+}
footer .footmenu..copyright {
float: left;
}