From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id a67bed54 for ; Sat, 26 May 2018 15:05:11 -0500 (EST) Date: Sat, 26 May 2018 15:05:11 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Start with baby steps towards responsive design: Use a @media X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: Log Message: ----------- Start with baby steps towards responsive design: Use a @media width query to select a set of default indentations. Suggested by John Gardner . Modified Files: -------------- mandoc: mandoc.css Revision Data ------------- Index: mandoc.css =================================================================== RCS file: /home/cvs/mandoc/mandoc/mandoc.css,v retrieving revision 1.30 retrieving revision 1.31 diff -Lmandoc.css -Lmandoc.css -u -p -r1.30 -r1.31 --- mandoc.css +++ mandoc.css @@ -229,3 +229,17 @@ a.Ux { } .Li { font-style: normal; font-weight: normal; font-family: monospace; } + +/* Overrides to avoid excessive margins on small devices. */ + +@media (max-width: 37.5em) { +div.manual-text { + margin-left: 0.5em; } +h1.Sh, h2.Ss { margin-left: 0em; } +div.D1 { margin-left: 2em; } +dl.Bl-hang > dd { + margin-left: 2em; } +dl.Bl-tag { margin-left: 2em; } +dl.Bl-tag > dt { + margin-left: -2em; } +} -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv