all repos — honk @ 6f3ad0cbff9c35feba3e37ffc67b4d6456e5f7a6

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