Changeset f6abc2a for stylesheets


Ignore:
Timestamp:
04/06/2006 05:48:29 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
ab96e0e
Parents:
3685bb6
Message:

Placed home page (when available) and download links for all packages.

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

Location:
stylesheets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs.css

    r3685bb6 rf6abc2a  
    214214div.variablelist dd p {
    215215  margin-top: 0px;
     216  margin-bottom: 0px;
     217  padding-top: 0px;
     218  padding-bottom: 0px;
    216219}
    217220
  • stylesheets/pdf/lfs-mixed.xsl

    r3685bb6 rf6abc2a  
    66
    77
    8     <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage 
    9       tags should be placed in the XML source only to render the PDF output and 
     8    <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage
     9      tags should be placed in the XML source only to render the PDF output and
    1010      should be removed after it. But there is no a better way and we need this.-->
    1111  <xsl:template match="beginpage">
    1212    <fo:block break-after="page"/>
    1313  </xsl:template>
    14  
    15     <!-- Allow forced line breaks inside paragraphs emulating literallayout. -->
     14
     15    <!-- Allow forced line breaks inside paragraphs emulating literallayout
     16    and to remove vertical space in pachages and patches pages. -->
    1617 <xsl:template match="para">
    1718    <xsl:choose>
     
    2223                    text-align="start"
    2324                    linefeed-treatment="preserve">
     25          <xsl:call-template name="anchor"/>
     26          <xsl:apply-templates/>
     27        </fo:block>
     28      </xsl:when>
     29      <xsl:when test="ancestor::variablelist/@role = 'materials'">
     30        <fo:block>
     31          <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>
     32          <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
     33          <xsl:attribute name="space-before.maximum">0.2em</xsl:attribute>
    2434          <xsl:call-template name="anchor"/>
    2535          <xsl:apply-templates/>
     
    218228    <!-- Addibg a bullet, and left alignament, for packages and paches list. -->
    219229
    220 <xsl:template match="varlistentry" mode="vl.as.blocks">
    221   <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
    222   <xsl:choose>
    223     <xsl:when test="ancestor::variablelist/@role = 'materials'">
    224       <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
    225           keep-together.within-column="always"
    226           keep-with-next.within-column="always" text-align="left">
    227         <xsl:text>&#x2022;   </xsl:text>
    228         <xsl:apply-templates select="term"/>
    229       </fo:block>
    230       <fo:block margin-left="1.4pc" text-align="left">
    231         <xsl:apply-templates select="listitem"/>
    232       </fo:block>
    233     </xsl:when>
    234     <xsl:otherwise>
    235       <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
    236           keep-together.within-column="always"
    237           keep-with-next.within-column="always">
    238         <xsl:apply-templates select="term"/>
    239       </fo:block>
    240       <fo:block margin-left="0.25in">
    241         <xsl:apply-templates select="listitem"/>
    242       </fo:block>
    243     </xsl:otherwise>
    244   </xsl:choose>
    245 </xsl:template>
     230  <xsl:template match="varlistentry" mode="vl.as.blocks">
     231    <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
     232    <xsl:choose>
     233      <xsl:when test="ancestor::variablelist/@role = 'materials'">
     234        <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
     235            keep-together.within-column="always"
     236            keep-with-next.within-column="always" text-align="left">
     237          <xsl:text>&#x2022;   </xsl:text>
     238          <xsl:apply-templates select="term"/>
     239        </fo:block>
     240        <fo:block margin-left="1.4pc" text-align="left">
     241          <xsl:apply-templates select="listitem"/>
     242        </fo:block>
     243      </xsl:when>
     244      <xsl:otherwise>
     245        <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
     246            keep-together.within-column="always"
     247            keep-with-next.within-column="always">
     248          <xsl:apply-templates select="term"/>
     249        </fo:block>
     250        <fo:block margin-left="0.25in">
     251          <xsl:apply-templates select="listitem"/>
     252        </fo:block>
     253      </xsl:otherwise>
     254    </xsl:choose>
     255  </xsl:template>
    246256
    247257</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.