source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: mandoc: Use em units rather than ex units for horizontal lengths.
Date: Sat, 26 May 2018 12:38:31 -0500 (EST)	[thread overview]
Message-ID: <f14dca96d14ec661@fantadrom.bsd.lv> (raw)

Log Message:
-----------
Use em units rather than ex units for horizontal lengths.
John Gardner and others tell me it produces more predictable results
and is generally considered better style.
Also use 0em instead of 0ex, in general.

Modified Files:
--------------
    mandoc:
        mandoc.css

Revision Data
-------------
Index: mandoc.css
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mandoc.css,v
retrieving revision 1.29
retrieving revision 1.30
diff -Lmandoc.css -Lmandoc.css -u -p -r1.29 -r1.30
--- mandoc.css
+++ mandoc.css
@@ -5,7 +5,7 @@
 
 /* Global defaults. */
 
-html {		max-width: 100ex; }
+html {		max-width: 65em; }
 body {		font-family: Helvetica,Arial,sans-serif; }
 table {		margin-top: 0em;
 		margin-bottom: 0em; }
@@ -52,14 +52,14 @@ td.foot-os {	text-align: right; }
 /* Sections and paragraphs. */
 
 div.manual-text {
-		margin-left: 5ex; }
+		margin-left: 3.8em; }
 h1.Sh {		margin-top: 2ex;
 		margin-bottom: 1ex;
-		margin-left: -4ex;
+		margin-left: -3.2em;
 		font-size: 110%; }
 h2.Ss {		margin-top: 2ex;
 		margin-bottom: 1ex;
-		margin-left: -2ex;
+		margin-left: -1.2em;
 		font-size: 105%; }
 div.Pp {	margin: 1ex 0ex; }
 a.Sx { }
@@ -68,7 +68,7 @@ a.Xr { }
 /* Displays and lists. */
 
 div.Bd { }
-div.D1 {	margin-left: 5ex; }
+div.D1 {	margin-left: 3.8em; }
 
 ul.Bl-bullet {	list-style-type: disc;
 		padding-left: 1em; }
@@ -81,54 +81,54 @@ ul.Bl-item {	list-style-type: none;
 		padding-left: 0em; }
 ul.Bl-item > li { }
 ul.Bl-compact > li {
-		margin-top: 0ex; }
+		margin-top: 0em; }
 
 ol.Bl-enum {	padding-left: 2em; }
 ol.Bl-enum > li { }
 ol.Bl-compact > li {
-		margin-top: 0ex; }
+		margin-top: 0em; }
 
 dl.Bl-diag { }
 dl.Bl-diag > dt {
 		font-style: normal;
 		font-weight: bold; }
 dl.Bl-diag > dd {
-		margin-left: 0ex; }
+		margin-left: 0em; }
 dl.Bl-hang { }
 dl.Bl-hang > dt { }
 dl.Bl-hang > dd {
-		margin-left: 10.2ex; }
+		margin-left: 5.5em; }
 dl.Bl-inset { }
 dl.Bl-inset > dt { }
 dl.Bl-inset > dd {
-		margin-left: 0ex; }
+		margin-left: 0em; }
 dl.Bl-ohang { }
 dl.Bl-ohang > dt { }
 dl.Bl-ohang > dd {
-		margin-left: 0ex; }
-dl.Bl-tag {	margin-left: 10.2ex; }
+		margin-left: 0em; }
+dl.Bl-tag {	margin-left: 5.5em; }
 dl.Bl-tag > dt {
 		float: left;
-		margin-top: 0ex;
-		margin-left: -10.2ex;
-		padding-right: 2ex;
+		margin-top: 0em;
+		margin-left: -5.5em;
+		padding-right: 1.2em;
 		vertical-align: top; }
 dl.Bl-tag > dd {
 		clear: right;
 		width: 100%;
-		margin-top: 0ex;
-		margin-left: 0ex;
+		margin-top: 0em;
+		margin-left: 0em;
 		vertical-align: top;
 		overflow: auto; }
 dl.Bl-compact > dt {
-		margin-top: 0ex; }
+		margin-top: 0em; }
 
 table.Bl-column { }
 table.Bl-column > tbody > tr { }
 table.Bl-column > tbody > tr > td {
 		margin-top: 1em; }
 table.Bl-compact > tbody > tr > td {
-		margin-top: 0ex; }
+		margin-top: 0em; }
 
 cite.Rs {	font-style: normal;
 		font-weight: normal; }
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

                 reply	other threads:[~2018-05-26 17:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f14dca96d14ec661@fantadrom.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).