diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-26 20:22:29 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-26 20:22:29 +0000 |
commit | bc37722c55e3b41a676609122f991cbb7096a4b2 (patch) | |
tree | 3a88bcacd1c30f91bdb8f8d859e9407d3a04f43a /stylesheets | |
parent | 964e0ea67b9c9fabaf23a228fc63b77de24c60ed (diff) |
Some changes in the CSS code to apetease IE6.
Changed the output matkup for admonitions.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3718 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets')
-rw-r--r-- | stylesheets/lfs-nochunks.xsl | 3 | ||||
-rw-r--r-- | stylesheets/lfs.css | 50 | ||||
-rw-r--r-- | stylesheets/xhtml/lfs-admon.xsl | 4 |
3 files changed, 39 insertions, 18 deletions
diff --git a/stylesheets/lfs-nochunks.xsl b/stylesheets/lfs-nochunks.xsl index 6006d26c7..4c2516e0f 100644 --- a/stylesheets/lfs-nochunks.xsl +++ b/stylesheets/lfs-nochunks.xsl @@ -1,8 +1,5 @@ <?xml version='1.0' encoding='ISO-8859-1'?> -<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -Based on the original lfs-chunked.xsl created by Matthew Burgess --> - <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> diff --git a/stylesheets/lfs.css b/stylesheets/lfs.css index 0ca6c3f95..f3de7f496 100644 --- a/stylesheets/lfs.css +++ b/stylesheets/lfs.css @@ -55,7 +55,9 @@ div.navfooter { } div.navheader ul, div.navfooter ul { - padding: .2em; + padding: .2em .5em .5em 0; + margin-left: 0px; + margin-right: 2px; position: relative; background: #dbddec; } @@ -69,17 +71,17 @@ div.navheader ul li.prev, div.navfooter ul li.prev { display: block; left: 0; text-align: left; - padding: 0.2em .5em; - margin: 0; + padding: 0.2em 1em; + margin-left: 6px; } div.navheader ul li.next, div.navfooter ul li.next { position: absolute; display: block; - right: 0; text-align: right; - padding: 0.2em .5em; - margin: 0; + right: 5px; + padding: 0.2em 0.5em; + margin-right: 7px; } div.navheader ul li.prev p, div.navfooter ul li.prev p, @@ -127,13 +129,26 @@ div.toc ul li h3, div.toc ul li h4 { } /* Admonitions */ -div.admonition { +div.note, div.tip { background-color: #fffff6; - border: medium solid #600; + border: 2px solid #dbddec; width: 90%; margin: .5em auto; } +div.important, div.warning, div.caution { + background-color: #fffff6; + border: medium solid #400; + width: 90%; + margin: .5em auto; + color: #600; + font-size: larger; +} + +div.important h3, div.warning h3, div.caution h3 { + color: #900; +} + div.admonhead img { padding: .3em; } @@ -147,6 +162,15 @@ div.admonbody { margin: .5em; } +div.important em, div.warning em, div.caution em { + color: #000; + font-weight: bold; +} + +div.important tt, div.warning tt, div.caution tt { + font-weight: bold; +} + /* variablelist & segmentedlist */ dl { margin: 0; @@ -205,15 +229,15 @@ pre.screen { /* Sections */ div.wrap h1 { background: #f5f6f7; - padding: 0.5em 0 0.3em 0; - margin: 0; + padding: 1em 0 0.5em 0; + margin: 0px auto; } div.package { background: #f5f6f7; border-bottom: 0.2em solid #dbddec; - padding: 0 0.5em 0.3em 0.5em; - margin: 0; + padding: 0.5em 0.5em 0.3em 0.5em; + margin: 0px auto; } div.installation { @@ -231,7 +255,7 @@ div.configuration { div.content { background: #f5f6f7; border-top: 0.2em solid #dbddec; - padding: 0.5em 0.5em 0.5em 0.5em; + padding: 0.5em 0.5em 1em 0.5em; margin: 0.5em 0 .5em 0; } diff --git a/stylesheets/xhtml/lfs-admon.xsl b/stylesheets/xhtml/lfs-admon.xsl index db71bcdfd..e83956d12 100644 --- a/stylesheets/xhtml/lfs-admon.xsl +++ b/stylesheets/xhtml/lfs-admon.xsl @@ -21,14 +21,14 @@ <xsl:otherwise>Note</xsl:otherwise> </xsl:choose> </xsl:variable> - <div class="admonition"> + <div class="{name(.)}"> <div class ="admonhead"> <img alt="[{$admon.type}]"> <xsl:attribute name="src"> <xsl:call-template name="admon.graphic"/> </xsl:attribute> </img> - <h3 class="{name(.)}"> + <h3 class="admontitle"> <xsl:value-of select="$admon.type"/> <xsl:if test="title"> <xsl:text>: </xsl:text> |