From 9eb1a73b1c8fa4ca949849507ca93a8d30ca5cbb Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 10 Jun 2018 16:15:43 +0000 Subject: 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. --- mandoc.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mandoc.css') 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; } -- cgit v1.2.3-56-ge451