Changeset 5791


Ignore:
Timestamp:
Oct 7, 2011, 10:55:20 AM (11 years ago)
Author:
Nicklas Nordborg
Message:

References #1590: Documentation cleanup

  • New icons for tip, note, warning, etc.
  • Use rounder corners for notes, etc.
  • Create HTML files with DOCTYPE
  • Fixed white background around numbered lables in some screenshots
Location:
trunk
Files:
9 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/src/docbook/user/webclient.xml

    r5789 r5791  
    19301930        </para>
    19311931       
    1932         <figure id="webclient.figures.viewpresets">
     1932        <figure id="webclient.figures.viewpresets" float="right">
    19331933          <title>The view / presets dropdown</title>
    19341934          <screenshot>
  • trunk/lib/docbook/custom-styles/docbook/plain/css/docbook.css

    r5789 r5791  
    125125}
    126126
     127.guimenu, .guisubmenu, .guimenuitem {
     128  padding-right: 2px;
     129  padding-left: 2px;
     130}
     131
    127132.userinput, .literallayout {
    128133  font-family: monospace;
     
    221226/* ADMONITIONS ------------------------------------------------------ {{{ */
    222227
    223 div.note, div.important, div.example, div.informalexample, div.tip, div.warning, div.caution {
     228div.admonition, div.example, div.informalexample {
    224229    margin:         1em;
    225230    padding:        0.5em;
    226231    border:         1px solid gray;
    227232    background-color: #f8f8e0;
    228 }
    229 
    230 div.important th, div.note th, div.tip th, div.warning th, div.caution th {
    231     text-align:     left;
    232     border-bottom:  solid 1px gray;
    233 }
    234 
    235 div.warning div.tip, div.important div.note {
     233   border-radius: 8px;
     234   -moz-border-radius: 8px;
     235   box-shadow: 3px 3px 5px #cccccc;
     236   -moz-box-shadow: 3px 3px 5px #999999;
     237}
     238
     239div.admonition th {
     240    text-align:     left;
     241    font-size: 1.3em;
     242    xborder-bottom:  solid 1px gray;
     243}
     244
     245div.admonition div.admonition {
    236246  background-color: #ffffff;
    237 }
    238 
     247  box-shadow: 0px 0px 0px #cccccc;
     248  -moz-box-shadow: 0px 0px 0px #999999;
     249}
     250
     251div.admonition  p:first-child {
     252  margin-top: 0px;
     253}
    239254/* ------------------------------------------------------------------- }}} */
    240255
  • trunk/lib/docbook/custom-styles/docbook/plain/xsl/customized.chunked.xsl

    r5676 r5791  
    4949<xsl:param name="admon.graphics" select="1"/>
    5050<xsl:param name="admon.graphics.path">gfx/admonitions/</xsl:param>
    51 <xsl:param name="admon.graphics.extension">.gif</xsl:param>
     51<xsl:param name="admon.graphics.extension">.png</xsl:param>
    5252<xsl:param name="admon.style"></xsl:param>
    5353<xsl:param name="admonition.title.properties">text-align: left</xsl:param>
     54<xsl:param name="menuchoice.menu.separator">&#9658;</xsl:param>
    5455
    5556<xsl:param name="keep.relative.image.uris" select="false"/>
     
    6061
    6162<xsl:param name="chunker.output.encoding">utf-8</xsl:param>
     63<xsl:param name="chunker.output.doctype-public">-//W3C//DTD HTML 4.01 Transitional//EN</xsl:param>
     64<xsl:param name="chunker.output.doctype-system">http://www.w3.org/TR/html4/loose.dtd</xsl:param>
    6265<xsl:param name="chunker.output.indent">yes</xsl:param>
    6366<xsl:param name="chunker.message.nofilename">1</xsl:param>
     
    275278  </xsl:template>
    276279 
     280  <xsl:template match="*" mode="admon.graphic.width">
     281    <xsl:param name="node" select="."/>
     282    <xsl:text>32</xsl:text>
     283  </xsl:template>
     284 
     285  <xsl:template match="note|warning|tip|important|caution" mode="class.attribute">
     286    <xsl:param name="class" select="local-name(.)"/>
     287    <!-- permit customization of class attributes -->
     288    <!-- Use element name by default -->
     289    <xsl:attribute name="class">
     290      <xsl:value-of select="concat('admonition ', $class)"/>
     291    </xsl:attribute>
     292  </xsl:template>
     293 
    277294  <xsl:template match="classname">
    278295    <xsl:call-template name="inline.monoseq"/>
Note: See TracChangeset for help on using the changeset viewer.