1*0a6a1f1dSLionel Sambuc/* Id: example.style.css,v 1.49 2011/12/15 12:18:57 kristaps Exp */ 2d65f6f70SBen Gras/* 3d65f6f70SBen Gras * This is an example style-sheet provided for mandoc(1) and the -Thtml 4d65f6f70SBen Gras * or -Txhtml output mode. 592395e9cSLionel Sambuc * It mimics the appearance of the legacy man.cgi output. 6d65f6f70SBen Gras * See mdoc(7) and man(7) for macro explanations. 7d65f6f70SBen Gras */ 8d65f6f70SBen Gras 992395e9cSLionel Sambucdiv.mandoc { min-width: 102ex; 1092395e9cSLionel Sambuc width: 102ex; 1192395e9cSLionel Sambuc font-family: monospace; } /* This is the outer node of all mandoc -T[x]html documents. */ 1292395e9cSLionel Sambucdiv.mandoc h1 { margin-bottom: 0ex; font-size: inherit; margin-left: -4ex; } /* Section header (Sh, SH). */ 1392395e9cSLionel Sambucdiv.mandoc h2 { margin-bottom: 0ex; font-size: inherit; margin-left: -2ex; } /* Sub-section header (Ss, SS). */ 1492395e9cSLionel Sambucdiv.mandoc table { width: 100%; margin-top: 0ex; margin-bottom: 0ex; } /* All tables. */ 1592395e9cSLionel Sambucdiv.mandoc td { vertical-align: top; } /* All table cells. */ 1692395e9cSLionel Sambucdiv.mandoc p { } /* Paragraph: Pp, Lp. */ 1792395e9cSLionel Sambucdiv.mandoc blockquote { margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1, Dl. */ 1892395e9cSLionel Sambucdiv.mandoc div.section { margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */ 1992395e9cSLionel Sambucdiv.mandoc div.subsection { } /* Sub-sections (Ss, SS). */ 2092395e9cSLionel Sambucdiv.mandoc table.synopsis { } /* SYNOPSIS section table. */ 2192395e9cSLionel Sambucdiv.mandoc table.foot { } /* Document footer. */ 2292395e9cSLionel Sambucdiv.mandoc td.foot-date { width: 50%; } /* Document footer: date. */ 2392395e9cSLionel Sambucdiv.mandoc td.foot-os { width: 50%; text-align: right; } /* Document footer: OS/source. */ 2492395e9cSLionel Sambucdiv.mandoc table.head { } /* Document header. */ 2592395e9cSLionel Sambucdiv.mandoc td.head-ltitle { width: 10%; } /* Document header: left-title. */ 2692395e9cSLionel Sambucdiv.mandoc td.head-vol { width: 80%; text-align: center; } /* Document header: volume. */ 2792395e9cSLionel Sambucdiv.mandoc td.head-rtitle { width: 10%; text-align: right; } /* Document header: right-title. */ 2892395e9cSLionel Sambucdiv.mandoc .display { } /* All Bd, D1, Dl. */ 2992395e9cSLionel Sambucdiv.mandoc .list { } /* All Bl. */ 3092395e9cSLionel Sambucdiv.mandoc i { } /* Italic: BI, IB, I, (implicit). */ 3192395e9cSLionel Sambucdiv.mandoc b { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */ 3292395e9cSLionel Sambucdiv.mandoc small { } /* Small: SB, SM. */ 3392395e9cSLionel Sambucdiv.mandoc .emph { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */ 3492395e9cSLionel Sambucdiv.mandoc .symb { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */ 3592395e9cSLionel Sambucdiv.mandoc .lit { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */ 3692395e9cSLionel Sambucdiv.mandoc i.addr { font-weight: normal; } /* Address (Ad). */ 3792395e9cSLionel Sambucdiv.mandoc i.arg { font-weight: normal; } /* Command argument (Ar). */ 3892395e9cSLionel Sambucdiv.mandoc span.author { } /* Author name (An). */ 3992395e9cSLionel Sambucdiv.mandoc b.cmd { font-style: normal; } /* Command (Cm). */ 4092395e9cSLionel Sambucdiv.mandoc b.config { font-style: normal; } /* Config statement (Cd). */ 4192395e9cSLionel Sambucdiv.mandoc span.define { } /* Defines (Dv). */ 4292395e9cSLionel Sambucdiv.mandoc span.desc { } /* Nd. After em-dash. */ 4392395e9cSLionel Sambucdiv.mandoc b.diag { font-style: normal; } /* Diagnostic (Bl -diag). */ 4492395e9cSLionel Sambucdiv.mandoc span.env { } /* Environment variables (Ev). */ 4592395e9cSLionel Sambucdiv.mandoc span.errno { } /* Error string (Er). */ 4692395e9cSLionel Sambucdiv.mandoc i.farg { font-weight: normal; } /* Function argument (Fa, Fn). */ 4792395e9cSLionel Sambucdiv.mandoc i.file { font-weight: normal; } /* File (Pa). */ 4892395e9cSLionel Sambucdiv.mandoc b.flag { font-style: normal; } /* Flag (Fl, Cm). */ 4992395e9cSLionel Sambucdiv.mandoc b.fname { font-style: normal; } /* Function name (Fa, Fn, Rv). */ 5092395e9cSLionel Sambucdiv.mandoc i.ftype { font-weight: normal; } /* Function types (Ft, Fn). */ 5192395e9cSLionel Sambucdiv.mandoc b.includes { font-style: normal; } /* Header includes (In). */ 5292395e9cSLionel Sambucdiv.mandoc span.lib { } /* Library (Lb). */ 5392395e9cSLionel Sambucdiv.mandoc i.link-sec { font-weight: normal; } /* Section links (Sx). */ 5492395e9cSLionel Sambucdiv.mandoc b.macro { font-style: normal; } /* Macro-ish thing (Fd). */ 5592395e9cSLionel Sambucdiv.mandoc b.name { font-style: normal; } /* Name of utility (Nm). */ 5692395e9cSLionel Sambucdiv.mandoc span.opt { } /* Options (Op, Oo/Oc). */ 5792395e9cSLionel Sambucdiv.mandoc span.ref { } /* Citations (Rs). */ 5892395e9cSLionel Sambucdiv.mandoc span.ref-auth { } /* Reference author (%A). */ 5992395e9cSLionel Sambucdiv.mandoc i.ref-book { font-weight: normal; } /* Reference book (%B). */ 6092395e9cSLionel Sambucdiv.mandoc span.ref-city { } /* Reference city (%C). */ 6192395e9cSLionel Sambucdiv.mandoc span.ref-date { } /* Reference date (%D). */ 6292395e9cSLionel Sambucdiv.mandoc i.ref-issue { font-weight: normal; } /* Reference issuer/publisher (%I). */ 6392395e9cSLionel Sambucdiv.mandoc i.ref-jrnl { font-weight: normal; } /* Reference journal (%J). */ 6492395e9cSLionel Sambucdiv.mandoc span.ref-num { } /* Reference number (%N). */ 6592395e9cSLionel Sambucdiv.mandoc span.ref-opt { } /* Reference optionals (%O). */ 6692395e9cSLionel Sambucdiv.mandoc span.ref-page { } /* Reference page (%P). */ 6792395e9cSLionel Sambucdiv.mandoc span.ref-corp { } /* Reference corporate/foreign author (%Q). */ 6892395e9cSLionel Sambucdiv.mandoc span.ref-rep { } /* Reference report (%R). */ 6992395e9cSLionel Sambucdiv.mandoc span.ref-title { text-decoration: underline; } /* Reference title (%T). */ 7092395e9cSLionel Sambucdiv.mandoc span.ref-vol { } /* Reference volume (%V). */ 7192395e9cSLionel Sambucdiv.mandoc span.type { font-style: italic; font-weight: normal; } /* Variable types (Vt). */ 7292395e9cSLionel Sambucdiv.mandoc span.unix { } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */ 7392395e9cSLionel Sambucdiv.mandoc b.utility { font-style: normal; } /* Name of utility (Ex). */ 7492395e9cSLionel Sambucdiv.mandoc b.var { font-style: normal; } /* Variables (Rv). */ 7592395e9cSLionel Sambucdiv.mandoc a.link-ext { } /* Off-site link (Lk). */ 7692395e9cSLionel Sambucdiv.mandoc a.link-includes { } /* Include-file link (In). */ 7792395e9cSLionel Sambucdiv.mandoc a.link-mail { } /* Mailto links (Mt). */ 7892395e9cSLionel Sambucdiv.mandoc a.link-man { } /* Manual links (Xr). */ 7992395e9cSLionel Sambucdiv.mandoc a.link-ref { } /* Reference section links (%Q). */ 8092395e9cSLionel Sambucdiv.mandoc a.link-sec { } /* Section links (Sx). */ 8192395e9cSLionel Sambucdiv.mandoc dl.list-diag { } /* Formatting for lists. See mdoc(7). */ 8292395e9cSLionel Sambucdiv.mandoc dt.list-diag { } 8392395e9cSLionel Sambucdiv.mandoc dd.list-diag { } 8492395e9cSLionel Sambucdiv.mandoc dl.list-hang { } 8592395e9cSLionel Sambucdiv.mandoc dt.list-hang { } 8692395e9cSLionel Sambucdiv.mandoc dd.list-hang { } 8792395e9cSLionel Sambucdiv.mandoc dl.list-inset { } 8892395e9cSLionel Sambucdiv.mandoc dt.list-inset { } 8992395e9cSLionel Sambucdiv.mandoc dd.list-inset { } 9092395e9cSLionel Sambucdiv.mandoc dl.list-ohang { } 9192395e9cSLionel Sambucdiv.mandoc dt.list-ohang { } 9292395e9cSLionel Sambucdiv.mandoc dd.list-ohang { margin-left: 0ex; } 9392395e9cSLionel Sambucdiv.mandoc dl.list-tag { } 9492395e9cSLionel Sambucdiv.mandoc dt.list-tag { } 9592395e9cSLionel Sambucdiv.mandoc dd.list-tag { } 9692395e9cSLionel Sambucdiv.mandoc table.list-col { } 9792395e9cSLionel Sambucdiv.mandoc tr.list-col { } 9892395e9cSLionel Sambucdiv.mandoc td.list-col { } 9992395e9cSLionel Sambucdiv.mandoc ul.list-bul { list-style-type: disc; padding-left: 1em; } 10092395e9cSLionel Sambucdiv.mandoc li.list-bul { } 10192395e9cSLionel Sambucdiv.mandoc ul.list-dash { list-style-type: none; padding-left: 0em; } 10292395e9cSLionel Sambucdiv.mandoc li.list-dash:before { content: "\2014 "; } 10392395e9cSLionel Sambucdiv.mandoc ul.list-hyph { list-style-type: none; padding-left: 0em; } 10492395e9cSLionel Sambucdiv.mandoc li.list-hyph:before { content: "\2013 "; } 10592395e9cSLionel Sambucdiv.mandoc ul.list-item { list-style-type: none; padding-left: 0em; } 10692395e9cSLionel Sambucdiv.mandoc li.list-item { } 10792395e9cSLionel Sambucdiv.mandoc ol.list-enum { padding-left: 2em; } 10892395e9cSLionel Sambucdiv.mandoc li.list-enum { } 10992395e9cSLionel Sambucdiv.mandoc span.eqn { } /* Equation modes. See eqn(7). */ 11092395e9cSLionel Sambucdiv.mandoc table.tbl { } /* Table modes. See tbl(7). */ 111