[yelp-xsl] Fixed body positioning weirdness
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] Fixed body positioning weirdness
- Date: Tue, 12 Apr 2011 17:47:06 +0000 (UTC)
commit 134770554701befbff0f6f6a2476ca5c7345d25a
Author: Shaun McCance <shaunm gnome org>
Date: Tue Apr 12 13:51:25 2011 -0400
Fixed body positioning weirdness
xslt/common/html.xsl | 5 +----
xslt/mallard/html/mal2html-page.xsl | 3 +--
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 064ad88..a7c12e8 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -516,15 +516,12 @@ All parameters can be automatically computed if not provided.
<xsl:text>
html { height: 100%; }
body {
- margin: 0;
- padding: 1em 1em 0 1em;
+ margin: 0; padding: 0;
background-color: </xsl:text>
<xsl:value-of select="$color.gray_background"/><xsl:text>;
color: </xsl:text>
<xsl:value-of select="$color.text"/><xsl:text>;
direction: </xsl:text><xsl:value-of select="$direction"/><xsl:text>;
- max-width: 73em;
- position: relative;
}
div.body {
margin: 0;
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index a2e0fbb..d3a90f5 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -1367,8 +1367,7 @@ $(document).ready(function () {
mlink.hover(
function () {
var offset = contdiv.offset();
- var top = offset.top - $('div.body').offset().top;
- mlink.find('img').css({left: offset.left, top: top, zIndex: 10});
+ mlink.find('img').css({left: offset.left, top: offset.top, zIndex: 10});
mlink.find('img').fadeIn('fast');
},
function () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]