[BACK]Return to style.css CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/style.css, Revision 1.31

1.31    ! schwarze    1: /* $Id: style.css,v 1.30 2014/09/27 11:16:24 kristaps Exp $ */
1.12      kristaps    2:
1.22      kristaps    3: /*
                      4:  * This is an example style-sheet provided for mandoc(1) and the -Thtml
                      5:  * or -Txhtml output mode.
                      6:  *
                      7:  * It mimics the appearance of the traditional cvsweb output.
                      8:  *
                      9:  * See mdoc(7) and man(7) for macro explanations.
                     10:  */
                     11:
1.23      kristaps   12: html           { max-width: 880px; margin-left: 1em; }
1.22      kristaps   13: body           { font-size: smaller; font-family: Helvetica,Arial,sans-serif; }
                     14: h1             { margin-bottom: 1ex; font-size: 110%; margin-left: -4ex; } /* Section header (Sh, SH). */
                     15: h2             { margin-bottom: 1ex; font-size: 105%; margin-left: -2ex; } /* Sub-section header (Ss, SS). */
                     16: table          { width: 100%; margin-top: 0ex; margin-bottom: 0ex; } /* All tables. */
                     17: td             { vertical-align: top; } /* All table cells. */
                     18: p              { } /* Paragraph: Pp, Lp. */
