diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2004-12-27 19:11:53 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2004-12-27 19:11:53 +0000 |
commit | 56323a2e8b555df9e50b36f6edb25c9afbcb75d9 (patch) | |
tree | 191fab559b2e34931da9bda179d1dd10753a45fe /stylesheets | |
parent | f34c8a1fda9d69d24a8d5ee7d7c0655d27f46079 (diff) | |
download | yelp-56323a2e8b555df9e50b36f6edb25c9afbcb75d9.tar.gz |
- Added yelp_settings_params to set icon and color params - Added colors
* src/yelp-db-pager.c:
* src/yelp-settings.c:
* src/yelp-settings.h:
* src/yelp-toc-pager.c:
- Added yelp_settings_params to set icon and color params
- Added colors selected[0-3] and base[0-3]
* src/yelp-html-gecko.c:
* stylesheets/man2html.xsl:
* stylesheets/toc2html.xsl:
- Switched to XHTML
Diffstat (limited to 'stylesheets')
-rw-r--r-- | stylesheets/man2html.xsl | 1 | ||||
-rw-r--r-- | stylesheets/toc2html.xsl | 29 |
2 files changed, 28 insertions, 2 deletions
diff --git a/stylesheets/man2html.xsl b/stylesheets/man2html.xsl index fbcae683..a089827f 100644 --- a/stylesheets/man2html.xsl +++ b/stylesheets/man2html.xsl @@ -3,6 +3,7 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:yelp="http://www.gnome.org/yelp/ns" + xmlns="http://www.w3.org/1999/xhtml" extension-element-prefixes="exsl yelp" version="1.0"> diff --git a/stylesheets/toc2html.xsl b/stylesheets/toc2html.xsl index a37edbb1..03985bae 100644 --- a/stylesheets/toc2html.xsl +++ b/stylesheets/toc2html.xsl @@ -1,13 +1,24 @@ <?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:yelp="http://www.gnome.org/yelp/ns" + xmlns="http://www.w3.org/1999/xhtml" extension-element-prefixes="yelp" version="1.0"> <xsl:param name="help_icon"/> <xsl:param name="help_icon_size"/> -<xsl:output method="html"/> +<xsl:param name="yelp.color.text"/> +<xsl:param name="yelp.color.anchor"/> +<xsl:param name="yelp.color.background"/> +<xsl:param name="yelp.color.base0"/> +<xsl:param name="yelp.color.base1"/> +<xsl:param name="yelp.color.base2"/> +<xsl:param name="yelp.color.base3"/> +<xsl:param name="yelp.color.selected0"/> +<xsl:param name="yelp.color.selected1"/> +<xsl:param name="yelp.color.selected2"/> +<xsl:param name="yelp.color.selected3"/> <xsl:template match="toc"> <yelp:document href="{@id}"> @@ -24,6 +35,20 @@ } h1 { font-size: 2em; margin-bottom: 0.4em; } h1 img { float: right; } + h1 { color: </xsl:text> + <xsl:value-of select="$yelp.color.selected1"/><xsl:text>; } + h2 { color: </xsl:text> + <xsl:value-of select="$yelp.color.selected1"/><xsl:text>; } + h3 { color: </xsl:text> + <xsl:value-of select="$yelp.color.selected1"/><xsl:text>; } + h4 { color: </xsl:text> + <xsl:value-of select="$yelp.color.selected1"/><xsl:text>; } + h5 { color: </xsl:text> + <xsl:value-of select="$yelp.color.selected1"/><xsl:text>; } + h6 { color: </xsl:text> + <xsl:value-of select="$yelp.color.selected1"/><xsl:text>; } + h7 { color: </xsl:text> + <xsl:value-of select="$yelp.color.selected1"/><xsl:text>; } div[class~="leftbar"] { width: 200px; text-align: center; @@ -32,7 +57,7 @@ background-image: url("</xsl:text> <xsl:value-of select="$help_icon"/><xsl:text>"); background-position: </xsl:text> - <xsl:value-of select="(192 - $help_icon_size) div 2"/><xsl:text> 0; + <xsl:value-of select="(192 - $help_icon_size) div 2"/><xsl:text>px 0px; background-repeat: no-repeat; height: 200px; } |