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

Annotation of mandoc/example.style.css, Revision 1.43

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

CVSweb