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

Annotation of mandoc/mandoc.css, Revision 1.4

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

CVSweb