summaryrefslogtreecommitdiff
path: root/stylesheets/toc2html.xsl
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2005-01-25 23:04:23 +0000
committerShaun McCance <shaunm@src.gnome.org>2005-01-25 23:04:23 +0000
commit82b008f8ecaa8753f24f48fde981924fa99aada3 (patch)
treee926d8b6421cde0b060d621327c6f16c90c00286 /stylesheets/toc2html.xsl
parent2630c8bd4057f1a18e3f2806ef0ec4bc08bb8fe2 (diff)
downloadyelp-82b008f8ecaa8753f24f48fde981924fa99aada3.tar.gz
- Changed copyright statement and a comment
* src/yelp-window.c: - Changed copyright statement and a comment * stylesheets/toc2html.xsl: - Some design prettification
Diffstat (limited to 'stylesheets/toc2html.xsl')
-rw-r--r--stylesheets/toc2html.xsl70
1 files changed, 48 insertions, 22 deletions
diff --git a/stylesheets/toc2html.xsl b/stylesheets/toc2html.xsl
index b8627ffc..5d271516 100644
--- a/stylesheets/toc2html.xsl
+++ b/stylesheets/toc2html.xsl
@@ -29,34 +29,58 @@
</title>
<style><xsl:text>
body {
- padding-top: 0em;
- padding-left: 0em;
- padding-right: 2em;
+ margin: 0px;
+ padding: 0px;
}
- h1 { font-size: 1.6em; margin-bottom: 0.4em; }
- h1 img { float: right; }
- h1 { color: </xsl:text>
- <xsl:value-of select="$yelp.color.selected1"/><xsl:text>; }
- div[class~="leftbar"] {
- width: 200px;
- text-align: center;
+ h1 {
+ font-size: 1.6em;
+ margin-bottom: 0.4em;
+ margin-top: 12px;
+ margin-left: 12px;
+ margin-right: 12px;
+ padding-left: 204px;
+ padding-top: 0.2em;
+ padding-bottom: 0.2em;
+ -moz-border-radius: 6px;
+ border: solid 1px </xsl:text>
+ <xsl:value-of select="$yelp.color.selected1"/><xsl:text>;
+ background-color: </xsl:text>
+ <xsl:value-of select="$yelp.color.selected0"/><xsl:text>;
+ color: </xsl:text>
+ <xsl:value-of select="$yelp.color.background"/><xsl:text>;
+ }
+ h1 img {
+ position: absolute;
+ top: 6px;
+ right: 18px;
}
div[class~="body"] {
+ }
+ div[class~="leftbar"] {
+ position: absolute;
+ top: 4em;
+ left: 12px;
+ width: 192px;
+ min-height: 192px;
+ text-align: center;
+ <!-- FIXME: this isn't working -->
+ padding-top: </xsl:text>
+ <xsl:value-of select="$help_icon_size"/><xsl:text> px;
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>px 0px;
background-repeat: no-repeat;
- height: 200px;
}
div[class~="rightbar"] {
- padding-left: 200px;
+ margin-left: 216px;
padding-bottom: 1em;
+ margin-right: 12px;
+ }
+ div[class~="tocs"] + div[class~="docs"] {
+ border-top: solid 1px </xsl:text>
+ <xsl:value-of select="$yelp.color.selected0"/><xsl:text>;
}
- div[class~="tocs"] { border-top: solid 1px </xsl:text>
- <xsl:value-of select="$yelp.color.selected0"/><xsl:text>; }
- div[class~="docs"] { border-top: solid 1px </xsl:text>
- <xsl:value-of select="$yelp.color.selected0"/><xsl:text>; }
ul { margin-left: 0em; padding-left: 0em; }
li {
margin-top: 0.5em;
@@ -82,13 +106,15 @@
<xsl:template mode="body.mode" match="toc">
<div class="body">
+ <h1>
+ <xsl:if test="icon">
+ <img src="{icon/@file}"/>
+ </xsl:if>
+ <xsl:apply-templates select="title[1]/node()"/>
+ </h1>
+ <div class="leftbar">
+ </div>
<div class="rightbar">
- <h1>
- <xsl:if test="icon">
- <img src="{icon/@file}"/>
- </xsl:if>
- <xsl:apply-templates select="title[1]/node()"/>
- </h1>
<xsl:if test="toc[.//doc]">
<div class="tocs">
<ul>