aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.css
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-06-10 16:15:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-06-10 16:15:43 +0000
commit9eb1a73b1c8fa4ca949849507ca93a8d30ca5cbb (patch)
tree851ad58844718f77ef9e8939d56255364edcb7cc /mandoc.css
parentc44d370823355882e5013556927675ea11fa8199 (diff)
downloadmandoc-9eb1a73b1c8fa4ca949849507ca93a8d30ca5cbb.tar.gz
mandoc-9eb1a73b1c8fa4ca949849507ca93a8d30ca5cbb.tar.zst
mandoc-9eb1a73b1c8fa4ca949849507ca93a8d30ca5cbb.zip
In HTML output, for lists that have an -indent argument, just use
a uniform indentation in CSS adapted to the viewport width and ignore the value of the argument taken from mdoc(7). While author-specified widths somewhat work as a micro-optimization in terminal and typeset output, they are nothing but harmful in HTML style= attributes because they break responsive design, whereas using a reasonable default indent almost never results in ugly output. Admittedly, the author-specified width might occasionally look even better, but only slightly so, and only for some viewport sizes. Based on guidance provided by John Gardner.
Diffstat (limited to 'mandoc.css')
-rw-r--r--mandoc.css6
1 files changed, 3 insertions, 3 deletions
diff --git a/mandoc.css b/mandoc.css
index 925c1e38..29e47445 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -1,4 +1,4 @@
-/* $Id: mandoc.css,v 1.32 2018/05/28 15:39:25 schwarze Exp $ */
+/* $Id: mandoc.css,v 1.33 2018/06/10 16:15:43 schwarze Exp $ */
/*
* Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
*/
@@ -68,7 +68,7 @@ div.manual-text {
/* Displays and lists. */
.Bd { }
-.D1 { margin-left: 3.8em; }
+.Bd-indent { margin-left: 3.8em; }
ul.Bl-bullet { list-style-type: disc;
padding-left: 1em; }
@@ -239,7 +239,7 @@ a.In { }
div.manual-text {
margin-left: 0.5em; }
.Sh, .Ss { margin-left: 0em; }
-.D1 { margin-left: 2em; }
+.Bd-indent { margin-left: 2em; }
dl.Bl-hang > dd {
margin-left: 2em; }
dl.Bl-tag { margin-left: 2em; }