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

Annotation of mandoc/mandoc.css, Revision 1.3

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

CVSweb