[yelp-xsl] mal2html: Move About stuff to common/html, will use for DB
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html: Move About stuff to common/html, will use for DB
- Date: Sun, 6 Nov 2011 23:34:45 +0000 (UTC)
commit 2ea0b5056536ef67b9032edeb696b5416622f6dd
Author: Shaun McCance <shaunm gnome org>
Date: Sun Nov 6 18:26:26 2011 -0500
mal2html: Move About stuff to common/html, will use for DB
xslt/common/html.xsl | 54 +++++++++++++++++++++++++++++++++++
xslt/mallard/html/mal2html-page.xsl | 54 -----------------------------------
2 files changed, 54 insertions(+), 54 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 12180de..42a900b 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -685,6 +685,44 @@ div.clear {
clear: both;
}
+div.about {
+ background-color: </xsl:text><xsl:value-of select="$color.dark_background"/><xsl:text>;
+ color: </xsl:text>
+ <xsl:value-of select="$color.text_light"/><xsl:text>;
+}
+div.about > div.hgroup {
+ margin: 0; padding: 0;
+ text-align: center;
+ border: none;
+}
+div.about > div.hgroup > h2 {
+ margin: 0; padding: 0.2em;
+ font-size: inherit;
+ color: </xsl:text><xsl:value-of select="$color.link"/><xsl:text>;
+ cursor: pointer;
+}
+div.about > div.hgroup > h2:hover {
+ background-color: </xsl:text><xsl:value-of select="$color.blue_background"/><xsl:text>;
+}
+div.copyrights {
+ margin: 1em;
+ text-align: center;
+}
+div.copyright {
+ margin: 0;
+}
+div.aboutblurb {
+ display: inline-block;
+ vertical-align: top;
+ text-align: left;
+ max-width: 20em;
+ margin: 1em;
+}
+ul.credits, ul.credits li {
+ margin: 0; padding: 0;
+ list-style-type: none;
+}
+
table {
border-collapse: collapse;
border-color: </xsl:text><xsl:value-of select="$color.text_light"/><xsl:text>;
@@ -1385,6 +1423,22 @@ function yelp_generate_id () {
else
return ret;
};
+$(document).ready(function () {
+ $('div.about').each(function () {
+ var header = $(this).children('div.hgroup').children('h2');
+ var region = $(this).children('div.region');
+ if (region.attr('id') == '')
+ region.attr('id', yelp_generate_id());
+ header.attr('aria-controls', region.attr('id'));
+ region.attr('aria-expanded', 'false').hide();
+ header.click(function () {
+ if (region.attr('aria-expanded') == 'true')
+ region.attr('aria-expanded', 'false').slideUp('fast');
+ else
+ region.attr('aria-expanded', 'true').slideDown('fast');
+ });
+ });
+});
$(document).ready (function () {
if (location.hash != '') {
var sect = $(location.hash);
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 02a8aa2..d091b54 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -736,44 +736,6 @@ FIXME
</xsl:call-template>
</xsl:param>
<xsl:text>
-div.about {
- background-color: </xsl:text><xsl:value-of select="$color.dark_background"/><xsl:text>;
- color: </xsl:text>
- <xsl:value-of select="$color.text_light"/><xsl:text>;
-}
-div.about > div.hgroup {
- margin: 0; padding: 0;
- text-align: center;
- border: none;
-}
-div.about > div.hgroup > h2 {
- margin: 0; padding: 0.2em;
- font-size: inherit;
- color: </xsl:text><xsl:value-of select="$color.link"/><xsl:text>;
- cursor: pointer;
-}
-div.about > div.hgroup > h2:hover {
- background-color: </xsl:text><xsl:value-of select="$color.blue_background"/><xsl:text>;
-}
-div.copyrights {
- margin: 1em;
- text-align: center;
-}
-div.copyright {
- margin: 0;
-}
-div.aboutblurb {
- display: inline-block;
- vertical-align: top;
- text-align: left;
- max-width: 20em;
- margin: 1em;
-}
-ul.credits, ul.credits li {
- margin: 0; padding: 0;
- list-style-type: none;
-}
-
span.link-button a {
display: inline-block;
background-color: </xsl:text>
@@ -1071,22 +1033,6 @@ $(document).ready(function () {
});
});
});
-$(document).ready(function () {
- $('div.about').each(function () {
- var header = $(this).children('div.hgroup').children('h2');
- var region = $(this).children('div.region');
- if (region.attr('id') == '')
- region.attr('id', yelp_generate_id());
- header.attr('aria-controls', region.attr('id'));
- region.attr('aria-expanded', 'false').hide();
- header.click(function () {
- if (region.attr('aria-expanded') == 'true')
- region.attr('aria-expanded', 'false').slideUp('fast');
- else
- region.attr('aria-expanded', 'true').slideDown('fast');
- });
- });
-});
]]></xsl:text>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]