diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-05-26 20:04:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-05-26 20:04:41 +0000 |
commit | c5674755e00edf6c1065f3a925690b630f6e64ff (patch) | |
tree | 9f6df12a550836fc6d9d1730f5c95793d104ca0f | |
parent | 88fd92b4217d1d872b9896b2df708f75e23f9c63 (diff) | |
download | mandoc-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.css | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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; } +} |