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

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

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

CVSweb