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