summaryrefslogtreecommitdiffstats
path: root/mandoc.css
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-08 17:52:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-08 17:52:55 +0000
commit27b5397ef778977ba431cfc9a8f7e6ab32c327cd (patch)
tree2cd54d199eac81b3bccd6029d41f9fd341944e34 /mandoc.css
parentf29719896cdc0f349a05bdd836e409f60174c4af (diff)
downloadmandoc-27b5397ef778977ba431cfc9a8f7e6ab32c327cd.tar.gz
Switch the emitted HTML element from <b> to <code> for the fixed
syntax element macros .Nm, .Fl, .Cm, .Ic, .In, .Fd, .Fn, and .Cd. Adjust both the internal and external style sheets such that rendering remains unchanged in typical browsers. Based on feedback from John Gardner <gardnerjohng at gmail dot com>.
Diffstat (limited to 'mandoc.css')
-rw-r--r--mandoc.css32
1 files changed, 24 insertions, 8 deletions
diff --git a/mandoc.css b/mandoc.css
index 4dc48580..950fa7a1 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -145,13 +145,21 @@ table.tbl { }
/* Semantic markup for command line utilities. */
table.Nm { }
-b.Nm { font-style: normal; }
-b.Fl { font-style: normal; }
-b.Cm { font-style: normal; }
+code.Nm { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+code.Fl { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+code.Cm { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
var.Ar { font-style: italic;
font-weight: normal; }
span.Op { }
-b.Ic { font-style: normal; }
+code.Ic { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
code.Ev { font-style: normal;
font-weight: normal;
font-family: monospace; }
@@ -160,12 +168,18 @@ i.Pa { font-weight: normal; }
/* Semantic markup for function libraries. */
span.Lb { }
-b.In { font-style: normal; }
+code.In { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
a.In { }
-b.Fd { font-style: normal; }
+code.Fd { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
var.Ft { font-style: italic;
font-weight: normal; }
-b.Fn { font-style: normal; }
+code.Fn { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
var.Fa { font-style: italic;
font-weight: normal; }
var.Vt { font-style: italic;
@@ -184,7 +198,9 @@ code.Er { font-style: normal;
span.An { }
a.Lk { }
a.Mt { }
-b.Cd { font-style: normal; }
+code.Cd { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
i.Ad { font-weight: normal; }
b.Ms { font-style: normal; }
span.St { }