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 | 3ab9de080de77988b081d3524f26713a344fe02f (patch) | |
tree | 3713b321e9f3f4bc9d31bd756ca794339105b378 | |
parent | 4d819ac3992c2ba02eaddb3de45c4bb66170aebe (diff) | |
download | mandoc-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.css | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; } +} |