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

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

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

CVSweb