all repos — honk @ a504f3774072be850266c2ecfe95e583daba38ff

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