Annotation of mandoc/mandoc.css, Revision 1.47
1.47 ! schwarze 1: /* $Id: mandoc.css,v 1.46 2019/06/02 16:57:13 schwarze Exp $ */
1.1 schwarze 2: /*
1.3 schwarze 3: * Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
1.39 schwarze 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.
1.1 schwarze 9: */
10:
1.3 schwarze 11: /* Global defaults. */
12:
1.46 schwarze 13: html { max-width: 65em;
14: --bg: #FFFFFF;
15: --fg: #000000; }
16: body { background: var(--bg);
17: color: var(--fg);
18: font-family: Helvetica,Arial,sans-serif; }
19: h1 { font-size: 110%; }
1.13 schwarze 20: table { margin-top: 0em;
1.40 schwarze 21: margin-bottom: 0em;
22: border-collapse: collapse; }
1.41 schwarze 23: /* Some browsers set border-color in a browser style for tbody,
24: * but not for table, resulting in inconsistent border styling. */
25: tbody { border-color: inherit; }
26: tr { border-color: inherit; }
1.42 schwarze 27: td { vertical-align: top;
1.40 schwarze 28: padding-left: 0.2em;
1.41 schwarze 29: padding-right: 0.2em;
30: border-color: inherit; }
1.12 schwarze 31: ul, ol, dl { margin-top: 0em;
32: margin-bottom: 0em; }
33: li, dt { margin-top: 1em; }
1.18 schwarze 34:
1.36 schwarze 35: .permalink { border-bottom: thin dotted;
1.18 schwarze 36: color: inherit;
37: font: inherit;
38: text-decoration: inherit; }
1.22 schwarze 39: * { clear: both }
1.3 schwarze 40:
41: /* Search form and search results. */
42:
43: fieldset { border: thin solid silver;
44: border-radius: 1em;
45: text-align: center; }
46: input[name=expr] {
47: width: 25%; }
48:
1.11 schwarze 49: table.results { margin-top: 1em;
1.3 schwarze 50: margin-left: 2em;
51: font-size: smaller; }
52:
1.4 schwarze 53: /* Header and footer lines. */
54:
1.13 schwarze 55: table.head { width: 100%;
56: border-bottom: 1px dotted #808080;
1.4 schwarze 57: margin-bottom: 1em;
58: font-size: smaller; }
59: td.head-vol { text-align: center; }
60: td.head-rtitle {
61: text-align: right; }
62:
1.13 schwarze 63: table.foot { width: 100%;
64: border-top: 1px dotted #808080;
1.4 schwarze 65: margin-top: 1em;
66: font-size: smaller; }
1.13 schwarze 67: td.foot-os { text-align: right; }
1.4 schwarze 68:
1.5 schwarze 69: /* Sections and paragraphs. */
70:
1.36 schwarze 71: .manual-text {
1.30 schwarze 72: margin-left: 3.8em; }
1.44 schwarze 73: .Nd { }
1.45 schwarze 74: section.Sh { }
75: h1.Sh { margin-top: 1.2em;
1.35 schwarze 76: margin-bottom: 0.6em;
1.46 schwarze 77: margin-left: -3.2em; }
1.45 schwarze 78: section.Ss { }
79: h2.Ss { margin-top: 1.2em;
1.35 schwarze 80: margin-bottom: 0.6em;
1.30 schwarze 81: margin-left: -1.2em;
1.5 schwarze 82: font-size: 105%; }
1.35 schwarze 83: .Pp { margin: 0.6em 0em; }
1.32 schwarze 84: .Sx { }
85: .Xr { }
1.3 schwarze 86:
1.7 schwarze 87: /* Displays and lists. */
88:
1.32 schwarze 89: .Bd { }
1.33 schwarze 90: .Bd-indent { margin-left: 3.8em; }
1.7 schwarze 91:
1.36 schwarze 92: .Bl-bullet { list-style-type: disc;
1.8 schwarze 93: padding-left: 1em; }
1.36 schwarze 94: .Bl-bullet > li { }
95: .Bl-dash { list-style-type: none;
1.8 schwarze 96: padding-left: 0em; }
1.36 schwarze 97: .Bl-dash > li:before {
1.8 schwarze 98: content: "\2014 "; }
1.36 schwarze 99: .Bl-item { list-style-type: none;
1.8 schwarze 100: padding-left: 0em; }
1.36 schwarze 101: .Bl-item > li { }
102: .Bl-compact > li {
1.30 schwarze 103: margin-top: 0em; }
1.8 schwarze 104:
1.36 schwarze 105: .Bl-enum { padding-left: 2em; }
106: .Bl-enum > li { }
107: .Bl-compact > li {
1.30 schwarze 108: margin-top: 0em; }
1.8 schwarze 109:
1.36 schwarze 110: .Bl-diag { }
111: .Bl-diag > dt {
1.25 schwarze 112: font-style: normal;
113: font-weight: bold; }
1.36 schwarze 114: .Bl-diag > dd {
1.30 schwarze 115: margin-left: 0em; }
1.36 schwarze 116: .Bl-hang { }
117: .Bl-hang > dt { }
118: .Bl-hang > dd {
1.30 schwarze 119: margin-left: 5.5em; }
1.36 schwarze 120: .Bl-inset { }
121: .Bl-inset > dt { }
122: .Bl-inset > dd {
1.30 schwarze 123: margin-left: 0em; }
1.36 schwarze 124: .Bl-ohang { }
125: .Bl-ohang > dt { }
126: .Bl-ohang > dd {
1.30 schwarze 127: margin-left: 0em; }
1.43 schwarze 128: .Bl-tag { margin-top: 0.6em;
129: margin-left: 5.5em; }
1.36 schwarze 130: .Bl-tag > dt {
1.25 schwarze 131: float: left;
1.30 schwarze 132: margin-top: 0em;
133: margin-left: -5.5em;
1.37 schwarze 134: padding-right: 0.5em;
1.14 schwarze 135: vertical-align: top; }
1.36 schwarze 136: .Bl-tag > dd {
1.25 schwarze 137: clear: right;
1.47 ! schwarze 138: column-count: 1; /* Force block formatting context. */
1.22 schwarze 139: width: 100%;
1.30 schwarze 140: margin-top: 0em;
141: margin-left: 0em;
1.43 schwarze 142: margin-bottom: 0.6em;
1.47 ! schwarze 143: vertical-align: top; }
1.43 schwarze 144: .Bl-compact { margin-top: 0em; }
145: .Bl-compact > dd {
146: margin-bottom: 0em; }
1.36 schwarze 147: .Bl-compact > dt {
1.30 schwarze 148: margin-top: 0em; }
1.8 schwarze 149:
1.36 schwarze 150: .Bl-column { }
151: .Bl-column > tbody > tr { }
152: .Bl-column > tbody > tr > td {
1.25 schwarze 153: margin-top: 1em; }
1.36 schwarze 154: .Bl-compact > tbody > tr > td {
1.30 schwarze 155: margin-top: 0em; }
1.8 schwarze 156:
1.32 schwarze 157: .Rs { font-style: normal;
1.15 schwarze 158: font-weight: normal; }
1.32 schwarze 159: .RsA { }
160: .RsB { font-style: italic;
161: font-weight: normal; }
162: .RsC { }
163: .RsD { }
164: .RsI { font-style: italic;
165: font-weight: normal; }
166: .RsJ { font-style: italic;
167: font-weight: normal; }
168: .RsN { }
169: .RsO { }
170: .RsP { }
171: .RsQ { }
172: .RsR { }
173: .RsT { text-decoration: underline; }
174: .RsU { }
175: .RsV { }
1.9 schwarze 176:
1.32 schwarze 177: .eqn { }
1.42 schwarze 178: .tbl td { vertical-align: middle; }
1.11 schwarze 179:
1.34 schwarze 180: .HP { margin-left: 3.8em;
181: text-indent: -3.8em; }
182:
1.10 schwarze 183: /* Semantic markup for command line utilities. */
184:
185: table.Nm { }
1.24 schwarze 186: code.Nm { font-style: normal;
187: font-weight: bold;
188: font-family: inherit; }
1.32 schwarze 189: .Fl { font-style: normal;
1.24 schwarze 190: font-weight: bold;
191: font-family: inherit; }
1.32 schwarze 192: .Cm { font-style: normal;
1.24 schwarze 193: font-weight: bold;
194: font-family: inherit; }
1.32 schwarze 195: .Ar { font-style: italic;
1.16 schwarze 196: font-weight: normal; }
1.32 schwarze 197: .Op { display: inline; }
198: .Ic { font-style: normal;
1.24 schwarze 199: font-weight: bold;
200: font-family: inherit; }
1.32 schwarze 201: .Ev { font-style: normal;
1.10 schwarze 202: font-weight: normal;
203: font-family: monospace; }
1.32 schwarze 204: .Pa { font-style: italic;
1.27 schwarze 205: font-weight: normal; }
1.10 schwarze 206:
207: /* Semantic markup for function libraries. */
208:
1.32 schwarze 209: .Lb { }
1.24 schwarze 210: code.In { font-style: normal;
211: font-weight: bold;
212: font-family: inherit; }
1.10 schwarze 213: a.In { }
1.32 schwarze 214: .Fd { font-style: normal;
1.24 schwarze 215: font-weight: bold;
216: font-family: inherit; }
1.32 schwarze 217: .Ft { font-style: italic;
1.16 schwarze 218: font-weight: normal; }
1.32 schwarze 219: .Fn { font-style: normal;
1.24 schwarze 220: font-weight: bold;
221: font-family: inherit; }
1.32 schwarze 222: .Fa { font-style: italic;
1.16 schwarze 223: font-weight: normal; }
1.32 schwarze 224: .Vt { font-style: italic;
1.16 schwarze 225: font-weight: normal; }
1.32 schwarze 226: .Va { font-style: italic;
1.16 schwarze 227: font-weight: normal; }
1.32 schwarze 228: .Dv { font-style: normal;
1.10 schwarze 229: font-weight: normal;
230: font-family: monospace; }
1.32 schwarze 231: .Er { font-style: normal;
1.10 schwarze 232: font-weight: normal;
233: font-family: monospace; }
234:
235: /* Various semantic markup. */
236:
1.32 schwarze 237: .An { }
238: .Lk { }
239: .Mt { }
240: .Cd { font-style: normal;
1.24 schwarze 241: font-weight: bold;
242: font-family: inherit; }
1.32 schwarze 243: .Ad { font-style: italic;
1.28 schwarze 244: font-weight: normal; }
1.32 schwarze 245: .Ms { font-style: normal;
1.29 schwarze 246: font-weight: bold; }
1.32 schwarze 247: .St { }
248: .Ux { }
1.10 schwarze 249:
1.11 schwarze 250: /* Physical markup. */
1.7 schwarze 251:
1.26 schwarze 252: .Bf { display: inline; }
1.11 schwarze 253: .No { font-style: normal;
254: font-weight: normal; }
255: .Em { font-style: italic;
256: font-weight: normal; }
257: .Sy { font-style: normal;
258: font-weight: bold; }
1.7 schwarze 259: .Li { font-style: normal;
260: font-weight: normal;
261: font-family: monospace; }
1.44 schwarze 262:
263: /* Tooltip support. */
264:
1.45 schwarze 265: h1.Sh, h2.Ss { position: relative; }
1.44 schwarze 266: .An, .Ar, .Cd, .Cm, .Dv, .Em, .Er, .Ev, .Fa, .Fd, .Fl, .Fn, .Ft,
267: .Ic, code.In, .Lb, .Lk, .Ms, .Mt, .Nd, code.Nm, .Pa, .Rs,
268: .St, .Sx, .Sy, .Va, .Vt, .Xr {
269: display: inline-block;
270: position: relative; }
271:
272: .An::before { content: "An"; }
273: .Ar::before { content: "Ar"; }
274: .Cd::before { content: "Cd"; }
275: .Cm::before { content: "Cm"; }
276: .Dv::before { content: "Dv"; }
277: .Em::before { content: "Em"; }
278: .Er::before { content: "Er"; }
279: .Ev::before { content: "Ev"; }
280: .Fa::before { content: "Fa"; }
281: .Fd::before { content: "Fd"; }
282: .Fl::before { content: "Fl"; }
283: .Fn::before { content: "Fn"; }
284: .Ft::before { content: "Ft"; }
285: .Ic::before { content: "Ic"; }
286: code.In::before { content: "In"; }
287: .Lb::before { content: "Lb"; }
288: .Lk::before { content: "Lk"; }
289: .Ms::before { content: "Ms"; }
290: .Mt::before { content: "Mt"; }
291: .Nd::before { content: "Nd"; }
292: code.Nm::before { content: "Nm"; }
293: .Pa::before { content: "Pa"; }
294: .Rs::before { content: "Rs"; }
1.45 schwarze 295: h1.Sh::before { content: "Sh"; }
296: h2.Ss::before { content: "Ss"; }
1.44 schwarze 297: .St::before { content: "St"; }
298: .Sx::before { content: "Sx"; }
299: .Sy::before { content: "Sy"; }
300: .Va::before { content: "Va"; }
301: .Vt::before { content: "Vt"; }
302: .Xr::before { content: "Xr"; }
303:
304: .An::before, .Ar::before, .Cd::before, .Cm::before,
305: .Dv::before, .Em::before, .Er::before, .Ev::before,
306: .Fa::before, .Fd::before, .Fl::before, .Fn::before, .Ft::before,
307: .Ic::before, code.In::before, .Lb::before, .Lk::before,
308: .Ms::before, .Mt::before, .Nd::before, code.Nm::before,
309: .Pa::before, .Rs::before,
1.45 schwarze 310: h1.Sh::before, h2.Ss::before, .St::before, .Sx::before, .Sy::before,
1.44 schwarze 311: .Va::before, .Vt::before, .Xr::before {
312: opacity: 0;
313: transition: .15s ease opacity;
314: pointer-events: none;
315: position: absolute;
316: bottom: 100%;
1.46 schwarze 317: box-shadow: 0 0 .35em var(--fg);
1.44 schwarze 318: padding: .15em .25em;
319: white-space: nowrap;
320: font-family: Helvetica,Arial,sans-serif;
321: font-style: normal;
322: font-weight: bold;
1.46 schwarze 323: background: var(--bg);
324: color: var(--fg); }
1.44 schwarze 325: .An:hover::before, .Ar:hover::before, .Cd:hover::before, .Cm:hover::before,
326: .Dv:hover::before, .Em:hover::before, .Er:hover::before, .Ev:hover::before,
327: .Fa:hover::before, .Fd:hover::before, .Fl:hover::before, .Fn:hover::before,
328: .Ft:hover::before, .Ic:hover::before, code.In:hover::before,
329: .Lb:hover::before, .Lk:hover::before, .Ms:hover::before, .Mt:hover::before,
330: .Nd:hover::before, code.Nm:hover::before, .Pa:hover::before,
1.45 schwarze 331: .Rs:hover::before, h1.Sh:hover::before, h2.Ss:hover::before, .St:hover::before,
1.44 schwarze 332: .Sx:hover::before, .Sy:hover::before, .Va:hover::before, .Vt:hover::before,
333: .Xr:hover::before {
334: opacity: 1;
335: pointer-events: inherit; }
1.31 schwarze 336:
337: /* Overrides to avoid excessive margins on small devices. */
338:
339: @media (max-width: 37.5em) {
1.36 schwarze 340: .manual-text {
1.31 schwarze 341: margin-left: 0.5em; }
1.45 schwarze 342: h1.Sh, h2.Ss { margin-left: 0em; }
1.33 schwarze 343: .Bd-indent { margin-left: 2em; }
1.36 schwarze 344: .Bl-hang > dd {
1.31 schwarze 345: margin-left: 2em; }
1.36 schwarze 346: .Bl-tag { margin-left: 2em; }
347: .Bl-tag > dt {
1.31 schwarze 348: margin-left: -2em; }
1.34 schwarze 349: .HP { margin-left: 2em;
350: text-indent: -2em; }
1.46 schwarze 351: }
352:
353: /* Overrides for a dark color scheme for accessibility. */
354:
355: @media (prefers-color-scheme: dark) {
356: html { --bg: #1E1F21;
357: --fg: #EEEFF1; }
358: :link { color: #BAD7FF; }
359: :visited { color: #F6BAFF; }
1.31 schwarze 360: }
CVSweb