Changeset 7860781


Ignore:
Timestamp:
May 10, 2006, 4:36:57 PM (19 years ago)
Author:
Jim Gifford <clfs@…>
Children:
e510c7f
Parents:
3d23af3
Message:

r3374@server (orig r1557): manuel | 2006-05-10 15:51:37 -0700
Updated stylesheets to match current LFS features.

Location:
stylesheets
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs.css

    r3d23af3 r7860781  
    173173}
    174174
     175div.important tt.literal, div.warning tt.literal, div.caution tt.literal {
     176  font-weight: normal;
     177}
     178
    175179/* variablelist & segmentedlist */
    176180dl {
     
    214218div.variablelist dd p {
    215219  margin-top: 0px;
     220  margin-bottom: 0px;
     221  padding-top: 0px;
     222  padding-bottom: 0px;
    216223}
    217224
     
    226233}
    227234
    228 div.package span.segtitle {
     235div.package span.segtitle, div.appendix span.segtitle {
    229236  float: left;
    230237}
    231238
    232 div.package span.seg {
     239div.package span.seg, div.appendix span.seg {
    233240  display: block;
    234241  padding-left: 14em;
     242}
     243
     244div.appendix div.segmentedlist {
     245  padding-left: 1em;
     246}
     247
     248div.appendix h2 {
     249  font-size: 133%;
     250  margin-top: 1em;
     251  margin-bottom: 0.2em;
    235252}
    236253
     
    254271div.itemizedlist {
    255272  margin-left: 1em;
     273}
     274
     275ul[compact="compact"] {
     276  list-style: none;
     277}
     278
     279ul[compact="compact"] li {
     280  margin: 0em;
     281  padding: 0em;
     282}
     283
     284ul[compact="compact"] li p {
     285  padding: 0.3em;
     286  margin: 0em;
    256287}
    257288
  • stylesheets/patcheslist.xsl

    r3d23af3 r7860781  
    1616
    1717  <xsl:template match="/">
    18     <xsl:text>#! /bin/bash&#x0a;&#x0a;</xsl:text>
    19     <xsl:text>  umask 002&#x0a;&#x0a;</xsl:text>
     18    <xsl:text>#! /bin/bash
     19
     20function copy
     21{
     22  cp $1 $2 >>copyerrs 2>&amp;1
     23}
     24
     25umask 002 &#x0a;&#x0a;</xsl:text>
     26               
    2027      <!-- Create dest.dir if it don't exist -->
    21     <xsl:text>  install -d -m 775 -g lfswww </xsl:text>
     28    <xsl:text>install -d -m 775 -g lfswww </xsl:text>
    2229    <xsl:value-of select="$dest.dir"/>
    2330    <xsl:text> &amp;&amp;&#x0a;</xsl:text>
    24     <xsl:text>  cd </xsl:text>
     31    <xsl:text>cd </xsl:text>
    2532    <xsl:value-of select="$dest.dir"/>
    2633    <xsl:text> &amp;&amp;&#x0a;&#x0a;</xsl:text>
    27       <!-- Touch a dummy patch to prevent fails if dest dir is empty, then remove old patches -->
    28     <xsl:text>  touch dummy.patch &amp;&amp;&#x0a;  rm -f *.patch &amp;&amp;&#x0a;&#x0a;</xsl:text>
     34      <!-- Remove old patches -->
     35    <xsl:text>rm -f *.patch copyerrs &amp;&amp; &#x0a;&#x0a;</xsl:text>
    2936    <xsl:apply-templates/>
    3037      <!-- Ensure correct owneship -->
    31     <xsl:text>&#x0a;  chgrp lfswww *.patch &amp;&amp;&#x0a;</xsl:text>
    32     <xsl:text>&#x0a;  exit&#x0a;</xsl:text>
     38    <xsl:text>&#x0a;chgrp lfswww *.patch &amp;&amp;&#x0a;</xsl:text>
     39    <xsl:text>
     40if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then
     41  mail -s "Missing LFS patches" lfs-book@linuxfromscratch.org &lt; copyerrs
     42fi&#x0a;&#x0a;</xsl:text>
     43         
     44    <xsl:text>exit&#x0a;</xsl:text>
    3345  </xsl:template>
    3446
     
    4759        <xsl:value-of select="$cut"/>
    4860      </xsl:variable>
    49       <xsl:text>  cp /home/httpd/www.linuxfromscratch.org/patches/downloads/</xsl:text>
     61      <xsl:text>copy /home/httpd/www.linuxfromscratch.org/patches/downloads/</xsl:text>
    5062          <xsl:value-of select="substring-before($patch.name2, '-0')"/>
    5163      <xsl:text>/</xsl:text>
  • stylesheets/pdf/lfs-mixed.xsl

    r3d23af3 r7860781  
    1313  </xsl:template>
    1414
    15     <!-- Allow forced line breaks inside paragraphs emulating literallayout. -->
     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/>
  • stylesheets/xhtml/lfs-sections.xsl

    r3d23af3 r7860781  
    5454  <xsl:param name="section.label.includes.component.label" select="1"/>
    5555
    56     <!-- Skip numeraration for sections with empty title -->
     56    <!-- Use lowercase roman numbers for sect1 in preface -->
     57  <xsl:template match="sect1" mode="label.markup">
     58    <!-- if the parent is a component, maybe label that too -->
     59    <xsl:variable name="parent.is.component">
     60      <xsl:call-template name="is.component">
     61        <xsl:with-param name="node" select=".."/>
     62      </xsl:call-template>
     63    </xsl:variable>
     64    <xsl:variable name="component.label">
     65      <xsl:if test="$section.label.includes.component.label != 0
     66                    and $parent.is.component != 0">
     67        <xsl:variable name="parent.label">
     68          <xsl:apply-templates select=".." mode="label.markup"/>
     69        </xsl:variable>
     70        <xsl:if test="$parent.label != ''">
     71          <xsl:apply-templates select=".." mode="label.markup"/>
     72          <xsl:apply-templates select=".." mode="intralabel.punctuation"/>
     73        </xsl:if>
     74      </xsl:if>
     75    </xsl:variable>
     76    <xsl:choose>
     77      <xsl:when test="@label">
     78        <xsl:value-of select="@label"/>
     79      </xsl:when>
     80      <xsl:when test="$section.autolabel != 0">
     81        <xsl:copy-of select="$component.label"/>
     82        <xsl:choose>
     83          <xsl:when test="ancestor::preface">
     84            <xsl:number format="i" count="sect1"/>
     85          </xsl:when>
     86          <xsl:otherwise>
     87            <xsl:number format="1" count="sect1"/>
     88          </xsl:otherwise>
     89        </xsl:choose>
     90      </xsl:when>
     91    </xsl:choose>
     92  </xsl:template>
     93
     94    <!-- Skip numeration for sect2 with empty title -->
    5795  <xsl:template match="sect2|sect3|sect4|sect5" mode="label.markup">
    5896    <xsl:if test="string-length(title) > 0">
  • stylesheets/xhtml/lfs-titles.xsl

    r3d23af3 r7860781  
    7979          </xsl:if>
    8080          <h2 class="{name(.)}">
    81             <xsl:apply-templates select="." mode="label.markup"/>
    82             <xsl:text>. </xsl:text>
     81            <xsl:if test="not(ancestor::preface)">
     82              <xsl:apply-templates select="." mode="label.markup"/>
     83              <xsl:text>. </xsl:text>
     84            </xsl:if>
    8385            <xsl:value-of select="title"/>
    8486          </h2>
Note: See TracChangeset for help on using the changeset viewer.