all repos — honk @ 5532561ec68842dca7943855c3fb93addd5c0d86

my fork of honk

docs/mandoc.css (view raw)

  1/* $OpenBSD: mandoc.css,v 1.33 2019/06/02 16:50:46 schwarze Exp $ */
  2/*
  3 * Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
  4 *
  5 * Written by Ingo Schwarze <schwarze@openbsd.org>.
  6 * I place this file into the public domain.
  7 * Permission to use, copy, modify, and distribute it for any purpose
  8 * with or without fee is hereby granted, without any conditions.
  9 */
 10
 11/* Global defaults. */
 12
 13html {		max-width: 65em;
 14		--bg: #002;
 15		--fg: #dde; }
 16body {		background: var(--bg);
 17		color: var(--fg);
 18		font-size: 18px;
 19		font-family: Helvetica,Arial,sans-serif; }
 20a { color: var(--fg); }
 21h1 {		font-size: 110%; }
 22table {		margin-top: 0em;
 23		margin-bottom: 0em;
 24		border-collapse: collapse; }
 25/* Some browsers set border-color in a browser style for tbody,
 26 * but not for table, resulting in inconsistent border styling. */
 27tbody {		border-color: inherit; }
 28tr {		border-color: inherit; }
 29td {		vertical-align: top;
 30		padding-left: 0.2em;
 31		padding-right: 0.2em;
 32		border-color: inherit; }
 33ul, ol, dl {	margin-top: 0em;
 34		margin-bottom: 0em; }
 35li, dt {	margin-top: 1em; }
 36
 37.permalink {	border-bottom: thin dotted;
 38		color: inherit;
 39		font: inherit;
 40		text-decoration: inherit; }
 41* {		clear: both }
 42
 43/* Search form and search results. */
 44
 45fieldset {	border: thin solid silver;
 46		border-radius: 1em;
 47		text-align: center; }
 48input[name=expr] {
 49		width: 25%; }
 50
 51table.results {	margin-top: 1em;
 52		margin-left: 2em;
 53		font-size: smaller; }
 54
 55img { max-width: 100%; }
 56
 57/* Header and footer lines. */
 58
 59table.head {	width: 100%;
 60		border-bottom: 1px dotted #808080;
 61		margin-bottom: 1em;
 62		font-size: smaller; }
 63td.head-vol {	text-align: center; }
 64td.head-rtitle {
 65		text-align: right; }
 66
 67table.foot {	width: 100%;
 68		border-top: 1px dotted #808080;
 69		margin-top: 1em;
 70		font-size: smaller; }
 71td.foot-os {	text-align: right; }
 72
 73/* Sections and paragraphs. */
 74
 75.manual-text {
 76		margin-left: 3.8em; }
 77.Nd { }
 78section.Sh { }
 79h1.Sh {		margin-top: 1.2em;
 80		margin-bottom: 0.6em;
 81		margin-left: -3.2em; }
 82section.Ss { }
 83h2.Ss {		margin-top: 1.2em;
 84		margin-bottom: 0.6em;
 85		margin-left: -1.2em;
 86		font-size: 105%; }
 87.Pp {		margin: 0.6em 0em; }
 88.Sx { }
 89.Xr { }
 90
 91/* Displays and lists. */
 92
 93.Bd { }
 94.Bd-indent {	margin-left: 3.8em; }
 95
 96.Bl-bullet {	list-style-type: disc;
 97		padding-left: 1em; }
 98.Bl-bullet > li { }
 99.Bl-dash {	list-style-type: none;
100		padding-left: 0em; }
101.Bl-dash > li:before {
102		content: "\2014  "; }
103.Bl-item {	list-style-type: none;
104		padding-left: 0em; }
105.Bl-item > li { }
106.Bl-compact > li {
107		margin-top: 0em; }
108
109.Bl-enum {	padding-left: 2em; }
110.Bl-enum > li { }
111.Bl-compact > li {
112		margin-top: 0em; }
113
114.Bl-diag { }
115.Bl-diag > dt {
116		font-style: normal;
117		font-weight: bold; }
118.Bl-diag > dd {
119		margin-left: 0em; }
120.Bl-hang { }
121.Bl-hang > dt { }
122.Bl-hang > dd {
123		margin-left: 5.5em; }
124.Bl-inset { }
125.Bl-inset > dt { }
126.Bl-inset > dd {
127		margin-left: 0em; }
128.Bl-ohang { }
129.Bl-ohang > dt { }
130.Bl-ohang > dd {
131		margin-left: 0em; }
132.Bl-tag {	margin-top: 0.6em;
133		margin-left: 5.5em; }
134.Bl-tag > dt {
135		float: left;
136		margin-top: 0em;
137		margin-left: -5.5em;
138		padding-right: 0.5em;
139		vertical-align: top; }
140.Bl-tag > dd {
141		clear: right;
142		width: 100%;
143		margin-top: 0em;
144		margin-left: 0em;
145		margin-bottom: 0.6em;
146		vertical-align: top;
147		overflow: auto; }
148.Bl-compact {	margin-top: 0em; }
149.Bl-compact > dd {
150		margin-bottom: 0em; }
151.Bl-compact > dt {
152		margin-top: 0em; }
153
154.Bl-column { }
155.Bl-column > tbody > tr { }
156.Bl-column > tbody > tr > td {
157		margin-top: 1em; }
158.Bl-compact > tbody > tr > td {
159		margin-top: 0em; }
160
161.Rs {		font-style: normal;
162		font-weight: normal; }
163.RsA { }
164.RsB {		font-style: italic;
165		font-weight: normal; }
166.RsC { }
167.RsD { }
168.RsI {		font-style: italic;
169		font-weight: normal; }
170.RsJ {		font-style: italic;
171		font-weight: normal; }
172.RsN { }
173.RsO { }
174.RsP { }
175.RsQ { }
176.RsR { }
177.RsT {		text-decoration: underline; }
178.RsU { }
179.RsV { }
180
181.eqn { }
182.tbl td {	vertical-align: middle; }
183
184.HP {		margin-left: 3.8em;
185		text-indent: -3.8em; }
186
187/* Semantic markup for command line utilities. */
188
189table.Nm { }
190code.Nm {	font-style: normal;
191		font-weight: bold;
192		font-family: inherit; }
193.Fl {		font-style: normal;
194		font-weight: bold;
195		font-family: inherit; }
196.Cm {		font-style: normal;
197		font-weight: bold;
198		font-family: inherit; }
199.Ar {		font-style: italic;
200		font-weight: normal; }
201.Op {		display: inline; }
202.Ic {		font-style: normal;
203		font-weight: bold;
204		font-family: inherit; }
205.Ev {		font-style: normal;
206		font-weight: normal;
207		font-family: monospace; }
208.Pa {		font-style: italic;
209		font-weight: normal; }
210
211/* Semantic markup for function libraries. */
212
213.Lb { }
214code.In {	font-style: normal;
215		font-weight: bold;
216		font-family: inherit; }
217a.In { }
218.Fd {		font-style: normal;
219		font-weight: bold;
220		font-family: inherit; }
221.Ft {		font-style: italic;
222		font-weight: normal; }
223.Fn {		font-style: normal;
224		font-weight: bold;
225		font-family: inherit; }
226.Fa {		font-style: italic;
227		font-weight: normal; }
228.Vt {		font-style: italic;
229		font-weight: normal; }
230.Va {		font-style: italic;
231		font-weight: normal; }
232.Dv {		font-style: normal;
233		font-weight: normal;
234		font-family: monospace; }
235.Er {		font-style: normal;
236		font-weight: normal;
237		font-family: monospace; }
238
239/* Various semantic markup. */
240
241.An { }
242.Lk { }
243.Mt { }
244.Cd {		font-style: normal;
245		font-weight: bold;
246		font-family: inherit; }
247.Ad {		font-style: italic;
248		font-weight: normal; }
249.Ms {		font-style: normal;
250		font-weight: bold; }
251.St { }
252.Ux { }
253
254/* Physical markup. */
255
256.Bf {		display: inline; }
257.No {		font-style: normal;
258		font-weight: normal; }
259.Em {		font-style: italic;
260		font-weight: normal; }
261.Sy {		font-style: normal;
262		font-weight: bold; }
263.Li {		font-style: normal;
264		font-weight: normal;
265		font-family: monospace; }
266
267/* Tooltip support. */
268
269h1.Sh, h2.Ss {	position: relative; }
270.An, .Ar, .Cd, .Cm, .Dv, .Em, .Er, .Ev, .Fa, .Fd, .Fl, .Fn, .Ft,
271.Ic, code.In, .Lb, .Lk, .Ms, .Mt, .Nd, code.Nm, .Pa, .Rs,
272.St, .Sx, .Sy, .Va, .Vt, .Xr {
273		display: inline-block;
274		position: relative; }
275
276/* Overrides to avoid excessive margins on small devices. */
277
278@media (max-width: 37.5em) {
279.manual-text {
280		margin-left: 0.5em; }
281h1.Sh, h2.Ss {	margin-left: 0em; }
282.Bd-indent {	margin-left: 2em; }
283.Bl-hang > dd {
284		margin-left: 2em; }
285.Bl-tag {	margin-left: 2em; }
286.Bl-tag > dt {
287		margin-left: -2em; }
288.HP {		margin-left: 2em;
289		text-indent: -2em; }
290}