summaryrefslogtreecommitdiffstats
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
commit3ab9de080de77988b081d3524f26713a344fe02f (patch)
tree3713b321e9f3f4bc9d31bd756ca794339105b378
parent4d819ac3992c2ba02eaddb3de45c4bb66170aebe (diff)
downloadmandoc-3ab9de080de77988b081d3524f26713a344fe02f.tar.gz
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.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/mandoc.css b/mandoc.css
index cdbec25e..32b65e82 100644
--- a/mandoc.css
+++ b/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; }
+}