aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.css
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-07-03 14:29:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-07-03 14:29:44 +0000
commita77bef18f1857a07c9bb3dee9c7baf792fcfe588 (patch)
tree3faa0dd7eb6463108e7e733fb70d042d1c6e0214 /mandoc.css
parent2cf172046664124e8c0589ee7e420c1008ee368e (diff)
downloadmandoc-a77bef18f1857a07c9bb3dee9c7baf792fcfe588.tar.gz
mandoc-a77bef18f1857a07c9bb3dee9c7baf792fcfe588.zip
Instead of the custom <div class="manual-text">, use the standard
HTML <main> element. The benefit is that it has the ARIA landmark role "main" by default. To ease the transition for people using their own CSS file instead of mandoc.css, retain the custom class for now. I had this idea in a discussion with Anna Vyalkova <cyber at sysrq dot in>. Patch from Anna, slightly tweaked by me.
Diffstat (limited to 'mandoc.css')
-rw-r--r--mandoc.css8
1 files changed, 3 insertions, 5 deletions
diff --git a/mandoc.css b/mandoc.css
index 0b64d80c..fded3515 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -1,4 +1,4 @@
-/* $Id: mandoc.css,v 1.49 2022/03/17 18:45:49 schwarze Exp $ */
+/* $Id: mandoc.css,v 1.50 2022/07/03 14:29:45 schwarze Exp $ */
/*
* Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
*
@@ -69,8 +69,7 @@ td.foot-os { text-align: right; }
/* Sections and paragraphs. */
-.manual-text {
- margin-left: 3.8em; }
+main { margin-left: 3.8em; }
.Nd { }
section.Sh { }
h1.Sh { margin-top: 1.2em;
@@ -338,8 +337,7 @@ h1.Sh::before, h2.Ss::before, .St::before, .Sx::before, .Sy::before,
/* Overrides to avoid excessive margins on small devices. */
@media (max-width: 37.5em) {
-.manual-text {
- margin-left: 0.5em; }
+main { margin-left: 0.5em; }
h1.Sh, h2.Ss { margin-left: 0em; }
.Bd-indent { margin-left: 2em; }
.Bl-hang > dd {