[yelp/yelp-3-0] [stylesheets] Consolidate custom CSS, use theme.html.css.custom
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/yelp-3-0] [stylesheets] Consolidate custom CSS, use theme.html.css.custom
- Date: Wed, 10 Mar 2010 15:46:19 +0000 (UTC)
commit a20304fed318a9093f2d27d11de0860d1c521098
Author: Shaun McCance <shaunm gnome org>
Date: Wed Mar 10 09:45:09 2010 -0600
[stylesheets] Consolidate custom CSS, use theme.html.css.custom
stylesheets/db2html.xsl.in | 5 ----
stylesheets/mal2html.xsl.in | 19 -----------------
stylesheets/yelp-common.xsl | 48 +++++++++++++++++++++++-------------------
3 files changed, 26 insertions(+), 46 deletions(-)
---
diff --git a/stylesheets/db2html.xsl.in b/stylesheets/db2html.xsl.in
index a7420a4..edde723 100644
--- a/stylesheets/db2html.xsl.in
+++ b/stylesheets/db2html.xsl.in
@@ -82,11 +82,6 @@ FIXME: yelp:cache no longer works
</xsl:choose>
</xsl:template>
-<!-- == db2html.css.custom == -->
-<xsl:template name="db2html.css.custom">
- <xsl:call-template name="yelp.common.css"/>
-</xsl:template>
-
<!-- == db2html.division.head.extra == -->
<xsl:template name="db2html.division.head.extra">
<xsl:if test="string($yelp.javascript) != ''">
diff --git a/stylesheets/mal2html.xsl.in b/stylesheets/mal2html.xsl.in
index bec4f91..42703a3 100644
--- a/stylesheets/mal2html.xsl.in
+++ b/stylesheets/mal2html.xsl.in
@@ -52,23 +52,4 @@
</xsl:choose>
</xsl:template>
-<!-- == mal2html.css.custom == -->
-<xsl:template name="mal2html.css.custom">
- <xsl:call-template name="yelp.common.css"/>
- <xsl:text>
-body { padding: 0; }
-div.head {
- padding: 0.2em 0 0 0;
- margin: 0 0 1em 0;
- background-color: </xsl:text>
- <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
- border-bottom: solid 1px </xsl:text>
- <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
-}
-div.body {
- margin: 0 12px 0 12px;
-}
- </xsl:text>
-</xsl:template>
-
</xsl:stylesheet>
diff --git a/stylesheets/yelp-common.xsl b/stylesheets/yelp-common.xsl
index b75a404..75c3847 100644
--- a/stylesheets/yelp-common.xsl
+++ b/stylesheets/yelp-common.xsl
@@ -4,28 +4,32 @@
version="1.0">
<!-- == yelp.common.css == -->
-<xsl:template name="yelp.common.css">
- <xsl:text>
- html {
- height: 100%;
- }
- body {
- background-color: </xsl:text><xsl:value-of select="$theme.color.background"/><xsl:text>;
- }
- div.body {
- padding: 0;
- border: none;
- }
-
- <!--/* Gecko seems to get selection color wrong on some themes */
- ::-moz-selection {
- background-color: </xsl:text>
- <xsl:value-of select="$yelp.color.selected.bg"/><xsl:text>;
- color: </xsl:text>
- <xsl:value-of select="$yelp.color.selected.fg"/><xsl:text>;
- } -->
-
- </xsl:text>
+<xsl:template name="theme.html.css.custom">
+ <xsl:param name="direction"/>
+ <xsl:param name="left"/>
+ <xsl:param name="right"/>
+<xsl:text>
+html {
+ height: 100%;
+}
+body {
+ padding: 0;
+ background-color: </xsl:text><xsl:value-of select="$theme.color.background"/><xsl:text>;
+}
+div.head {
+ padding: 0.2em 0 0 0;
+ margin: 0 0 1em 0;
+ background-color: </xsl:text>
+ <xsl:value-of select="$theme.color.gray_background"/><xsl:text>;
+ border-bottom: solid 1px </xsl:text>
+ <xsl:value-of select="$theme.color.gray_border"/><xsl:text>;
+}
+div.body {
+ margin: 0 12px 0 12px;
+ padding: 0;
+ border: none;
+}
+</xsl:text>
</xsl:template>
</xsl:stylesheet>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]