aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-26 20:04:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-26 20:04:41 +0000
commitc5674755e00edf6c1065f3a925690b630f6e64ff (patch)
tree9f6df12a550836fc6d9d1730f5c95793d104ca0f
parent88fd92b4217d1d872b9896b2df708f75e23f9c63 (diff)
downloadmandoc-c5674755e00edf6c1065f3a925690b630f6e64ff.tar.gz
mandoc-c5674755e00edf6c1065f3a925690b630f6e64ff.tar.zst
mandoc-c5674755e00edf6c1065f3a925690b630f6e64ff.zip
Start with baby steps towards responsive design:
Use a @media width query to select a set of default indentations. Suggested by John Gardner <gardnerjohng at gmail dot com>.
-rw-r--r--mandoc.css16
1 files changed, 15 insertions, 1 deletions
diff --git a/mandoc.css b/mandoc.css
index b5e32a8c..d0337b24 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -1,4 +1,4 @@
-/* $Id: mandoc.css,v 1.30 2018/05/26 17:38:01 schwarze Exp $ */
+/* $Id: mandoc.css,v 1.31 2018/05/26 20:04:41 schwarze Exp $ */
/*
* Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
*/
@@ -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; }
+}