Changeset d8dc77a for stylesheets


Ignore:
Timestamp:
01/07/2005 05:52:50 AM (19 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
89adf24
Parents:
3fe8b511
Message:

Update to make th enochunks version of the book

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3218 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/blfs-nochunks.xsl

    r3fe8b511 rd8dc77a  
    328328
    329329</xsl:stylesheet>
    330 <?xml version='1.0' encoding='ISO-8859-1'?>
    331 
    332 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    333                 xmlns="http://www.w3.org/1999/xhtml"
    334                 version="1.0">
    335 
    336     <!-- We use XHTML -->
    337   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/docbook.xsl"/>
    338 
    339   <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
    340   <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
    341  
    342    <!-- Including our others customized templates -->
    343   <xsl:include href="xhtml/lfs-admon.xsl"/>
    344   <xsl:include href="xhtml/lfs-index.xsl"/>
    345   <xsl:include href="xhtml/lfs-mixed.xsl"/>
    346   <xsl:include href="xhtml/lfs-sections.xsl"/>
    347   <xsl:include href="xhtml/lfs-toc.xsl"/>
    348   <xsl:include href="xhtml/lfs-xref.xsl"/>
    349 
    350     <!-- This file contains our localization strings (for internationalization) -->
    351   <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
    352 
    353     <!-- Dropping some unwanted style attributes -->
    354   <xsl:param name="ulink.target" select="''"></xsl:param>
    355   <xsl:param name="css.decoration" select="0"></xsl:param>
    356 
    357     <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)-->
    358   <xsl:template name="sect2.titlepage">
    359     <xsl:choose>
    360       <xsl:when test="string-length(title) = 0"/>
    361       <xsl:otherwise>
    362         <div class="titlepage">
    363           <xsl:if test="@id">
    364             <a id="{@id}" name="{@id}"/>
    365           </xsl:if>
    366           <h3 class="{name(.)}">
    367             <xsl:apply-templates select="." mode="label.markup"/>
    368             <xsl:text>. </xsl:text>
    369             <xsl:value-of select="title"/>
    370           </h3>
    371         </div>
    372       </xsl:otherwise>
    373     </xsl:choose>
    374   </xsl:template>
    375 
    376     <!-- Added the role param for proper punctuation in xref calls
    377             (from lfs-titles.xsl). -->
    378   <xsl:template match="*" mode="insert.title.markup">
    379     <xsl:param name="purpose"/>
    380     <xsl:param name="xrefstyle"/>
    381     <xsl:param name="title"/>
    382     <xsl:param name="role"/>
    383     <xsl:choose>
    384       <xsl:when test="$purpose = 'xref' and titleabbrev">
    385         <xsl:apply-templates select="." mode="titleabbrev.markup"/>
    386       </xsl:when>
    387       <xsl:otherwise>
    388         <xsl:copy-of select="$title"/>
    389         <xsl:value-of select="$role"/>
    390       </xsl:otherwise>
    391     </xsl:choose>
    392   </xsl:template>
    393 
    394     <!-- The CSS Stylesheet -->
    395   <xsl:template name='user.head.content'>
    396     <style type="text/css">
    397       <xsl:text>
    398 /* Global settings */
    399 body {
    400   font-family: verdana, tahoma, helvetica, arial, sans-serif;
    401   text-align: left;
    402   background: #fff;
    403   color: #333;
    404   margin: 1em;
    405   padding: 0;
    406   font-size: 1em;
    407   line-height: 1.2em
    408 }
    409 
    410 a:link { color: #22b; }
    411 a:visited { color: #7e4988; }
    412 a:hover, a:focus { color: #d30e08; }
    413 a:active { color: #6b77b1;}
    414 
    415 /* Headers */
    416 h1, h2, b, strong {
    417   color: #000;
    418   font-weight: bold;
    419 }
    420 
    421 h3, h4, h5, h6 {
    422   color: #222;
    423 }
    424 
    425 h1 { font-size: 173%; text-align: center; }
    426 h2 { font-size: 144%; }
    427 h2.subtitle { text-align: center; }
    428 h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
    429 h4 { font-size: 110%;}
    430 h5, h6 { font-size: 110%; font-style: italic; }
    431 
    432 /* TOC and Index*/
    433 
    434 div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
    435   list-style: none;
    436 }
    437 
    438 div.toc, div.dedication {
    439   padding-left: 1em;
    440 }
    441 
    442 li.preface {
    443   margin-left: 1em;
    444 }
    445 
    446 div.toc ul li h3, div.toc ul li h4 {
    447   margin: .4em;
    448 }
    449 
    450 .item {
    451     width: 15em;
    452     float: left;
    453 }
    454 
    455 .secitem {
    456     font-weight: normal;
    457     width: 14em;
    458     float: left;
    459 }
    460 
    461 /* Admonitions */
    462 div.note, div.tip {
    463   background-color: #fffff6;
    464   border: 2px solid #dbddec;
    465   width: 90%;
    466   margin: .5em auto;
    467 }
    468 
    469 div.important, div.warning, div.caution {
    470   background-color: #fffff6;
    471   border: medium solid #400;
    472   width: 90%;
    473   margin: 1.5em auto;
    474   color: #600;
    475   font-size: larger;
    476 }
    477 
    478 div.important h3, div.warning h3, div.caution h3 {
    479   color: #900;
    480 }
    481 
    482 div.admonhead img {
    483   display: none;
    484 }
    485 
    486 h3.admontitle {
    487   padding-left: 2.5em;
    488   padding-top: 1em;
    489 }
    490 
    491 div.admonbody {
    492   margin: .5em;
    493 }
    494 
    495 div.important em, div.warning em, div.caution em {
    496   color: #000;
    497   font-weight: bold;
    498 }
    499 
    500 div.important tt, div.warning tt, div.caution tt {
    501   font-weight: bold;
    502 }
    503 
    504 /* variablelist and segmentedlist */
    505 dl {
    506   margin: 0;
    507   padding: 0;
    508 }
    509 
    510 dt {
    511   display: list-item;
    512   font-weight: bold;
    513   margin: .33em 0 0 1em;
    514   padding: 0;
    515 }
    516 
    517 div.content dt {
    518   list-style: none;
    519 }
    520 
    521 dd  {
    522   margin: 0 0 1em 3em;
    523   padding: 0;
    524 }
    525 
    526 div.variablelist dd {
    527   margin-bottom: 1em;
    528 }
    529 
    530 div.variablelist dd p {
    531   margin-top: 0px;
    532 }
    533 
    534 dl.materials dd {
    535   margin-left: 0px;
    536 }
    537 
    538 div.segmentedlist {
    539   margin-top: 1em;
    540 }
    541 
    542 div.segmentedlist p {
    543   margin: 0px auto;
    544 }
    545 
    546 /* itemizedlist */
    547 
    548 div.itemizedlist {
    549   margin-left: 1em;
    550 }
    551 
    552 div.sect3 li p {
    553   padding: 0.3em;
    554   margin: 0em;
    555   background-color: #f0fff0;
    556 }
    557 
    558 /* Indented blocks */
    559 p, ul, dl, code, blockquote {
    560   padding-left: 1em;
    561 }
    562 
    563 /* Monospaced elements */
    564 tt, code, kbd, pre, .command {
    565   font-family: monospace;
    566 }
    567 
    568 pre.userinput {
    569   color: #101310;
    570   background-color: #e5e5e5;
    571   border: 1px solid #050505;
    572   padding: .5em 1em;
    573   margin: 0 2em;
    574   font-weight: bold;
    575 }
    576 
    577 pre.screen {
    578   background-color: #e9e9e9;
    579   border: 1px solid #050505;
    580   padding: .5em 1em;
    581   margin: 0 2em;
    582 }
    583 
    584 /* Sections */
    585 div.package {
    586   background: #f5f6f7;
    587   border-bottom: 0.2em solid #dbddec;
    588   padding: 0.5em 0.5em 0.3em 0.5em;
    589   margin: 0px auto;
    590 }
    591 
    592 div.installation {
    593   padding: 0 0.5em 0.3em 0.5em;
    594   margin: 0.5em 0 0.5em 0;
    595 }
    596 
    597 div.configuration {
    598   background:   #fefefe;
    599   border-top: 0.2em solid #dbddec;
    600   padding: 0.5em;
    601   margin: 0.5em 0 .5em 0;
    602 }
    603 
    604 div.content {
    605   background: #f5f6f7;
    606   border-top: 0.2em solid #dbddec;
    607   border-bottom: 0.2em solid #dbddec;
    608   padding: 0.5em 0.5em 1em 0.5em;
    609   margin: 0.5em 0 .5em 0;
    610 }
    611 
    612 div.installation h3.title, div.content h3.title {
    613   padding-top: 0.3em;
    614   margin: 0;
    615 }
    616 
    617 div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
    618   padding-bottom: 0.5em;
    619 }
    620 
    621 div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.appendix h1, div.index h1 {
    622   background: #f5f6f7;
    623   border-bottom: .2em solid #dbddec;
    624   border-top: .2em solid #dbddec;
    625   margin-top 1em;
    626   padding: .5em;
    627   text-align: center;
    628 }
    629 
    630 div.book h1 {
    631   background: #f5f6f7;
    632   margin: 0px auto;
    633   padding: 0.5em;
    634 }
    635 
    636 div.book h2.subtitle {
    637   background: #dbddec;
    638   margin: 0px auto;
    639   padding: 0.2em;
    640 }
    641 div.authorgroup, div p.copyright, div.abstract div p.pubdate, div.revhistory {
    642   background: #f5f6f7;
    643   margin: 0px auto;
    644   padding:  1em 0.5em;
    645 }
    646 
    647 hr {
    648   background: #dbddec;
    649   height: .3em;
    650   border: 0px;
    651   margin: 0px auto;
    652   padding: 0;
    653 }
    654       </xsl:text>
    655     </style>
    656   </xsl:template>
    657 
    658 </xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.