1113908Sdes/* $Id: example.style.css,v 1.49 2011/12/15 12:18:57 kristaps Exp $ */ 2113908Sdes/* 3113908Sdes * This is an example style-sheet provided for mandoc(1) and the -Thtml 4113908Sdes * or -Txhtml output mode. 5113908Sdes * It mimics the appearance of the legacy man.cgi output. 6113908Sdes * See mdoc(7) and man(7) for macro explanations. 7113908Sdes */ 8113908Sdes 9113908Sdesdiv.mandoc { min-width: 102ex; 10113908Sdes width: 102ex; 11113908Sdes font-family: monospace; } /* This is the outer node of all mandoc -T[x]html documents. */ 12113908Sdesdiv.mandoc h1 { margin-bottom: 0ex; font-size: inherit; margin-left: -4ex; } /* Section header (Sh, SH). */ 13124208Sdesdiv.mandoc h2 { margin-bottom: 0ex; font-size: inherit; margin-left: -2ex; } /* Sub-section header (Ss, SS). */ 14113908Sdesdiv.mandoc table { width: 100%; margin-top: 0ex; margin-bottom: 0ex; } /* All tables. */ 15113908Sdesdiv.mandoc td { vertical-align: top; } /* All table cells. */ 16113908Sdesdiv.mandoc p { } /* Paragraph: Pp, Lp. */ 17113908Sdesdiv.mandoc blockquote { margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1, Dl. */ 18113908Sdesdiv.mandoc div.section { margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */ 19113908Sdesdiv.mandoc div.subsection { } /* Sub-sections (Ss, SS). */ 20113908Sdesdiv.mandoc table.synopsis { } /* SYNOPSIS section table. */ 21113908Sdesdiv.mandoc table.foot { } /* Document footer. */ 22113908Sdesdiv.mandoc td.foot-date { width: 50%; } /* Document footer: date. */ 23113908Sdesdiv.mandoc td.foot-os { width: 50%; text-align: right; } /* Document footer: OS/source. */ 24113908Sdesdiv.mandoc table.head { } /* Document header. */ 25113908Sdesdiv.mandoc td.head-ltitle { width: 10%; } /* Document header: left-title. */ 26113908Sdesdiv.mandoc td.head-vol { width: 80%; text-align: center; } /* Document header: volume. */ 27113908Sdesdiv.mandoc td.head-rtitle { width: 10%; text-align: right; } /* Document header: right-title. */ 28113908Sdesdiv.mandoc .display { } /* All Bd, D1, Dl. */ 29124208Sdesdiv.mandoc .list { } /* All Bl. */ 30113908Sdesdiv.mandoc i { } /* Italic: BI, IB, I, (implicit). */ 31113908Sdesdiv.mandoc b { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */ 32113908Sdesdiv.mandoc small { } /* Small: SB, SM. */ 33124208Sdesdiv.mandoc .emph { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */ 34113908Sdesdiv.mandoc .symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */ 35113908Sdesdiv.mandoc .lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */ 36113908Sdesdiv.mandoc i.addr { font-weight: normal; } /* Address (Ad). */ 37124208Sdesdiv.mandoc i.arg { font-weight: normal; } /* Command argument (Ar). */ 38113908Sdesdiv.mandoc span.author { } /* Author name (An). */ 39113908Sdesdiv.mandoc b.cmd { font-style: normal; } /* Command (Cm). */ 40113908Sdesdiv.mandoc b.config { font-style: normal; } /* Config statement (Cd). */ 41113908Sdesdiv.mandoc span.define { } /* Defines (Dv). */ 42113908Sdesdiv.mandoc span.desc { } /* Nd. After em-dash. */ 43113908Sdesdiv.mandoc b.diag { font-style: normal; } /* Diagnostic (Bl -diag). */ 44113908Sdesdiv.mandoc span.env { } /* Environment variables (Ev). */ 45113908Sdesdiv.mandoc span.errno { } /* Error string (Er). */ 46113908Sdesdiv.mandoc i.farg { font-weight: normal; } /* Function argument (Fa, Fn). */ 47124208Sdesdiv.mandoc i.file { font-weight: normal; } /* File (Pa). */ 48124208Sdesdiv.mandoc b.flag { font-style: normal; } /* Flag (Fl, Cm). */ 49124208Sdesdiv.mandoc b.fname { font-style: normal; } /* Function name (Fa, Fn, Rv). */ 50113908Sdesdiv.mandoc i.ftype { font-weight: normal; } /* Function types (Ft, Fn). */ 51113908Sdesdiv.mandoc b.includes { font-style: normal; } /* Header includes (In). */ 52113908Sdesdiv.mandoc span.lib { } /* Library (Lb). */ 53113908Sdesdiv.mandoc i.link-sec { font-weight: normal; } /* Section links (Sx). */ 54113908Sdesdiv.mandoc b.macro { font-style: normal; } /* Macro-ish thing (Fd). */ 55113908Sdesdiv.mandoc b.name { font-style: normal; } /* Name of utility (Nm). */ 56113908Sdesdiv.mandoc span.opt { } /* Options (Op, Oo/Oc). */ 57113908Sdesdiv.mandoc span.ref { } /* Citations (Rs). */ 58113908Sdesdiv.mandoc span.ref-auth { } /* Reference author (%A). */ 59113908Sdesdiv.mandoc i.ref-book { font-weight: normal; } /* Reference book (%B). */ 60113908Sdesdiv.mandoc span.ref-city { } /* Reference city (%C). */ 61113908Sdesdiv.mandoc span.ref-date { } /* Reference date (%D). */ 62113908Sdesdiv.mandoc i.ref-issue { font-weight: normal; } /* Reference issuer/publisher (%I). */ 63113908Sdesdiv.mandoc i.ref-jrnl { font-weight: normal; } /* Reference journal (%J). */ 64113908Sdesdiv.mandoc span.ref-num { } /* Reference number (%N). */ 65113908Sdesdiv.mandoc span.ref-opt { } /* Reference optionals (%O). */ 66113908Sdesdiv.mandoc span.ref-page { } /* Reference page (%P). */ 67113908Sdesdiv.mandoc span.ref-corp { } /* Reference corporate/foreign author (%Q). */ 68113908Sdesdiv.mandoc span.ref-rep { } /* Reference report (%R). */ 69113908Sdesdiv.mandoc span.ref-title { text-decoration: underline; } /* Reference title (%T). */ 70113908Sdesdiv.mandoc span.ref-vol { } /* Reference volume (%V). */ 71113908Sdesdiv.mandoc span.type { font-style: italic; font-weight: normal; } /* Variable types (Vt). */ 72113908Sdesdiv.mandoc span.unix { } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */ 73113908Sdesdiv.mandoc b.utility { font-style: normal; } /* Name of utility (Ex). */ 74113908Sdesdiv.mandoc b.var { font-style: normal; } /* Variables (Rv). */ 75113908Sdesdiv.mandoc a.link-ext { } /* Off-site link (Lk). */ 76113908Sdesdiv.mandoc a.link-includes { } /* Include-file link (In). */ 77113908Sdesdiv.mandoc a.link-mail { } /* Mailto links (Mt). */ 78113908Sdesdiv.mandoc a.link-man { } /* Manual links (Xr). */ 79113908Sdesdiv.mandoc a.link-ref { } /* Reference section links (%Q). */ 80113908Sdesdiv.mandoc a.link-sec { } /* Section links (Sx). */ 81113908Sdesdiv.mandoc dl.list-diag { } /* Formatting for lists. See mdoc(7). */ 82113908Sdesdiv.mandoc dt.list-diag { } 83113908Sdesdiv.mandoc dd.list-diag { } 84113908Sdesdiv.mandoc dl.list-hang { } 85113908Sdesdiv.mandoc dt.list-hang { } 86113908Sdesdiv.mandoc dd.list-hang { } 87113908Sdesdiv.mandoc dl.list-inset { } 88113908Sdesdiv.mandoc dt.list-inset { } 89113908Sdesdiv.mandoc dd.list-inset { } 90113908Sdesdiv.mandoc dl.list-ohang { } 91113908Sdesdiv.mandoc dt.list-ohang { } 92113908Sdesdiv.mandoc dd.list-ohang { margin-left: 0ex; } 93113908Sdesdiv.mandoc dl.list-tag { } 94113908Sdesdiv.mandoc dt.list-tag { } 95113908Sdesdiv.mandoc dd.list-tag { } 96113908Sdesdiv.mandoc table.list-col { } 97113908Sdesdiv.mandoc tr.list-col { } 98113908Sdesdiv.mandoc td.list-col { } 99113908Sdesdiv.mandoc ul.list-bul { list-style-type: disc; padding-left: 1em; } 100113908Sdesdiv.mandoc li.list-bul { } 101113908Sdesdiv.mandoc ul.list-dash { list-style-type: none; padding-left: 0em; } 102113908Sdesdiv.mandoc li.list-dash:before { content: "\2014 "; } 103113908Sdesdiv.mandoc ul.list-hyph { list-style-type: none; padding-left: 0em; } 104113908Sdesdiv.mandoc li.list-hyph:before { content: "\2013 "; } 105113908Sdesdiv.mandoc ul.list-item { list-style-type: none; padding-left: 0em; } 106113908Sdesdiv.mandoc li.list-item { } 107113908Sdesdiv.mandoc ol.list-enum { padding-left: 2em; } 108113908Sdesdiv.mandoc li.list-enum { } 109113908Sdesdiv.mandoc span.eqn { } /* Equation modes. See eqn(7). */ 110113908Sdesdiv.mandoc table.tbl { } /* Table modes. See tbl(7). */ 111113908Sdes