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

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

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

CVSweb