aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit8a7069d03a4019d0695562840e952404eaeb9187 (patch)
tree6f42ef90aee89e8d8f9e61c95a218173b17d3ba9 /mandoc.css
parent199eda4478d4d90df3199670dc0ab51b4bb031a6 (diff)
downloadmandoc-8a7069d03a4019d0695562840e952404eaeb9187.tar.gz
mandoc-8a7069d03a4019d0695562840e952404eaeb9187.tar.zst
mandoc-8a7069d03a4019d0695562840e952404eaeb9187.zip
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.css34
1 files changed, 25 insertions, 9 deletions
diff --git a/mandoc.css b/mandoc.css
index c1657f99..2955498b 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -1,4 +1,4 @@
-/* $Id: mandoc.css,v 1.23 2018/04/24 00:36:52 schwarze Exp $ */
+/* $Id: mandoc.css,v 1.24 2018/05/08 17:52:55 schwarze Exp $ */
/*
* Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
*/
@@ -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 { }