]> git.cameronkatri.com Git - mandoc.git/blobdiff - mandoc.css
Tedu support for the -xsh4.2 argument to the mdoc(7) .St macro
[mandoc.git] / mandoc.css
index 085f5c08b26da9d3e3f26017fa3ff1e15878946b..ceac503a79f63067fb4855a0631008d57894ddf9 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mandoc.css,v 1.45 2019/03/01 10:57:18 schwarze Exp $ */
+/* $Id: mandoc.css,v 1.48 2021/03/30 19:26:20 schwarze Exp $ */
 /*
  * Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
  *
 
 /* Global defaults. */
 
-html {         max-width: 65em; }
-body {         font-family: Helvetica,Arial,sans-serif; }
+html {         max-width: 65em;
+               --bg: #FFFFFF;
+               --fg: #000000; }
+body {         background: var(--bg);
+               color: var(--fg);
+               font-family: Helvetica,Arial,sans-serif; }
+h1 {           font-size: 110%; }
 table {                margin-top: 0em;
                margin-bottom: 0em;
                border-collapse: collapse; }
@@ -26,6 +31,7 @@ td {          vertical-align: top;
 ul, ol, dl {   margin-top: 0em;
                margin-bottom: 0em; }
 li, dt {       margin-top: 1em; }
+pre {          font-family: inherit; }
 
 .permalink {   border-bottom: thin dotted;
                color: inherit;
@@ -69,8 +75,7 @@ td.foot-os {  text-align: right; }
 section.Sh { }
 h1.Sh {                margin-top: 1.2em;
                margin-bottom: 0.6em;
-               margin-left: -3.2em;
-               font-size: 110%; }
+               margin-left: -3.2em; }
 section.Ss { }
 h2.Ss {                margin-top: 1.2em;
                margin-bottom: 0.6em;
@@ -131,12 +136,12 @@ h2.Ss {           margin-top: 1.2em;
                vertical-align: top; }
 .Bl-tag > dd {
                clear: right;
+               column-count: 1;  /* Force block formatting context. */
                width: 100%;
                margin-top: 0em;
                margin-left: 0em;
                margin-bottom: 0.6em;
-               vertical-align: top;
-               overflow: auto; }
+               vertical-align: top; }
 .Bl-compact {  margin-top: 0em; }
 .Bl-compact > dd {
                margin-bottom: 0em; }
@@ -310,14 +315,14 @@ h1.Sh::before, h2.Ss::before, .St::before, .Sx::before, .Sy::before,
                pointer-events: none;
                position: absolute;
                bottom: 100%;
-               box-shadow: 0 0 .35em #000;
+               box-shadow: 0 0 .35em var(--fg);
                padding: .15em .25em;
                white-space: nowrap;
                font-family: Helvetica,Arial,sans-serif;
                font-style: normal;
                font-weight: bold;
-               color: black;
-               background: #fff; }
+               background: var(--bg);
+               color: var(--fg); }
 .An:hover::before, .Ar:hover::before, .Cd:hover::before, .Cm:hover::before,
 .Dv:hover::before, .Em:hover::before, .Er:hover::before, .Ev:hover::before,
 .Fa:hover::before, .Fd:hover::before, .Fl:hover::before, .Fn:hover::before,
@@ -345,3 +350,12 @@ h1.Sh, h2.Ss {     margin-left: 0em; }
 .HP {          margin-left: 2em;
                text-indent: -2em; }
 }
+
+/* Overrides for a dark color scheme for accessibility. */
+
+@media (prefers-color-scheme: dark) {
+html {         --bg: #1E1F21;
+               --fg: #EEEFF1; }
+:link {                color: #BAD7FF; }
+:visited {     color: #F6BAFF; }
+}