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