commit 03e1e0060bf3c133c63de04c7f8d6cabba8e17dd
parent 2a13dbc5be2e85e6ee54b4e0b1abb9e6f25a96aa
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 12 Nov 2025 11:22:02 +0100
Enrichment of the CSS file for formatting manuals
Manual pages are formatted like those on the OpenBSD website, which
served as a model for this style sheet.
Diffstat:
| M | example/sty.css | | | 119 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 119 insertions(+), 0 deletions(-)
diff --git a/example/sty.css b/example/sty.css
@@ -160,3 +160,122 @@ td {
font-weight: normal;
text-decoration: none;
}
+
+/*******************************************************************************
+ * Mandoc
+ * CSS derivative written by Ingo Schwarze <schwarze@openbsd.org> for
+ * OpenBSD man pages
+ ******************************************************************************/
+.manual-text {
+ margin-left: 3.75em;
+}
+
+h1.Sh {
+ font-size: 1.5em;
+ margin-left: -2.5em;
+}
+
+h2.Ss {
+ font-size: 1.5em;
+ margin-left: -1.25em;
+ border-bottom: none;
+}
+
+code.In, code.Nm, .Cm, .Fd, .Fl, .Fn, .Ic {
+ font-style: normal;
+ font-weight: bold;
+}
+
+.Nm {
+ text-align: left;
+}
+
+.permalink {
+ border-bottom: thin dotted;
+ color: inherit;
+ font: inherit;
+ text-decoration: inherit;
+}
+
+.Nd, .Bf, .Op { display: inline; }
+.Pa, .Ad { font-style: italic; }
+.Ms { font-weight: bold; }
+
+/* Tables */
+table.head, table.foot { width: 100%; border-spacing: 0; }
+table.head { padding-top: 2em }
+td.head-rtitle, td.foot-os { text-align: right; }
+td.head-vol { text-align: center; }
+td.head-ltitle { margin: 0em; padding: 0em; text-align: left; }
+
+
+/* Display and lists */
+.Bd code { font-size: 0.832em; }
+.Bd-indent { margin-left: 3.0em; }
+.Bd-indent pre { margin-left: 0em; }
+.Bl-bullet { list-style-type: disc; padding-left: 1em; }
+.Bl-bullet > li { }
+.Bl-dash { list-style-type: none; padding-left: 0em; }
+.Bl-dash > li { text-indent: -1.3em; }
+.Bl-dash > li:before { content: "\2014 "; }
+.Bl-item { list-style-type: none; padding-left: 0em; }
+.Bl-item > li { }
+.Bl-compact > li { margin-top: 0em; }
+.Bl-enum { padding-left: 2em; }
+.Bl-enum > li { }
+.Bl-compact > li { margin-top: 0em; }
+.Bl-diag { }
+.Bl-diag > dt { font-style: normal; font-weight: bold; }
+.Bl-diag > dd { margin-left: 0em; }
+.Bl-hang { }
+.Bl-hang > dt { }
+.Bl-hang > dd { margin-left: 5.5em; }
+.Bl-inset { }
+.Bl-inset > dt { }
+.Bl-inset > dd { margin-left: 0em; }
+.Bl-ohang { }
+.Bl-ohang > dt { }
+.Bl-ohang > dd { margin-left: 0em; }
+.Bl-tag { margin-top: 0.6em; margin-left: 3.25em; }
+.Bl-tag > dt {
+ float: left;
+ margin-top: 0em;
+ margin-left: -3.25em;
+ padding-right: 0.5em;
+ vertical-align: top;
+}
+.Bl-tag > dd {
+ clear: right;
+ column-count: 1; /* Force block formatting context. */
+ width: 100%;
+ margin-top: 0em;
+ margin-left: 0em;
+ margin-bottom: 0.6em;
+ vertical-align: top;
+}
+.Bl-compact { margin-top: 0em; }
+.Bl-compact > dd { margin-bottom: 0em; }
+.Bl-compact > dt { margin-top: 0em; }
+.Bl-column { }
+.Bl-column > tbody > tr { }
+.Bl-column > tbody > tr > td { margin-top: 1em; }
+.Bl-compact > tbody > tr > td { margin-top: 0em; }
+.Rs { font-style: normal; font-weight: normal; }
+.RsA { }
+.RsB { font-style: italic; font-weight: normal; }
+.RsC { }
+.RsD { }
+.RsI { font-style: italic; font-weight: normal; }
+.RsJ { font-style: italic; font-weight: normal; }
+.RsN { }
+.RsO { }
+.RsP { }
+.RsQ { }
+.RsR { }
+.RsT { text-decoration: underline; }
+.RsU { }
+.RsV { }
+
+.eqn { }
+.tbl td { vertical-align: middle; }
+.HP { margin-left: 3.8em; text-indent: -3.8em; }