1.24      kristaps   19: blockquote     { margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1. */
1.22      kristaps   20: div.section    { margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */
                     21: div.subsection { } /* Sub-sections (Ss, SS). */
                     22: table.synopsis { } /* SYNOPSIS section table. */
1.30      kristaps   23: div.spacer     { margin: 1em 0; }
1.15      kristaps   24:
                     25: /* Preamble structure. */
                     26:
1.22      kristaps   27: table.foot     { font-size: smaller; margin-top: 1em; border-top: 1px dotted #dddddd; } /* Document footer. */
1.15      kristaps   28: td.foot-date   { width: 50%; } /* Document footer: date. */
1.28      kristaps   29: td.foot-os     { width: 50%; } /* Document footer: OS/source. */
1.22      kristaps   30: table.head     { font-size: smaller; margin-bottom: 1em; border-bottom: 1px dotted #dddddd; } /* Document header. */
1.15      kristaps   31: td.head-ltitle { width: 10%; } /* Document header: left-title. */
1.29      kristaps   32: td.head-vol    { width: 80%; } /* Document header: volume. */
1.28      kristaps   33: td.head-rtitle { width: 10%; } /* Document header: right-title. */
1.15      kristaps   34:
                     35: /* General font modes. */
                     36:
1.22      kristaps   37: i              { } /* Italic: BI, IB, I, (implicit). */
1.27      schwarze   38: .emph          { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */
1.22      kristaps   39: b              { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
1.15      kristaps   40: .symb          { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */
1.22      kristaps   41: small          { } /* Small: SB, SM. */
1.25      kristaps   42: .lit           { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */
1.15      kristaps   43:
                     44: /* Block modes. */
                     45:
1.22      kristaps   46: .display       { } /* Top of all Bd, D1, Dl. */
1.15      kristaps   47: .list          { } /* Top of all Bl. */
                     48:
                     49: /* Context-specific modes. */
                     50:
1.17      kristaps   51: i.addr         { font-weight: normal; } /* Address (Ad). */
                     52: i.arg          { font-weight: normal; } /* Command argument (Ar). */
1.11      kristaps   53: span.author    { } /* Author name (An). */
1.31    ! schwarze   54: b.cmd          { font-style: normal; } /* Command (Cm). */
1.17      kristaps   55: b.config       { font-style: normal; } /* Config statement (Cd). */
1.11      kristaps   56: span.define    { } /* Defines (Dv). */
                     57: span.desc      { } /* Nd.  After em-dash. */
1.17      kristaps   58: b.diag         { font-style: normal; } /* Diagnostic (Bl -diag). */
1.11      kristaps   59: span.env       { } /* Environment variables (Ev). */
                     60: span.errno     { } /* Error string (Er). */
1.17      kristaps   61: i.farg         { font-weight: normal; } /* Function argument (Fa, Fn). */
                     62: i.file         { font-weight: normal; } /* File (Pa). */
                     63: b.flag         { font-style: normal; } /* Flag (Fl, Cm). */
                     64: b.fname                { font-style: normal; } /* Function name (Fa, Fn, Rv). */
                     65: i.ftype                { font-weight: normal; } /* Function types (Ft, Fn). */
                     66: b.includes     { font-style: normal; } /* Header includes (In). */
1.11      kristaps   67: span.lib       { } /* Library (Lb). */
1.21      kristaps   68: i.link-sec     { font-weight: normal; } /* Section links (Sx). */
1.17      kristaps   69: b.macro                { font-style: normal; } /* Macro-ish thing (Fd). */
1.22      kristaps   70: b.name         { font-style: normal; } /* Name of utility (Nm). */
1.11      kristaps   71: span.opt       { } /* Options (Op, Oo/Oc). */
                     72: span.ref       { } /* Citations (Rs). */
                     73: span.ref-auth  { } /* Reference author (%A). */
1.17      kristaps   74: i.ref-book     { font-weight: normal; } /* Reference book (%B). */
1.11      kristaps   75: span.ref-city  { } /* Reference city (%C). */
                     76: span.ref-date  { } /* Reference date (%D). */
1.17      kristaps   77: i.ref-issue    { font-weight: normal; } /* Reference issuer/publisher (%I). */
                     78: i.ref-jrnl     { font-weight: normal; } /* Reference journal (%J). */
1.11      kristaps   79: span.ref-num   { } /* Reference number (%N). */
                     80: span.ref-opt   { } /* Reference optionals (%O). */
                     81: span.ref-page  { } /* Reference page (%P). */
                     82: span.ref-corp  { } /* Reference corporate/foreign author (%Q). */
                     83: span.ref-rep   { } /* Reference report (%R). */
1.19      kristaps   84: span.ref-title { text-decoration: underline; } /* Reference title (%T). */
1.11      kristaps   85: span.ref-vol   { } /* Reference volume (%V). */
1.15      kristaps   86: span.type      { font-style: italic; font-weight: normal; } /* Variable types (Vt). */
1.11      kristaps   87: span.unix      { } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */
1.17      kristaps   88: b.utility      { font-style: normal; } /* Name of utility (Ex). */
                     89: b.var          { font-style: normal; } /* Variables (Rv). */
1.11      kristaps   90:
1.22      kristaps   91: a.link-ext     { } /* Off-site link (Lk). */
1.12      kristaps   92: a.link-includes        { } /* Include-file link (In). */
1.22      kristaps   93: a.link-mail    { } /* Mailto links (Mt). */
1.11      kristaps   94: a.link-man     { } /* Manual links (Xr). */
1.15      kristaps   95: a.link-ref     { } /* Reference section links (%Q). */
1.22      kristaps   96: a.link-sec     { } /* Section links (Sx). */
1.11      kristaps   97:
1.22      kristaps   98: /* Formatting for lists.  See mdoc(7). */
1.15      kristaps   99:
                    100: dl.list-diag   { }
                    101: dt.list-diag   { }
                    102: dd.list-diag   { }
                    103:
                    104: dl.list-hang   { }
                    105: dt.list-hang   { }
                    106: dd.list-hang   { }
                    107:
                    108: dl.list-inset  { }
                    109: dt.list-inset  { }
                    110: dd.list-inset  { }
                    111:
                    112: dl.list-ohang  { }
                    113: dt.list-ohang  { }
1.22      kristaps  114: dd.list-ohang  { margin-left: 0ex; }
1.15      kristaps  115:
                    116: dl.list-tag    { }
                    117: dt.list-tag    { }
                    118: dd.list-tag    { }
                    119:
                    120: table.list-col { }
                    121: tr.list-col    { }
                    122: td.list-col    { }
                    123:
                    124: ul.list-bul    { list-style-type: disc; padding-left: 1em; }
                    125: li.list-bul    { }
                    126:
                    127: ul.list-dash   { list-style-type: none; padding-left: 0em; }
                    128: li.list-dash:before { content: "\2014  "; }
                    129:
                    130: ul.list-hyph   { list-style-type: none; padding-left: 0em; }
                    131: li.list-hyph:before { content: "\2013  "; }
                    132:
                    133: ul.list-item   { list-style-type: none; padding-left: 0em; }
                    134: li.list-item   { }
1.1       kristaps  135:
1.15      kristaps  136: ol.list-enum   { padding-left: 2em; }
                    137: li.list-enum   { }
1.21      kristaps  138:
                    139: /* Equation modes.  See eqn(7). */
                    140:
                    141: span.eqn       { }
                    142:
                    143: /* Table modes.  See tbl(7). */
                    144:
                    145: table.tbl      { }

CVSweb