com web/php: [beta] fixing a CSS bug incurred with empty p tags generated from PHD. This temporarily fixes it until PHD is resolved: js/common.js
styles/doc.css
| From: | Paul Dragoonis | Date: | Thu, 04 Jul 2013 11:25:56 +0000 |
| Subject: | com web/php: [beta] fixing a CSS bug incurred with empty p tags generated from PHD. This temporarily fixes it until PHD is resolved: js/common.js styles/doc.css |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-16209@lists.php.net to get a copy of this message | ||
Commit: 3042ff3b32f71c4b6b76329c128e56c8de22870e
Author: Paul Dragoonis <dragoonis@gmail.com> Thu, 4 Jul 2013 12:25:56 +0100
Parents: 7fe548954f6ca3d449d7d5f3fd158f470e105872
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=3042ff3b32f71c4b6b76329c128e56c8de22870e
Log:
[beta] fixing a CSS bug incurred with empty p tags generated from PHD. This temporarily fixes it
until PHD is resolved
Changed paths:
M js/common.js
M styles/doc.css
Diff:
diff --git a/js/common.js b/js/common.js
index e723aad..610655f 100644
--- a/js/common.js
+++ b/js/common.js
@@ -260,7 +260,14 @@ $(document).ready(function() {
}, 250);
});
});
-
+
+ // We have <p> tags generated with nothing in them and it requires a PHD change,
meanwhile this fixes it.
+ $('.docs .refentry .parameters p, .docs .refsect1.examples p, .docs .refsect1.seealso
p').each(function() {
+ var $this = $(this), html = $this.html();
+ if(html !== null && html.replace(/\s| /g, '').length == 0) {
+ $this.remove();
+ }
+ });
});
/**
diff --git a/styles/doc.css b/styles/doc.css
index 42f436a...a7450ae 100755
--- a/styles/doc.css
+++ b/styles/doc.css
@@ -186,11 +186,6 @@ aside#quicktoc {
.docs .refentry .parameters dl dt code.parameter {
font-size:1.23076em;
}
-.docs .refentry .parameters .title + p.para + dl,
-.docs .refsect1.examples .title + p.para + *,
-.docs .refsect1.seealso .title + p.para + * {
- margin-top:-1.5em; /* there's a p tag that has whitespace (not :empty). This simply covers
it up */
-}
.docs .rdfs-comment .parameter {
font-size: 1.3em;