Changeset d38b5dd for stylesheets


Ignore:
Timestamp:
09/10/2004 07:06:14 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
6.0
Children:
b87d573
Parents:
9e2b55c
Message:

Making a better output for Appendix{a,b}.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4152 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
stylesheets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs.css

    r9e2b55c rd38b5dd  
    111111}
    112112
    113 li.preface {
     113li.preface, li.appendix {
    114114  margin-left: 1em;
    115115}
     
    284284}
    285285
    286 div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
     286div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
    287287  padding-bottom: 0.5em;
    288288}
    289289
    290 div.preface h1, div.part h1, div.chapter h1, div.sect1 h1, div.index h1 {
     290div.preface h1, div.part h1, div.chapter h1, div.sect1 h1, div.appendix h1, div.index h1 {
    291291  background: #f5f6f7;
    292292  border-bottom: .1em solid #dbddec;
  • stylesheets/xhtml/lfs-titles.xsl

    r9e2b55c rd38b5dd  
    2828    <div class="titlepage">
    2929      <h1 class="{name(.)}">
     30        <xsl:value-of select="title"/>
     31      </h1>
     32    </div>
     33  </xsl:template>
     34
     35  <xsl:template name="appendix.titlepage">
     36    <div class="titlepage">
     37      <h1 class="{name(.)}">
     38        <xsl:apply-templates select="." mode="label.markup"/>
     39        <xsl:text>. </xsl:text>
    3040        <xsl:value-of select="title"/>
    3141      </h1>
     
    8696  </xsl:template>
    8797
    88     <!-- Harcoded a period for proper punctuation in xrefs. -->
     98    <!-- Added the role param for proper punctuation in xref calls. -->
    8999  <xsl:template match="*" mode="insert.title.markup">
    90100    <xsl:param name="purpose"/>
  • stylesheets/xhtml/lfs-toc.xsl

    r9e2b55c rd38b5dd  
    9494        </a>
    9595      </xsl:when>
     96      <xsl:when test="local-name(.) = 'appendix'">
     97        <a>
     98          <xsl:attribute name="href">
     99            <xsl:call-template name="href.target">
     100              <xsl:with-param name="context" select="$toc-context"/>
     101            </xsl:call-template>
     102          </xsl:attribute>
     103          <xsl:variable name="label">
     104            <xsl:apply-templates select="." mode="label.markup"/>
     105          </xsl:variable>
     106          <xsl:copy-of select="$label"/>
     107          <xsl:if test="$label != ''">
     108            <xsl:value-of select="$autotoc.label.separator"/>
     109          </xsl:if>
     110          <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     111        </a>
     112      </xsl:when>
    96113      <xsl:when test="local-name(.) = 'chapter' or local-name(.) = 'preface'">
    97114        <h4>
Note: See TracChangeset for help on using the changeset viewer.