com web/php: soft deprecation notices: include/shared-manual.inc styles/doc.css styles/site.css
| From: | Peter Cowburn | Date: | Sat, 02 Jun 2012 16:32:34 +0000 |
| Subject: | com web/php: soft deprecation notices: include/shared-manual.inc styles/doc.css styles/site.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13618@lists.php.net to get a copy of this message | ||
Commit: f64750b18287f4cdc8878d88ab7b728bd2f23e02
Author: Peter Cowburn <salathe@php.net> Sat, 2 Jun 2012 00:13:17 +0100
Committer: Peter Cowburn <petercowburn@gmail.com> Sat, 2 Jun 2012 17:32:34 +0100
Parents: 1e49e47a97cfa46e5c07eea88470f93ee38b6def
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f64750b18287f4cdc8878d88ab7b728bd2f23e02
Log:
soft deprecation notices
Changed paths:
M include/shared-manual.inc
M styles/doc.css
M styles/site.css
Diff:
diff --git a/include/shared-manual.inc b/include/shared-manual.inc
index b521e94..c86c4aa 100644
--- a/include/shared-manual.inc
+++ b/include/shared-manual.inc
@@ -129,6 +129,9 @@ $(document).ready(function() {
}
};
+ $(".soft-deprecation-notice h1.title").each(function() {
+ $(this).prepend("<a class=\'toggler shown\'
href=\'#\'><img src=\'/images/notes-reject.gif\'
alt=\'minimize\' /></a> ");
+ });
$(".refsect1 h3.title").each(function() {
url = "https://bugs.php.net/report.php?bug_type=Documentation+problem&manpage="
+ $(this).parent().parent().attr("id") + "%23" +
$(this).parent().attr("id");
$(this).parent().prepend("<div class=\'reportbug\'><a
href=\'" + url + "\'>Report a bug</a></div>");
@@ -137,6 +140,11 @@ $(document).ready(function() {
$("#usernotes .head").each(function() {
$(this).prepend("<a class=\'toggler shown\'
href=\'#\'><img src=\'/images/notes-reject.gif\' alt=\'reject
note\' /></a> ");
});
+ $(".soft-deprecation-notice h1.title .toggler").click(function() {
+ $(this).parent().siblings().slideToggle("slow");
+ toggleImage(this);
+ return false;
+ });
$(".refsect1 h3.title .toggler").click(function() {
$(this).parent().siblings().slideToggle("slow");
toggleImage(this);
diff --git a/styles/doc.css b/styles/doc.css
index 797b1f7..6bda134 100755
--- a/styles/doc.css
+++ b/styles/doc.css
@@ -371,3 +371,31 @@ dl.qandaentry {
font-size:12px;
margin-right: 6px;
}
+
+/* Soft-deprecation Notices */
+div.soft-deprecation-notice h1.title {
+ border: 0;
+ color: #3f438d;
+ position: absolute;
+ padding: 0;
+ margin:0;
+ line-height: 1em;
+ top:-22px;
+ left: 0;
+ font-size: 1.4em;
+ font-weight: bold;
+}
+div.soft-deprecation-notice {
+ position: relative;
+ margin-top: 50px;
+ border: 1px solid #AA6666;
+ color: #fff;
+ background-color: #ffeeee;
+ z-index: 100;
+}
+div.soft-deprecation-notice blockquote.sidebar {
+ padding: 10px;
+ margin: 0px;
+ border: 0px solid #666600;
+ color: #660000;
+}
diff --git a/styles/site.css b/styles/site.css
index 7e5e798..d128dc3 100644
--- a/styles/site.css
+++ b/styles/site.css
@@ -1043,6 +1043,30 @@ div.reportbug {
font-size: 80%;
float: right;
}
+
+/* Soft-deprecation Notices */
+div.soft-deprecation-notice {
+ margin: 1em;
+ padding: 1em;
+ position: relative;
+ border: 2px solid #AA6666;
+ color: #660000;
+ background-color: #ffeeee;
+}
+div..soft-deprecation-notice h1.title {
+ font-size: 110%;
+ border-bottom: dashed 1px white;
+}
+div.soft-deprecation-notice .title .toggler {
+ border-bottom: none;
+}
+div.soft-deprecation-notice blockquote..sidebar {
+ margin: 0;
+ padding: 0;
+ border: none;
+ background: transparent;
+}
+
/*
* vim: noet
*/