1 /* $Id: style.css,v 1.25 2011/08/26 09:03:17 kristaps Exp $ */
4 * This is an example style-sheet provided for mandoc(1) and the -Thtml
5 * or -Txhtml output mode.
7 * It mimics the appearance of the traditional cvsweb output.
9 * See mdoc(7) and man(7) for macro explanations.
12 html
{ max-width: 880px; margin-left: 1em; }
13 body
{ font-size: smaller
; font-family: Helvetica
,Arial
,sans-serif
; }
14 h1
{ margin-bottom: 1ex; font-size: 110%; margin-left: -4ex; } /* Section header (Sh, SH). */
15 h2
{ margin-bottom: 1ex; font-size: 105%; margin-left: -2ex; } /* Sub-section header (Ss, SS). */
16 table
{ width: 100%; margin-top: 0ex; margin-bottom: 0ex; } /* All tables. */
17 td
{ vertical-align: top
; } /* All table cells. */
18 p
{ } /* Paragraph: Pp, Lp. */
19 blockquote
{ margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1. */
20 div
.section
{ margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */
21 div
.subsection
{ } /* Sub-sections (Ss, SS). */
22 table
.synopsis
{ } /* SYNOPSIS section table. */
24 /* Preamble structure. */
26 table
.foot
{ font-size: smaller
; margin-top: 1em; border-top: 1px dotted
#dddddd; } /* Document footer. */
27 td
.foot-date
{ width: 50%; } /* Document footer: date. */
28 td
.foot-os
{ width: 50%; text-align: right
; } /* Document footer: OS/source. */
29 table
.head
{ font-size: smaller
; margin-bottom: 1em; border-bottom: 1px dotted
#dddddd; } /* Document header. */
30 td
.head-ltitle
{ width: 10%; } /* Document header: left-title. */
31 td
.head-vol
{ width: 80%; text-align: center
; } /* Document header: volume. */
32 td
.head-rtitle
{ width: 10%; text-align: right
; } /* Document header: right-title. */
34 /* General font modes. */
36 i
{ } /* Italic: BI, IB, I, (implicit). */
37 .emph { font-style: italic
; font-weight: normal
; } /* Emphasis: Em, Bl -emphasis. */
38 b
{ } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */
39 .symb { font-style: normal
; font-weight: bold
; } /* Symbolic: Sy, Ms, Bf -symbolic. */
40 small
{ } /* Small: SB, SM. */
41 .lit { font-style: normal
; font-weight: normal
; font-family: monospace
; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */
45 .display { } /* Top of all Bd, D1, Dl. */
46 .list { } /* Top of all Bl. */
48 /* Context-specific modes. */
50 i
.addr
{ font-weight: normal
; } /* Address (Ad). */
51 i
.arg
{ font-weight: normal
; } /* Command argument (Ar). */
52 span
.author
{ } /* Author name (An). */
53 b
.cmd
{ font-style: normal
; } /* Command (Cm). */
54 b
.config
{ font-style: normal
; } /* Config statement (Cd). */
55 span
.define
{ } /* Defines (Dv). */
56 span
.desc
{ } /* Nd. After em-dash. */
57 b
.diag
{ font-style: normal
; } /* Diagnostic (Bl -diag). */
58 span
.env
{ } /* Environment variables (Ev). */
59 span
.errno
{ } /* Error string (Er). */
60 i
.farg
{ font-weight: normal
; } /* Function argument (Fa, Fn). */
61 i
.file
{ font-weight: normal
; } /* File (Pa). */
62 b
.flag
{ font-style: normal
; } /* Flag (Fl, Cm). */
63 b
.fname
{ font-style: normal
; } /* Function name (Fa, Fn, Rv). */
64 i
.ftype
{ font-weight: normal
; } /* Function types (Ft, Fn). */
65 b
.includes
{ font-style: normal
; } /* Header includes (In). */
66 span
.lib
{ } /* Library (Lb). */
67 i
.link-sec
{ font-weight: normal
; } /* Section links (Sx). */
68 b
.macro
{ font-style: normal
; } /* Macro-ish thing (Fd). */
69 b
.name
{ font-style: normal
; } /* Name of utility (Nm). */
70 span
.opt
{ } /* Options (Op, Oo/Oc). */
71 span
.ref
{ } /* Citations (Rs). */
72 span
.ref-auth
{ } /* Reference author (%A). */
73 i
.ref-book
{ font-weight: normal
; } /* Reference book (%B). */
74 span
.ref-city
{ } /* Reference city (%C). */
75 span
.ref-date
{ } /* Reference date (%D). */
76 i
.ref-issue
{ font-weight: normal
; } /* Reference issuer/publisher (%I). */
77 i
.ref-jrnl
{ font-weight: normal
; } /* Reference journal (%J). */
78 span
.ref-num
{ } /* Reference number (%N). */
79 span
.ref-opt
{ } /* Reference optionals (%O). */
80 span
.ref-page
{ } /* Reference page (%P). */
81 span
.ref-corp
{ } /* Reference corporate/foreign author (%Q). */
82 span
.ref-rep
{ } /* Reference report (%R). */
83 span
.ref-title
{ text-decoration: underline
; } /* Reference title (%T). */
84 span
.ref-vol
{ } /* Reference volume (%V). */
85 span
.type
{ font-style: italic
; font-weight: normal
; } /* Variable types (Vt). */
86 span
.unix
{ } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */
87 b
.utility
{ font-style: normal
; } /* Name of utility (Ex). */
88 b
.var
{ font-style: normal
; } /* Variables (Rv). */
90 a
.link-ext
{ } /* Off-site link (Lk). */
91 a
.link-includes
{ } /* Include-file link (In). */
92 a
.link-mail
{ } /* Mailto links (Mt). */
93 a
.link-man
{ } /* Manual links (Xr). */
94 a
.link-ref
{ } /* Reference section links (%Q). */
95 a
.link-sec
{ } /* Section links (Sx). */
97 /* Formatting for lists. See mdoc(7). */
113 dd
.list-ohang
{ margin-left: 0ex; }
123 ul
.list-bul
{ list-style-type: disc
; padding-left: 1em; }
126 ul
.list-dash
{ list-style-type: none
; padding-left: 0em; }
127 li
.list-dash:before
{ content: "\2014 "; }
129 ul
.list-hyph
{ list-style-type: none
; padding-left: 0em; }
130 li
.list-hyph:before
{ content: "\2013 "; }
132 ul
.list-item
{ list-style-type: none
; padding-left: 0em; }
135 ol
.list-enum
{ padding-left: 2em; }
138 /* Equation modes. See eqn(7). */
142 /* Table modes. See tbl(7). */