diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-06-10 16:15:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-06-10 16:15:43 +0000 |
commit | 9eb1a73b1c8fa4ca949849507ca93a8d30ca5cbb (patch) | |
tree | 851ad58844718f77ef9e8939d56255364edcb7cc /mandoc.css | |
parent | c44d370823355882e5013556927675ea11fa8199 (diff) | |
download | mandoc-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.css | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |