site

bvnf.space sources
Log | Files | Refs

commit 35a27fae1db1c51bbcf08a806ca94b39a7f03237
parent 14dcaecae22949ca495992cd93aa741e94a9ee3c
Author: phoebos <ben@bvnf.space>
Date:   Wed,  4 Jun 2025 14:04:49 +0100

update mandoc.css for 7.7

Diffstat:
Mman/mandoc.css | 83++++++++++++++++++++++++++++++++-----------------------------------------------
1 file changed, 33 insertions(+), 50 deletions(-)

diff --git a/man/mandoc.css b/man/mandoc.css @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc.css,v 1.36 2022/03/17 18:45:43 schwarze Exp $ */ +/* $OpenBSD: mandoc.css,v 1.40 2025/01/24 23:22:13 schwarze Exp $ */ /* * Standard style sheet for mandoc(1) -Thtml and man.cgi(8). * @@ -16,7 +16,7 @@ html { max-width: 65em; body { background: var(--bg); color: var(--fg); font-family: Helvetica,Arial,sans-serif; } -h1 { font-size: 110%; } +h1, h2 { font-size: 110%; } table { margin-top: 0em; margin-bottom: 0em; border-collapse: collapse; } @@ -53,31 +53,39 @@ table.results { margin-top: 1em; /* Header and footer lines. */ -table.head { width: 100%; +div[role=doc-pageheader] { + display: flex; border-bottom: 1px dotted #808080; margin-bottom: 1em; font-size: smaller; } -td.head-vol { text-align: center; } -td.head-rtitle { +.head-ltitle { flex: 1; } +.head-vol { flex: 0 1 auto; + text-align: center; } +.head-rtitle { flex: 1; text-align: right; } -table.foot { width: 100%; +div[role=doc-pagefooter] { + display: flex; + justify-content: space-between; border-top: 1px dotted #808080; margin-top: 1em; font-size: smaller; } -td.foot-os { text-align: right; } +.foot-left { flex: 1; } +.foot-date { flex: 0 1 auto; + text-align: center; } +.foot-os { flex: 1; + 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; +h2.Sh { margin-top: 1.2em; margin-bottom: 0.6em; margin-left: -3.2em; } section.Ss { } -h2.Ss { margin-top: 1.2em; +h3.Ss { margin-top: 1.2em; margin-bottom: 0.6em; margin-left: -1.2em; font-size: 105%; } @@ -171,7 +179,8 @@ h2.Ss { margin-top: 1.2em; .RsP { } .RsQ { } .RsR { } -.RsT { text-decoration: underline; } +.RsT { font-style: normal; + font-weight: normal; } .RsU { } .RsV { } @@ -201,8 +210,7 @@ code.Nm { font-style: normal; font-family: inherit; } .Ev { font-style: normal; font-weight: normal; - font-family: monospace, monospace; - font-size: 0.9em; } + font-family: monospace; } .Pa { font-style: italic; font-weight: normal; } @@ -229,12 +237,10 @@ a.In { } font-weight: normal; } .Dv { font-style: normal; font-weight: normal; - font-family: monospace, monospace; - font-size: 0.9em; } + font-family: monospace; } .Er { font-style: normal; font-weight: normal; - font-family: monospace, monospace; - font-size: 0.9em; } + font-family: monospace; } /* Various semantic markup. */ @@ -262,15 +268,15 @@ a.In { } font-weight: bold; } .Li { font-style: normal; font-weight: normal; - font-family: monospace, monospace; - font-size: 0.9em; } + font-family: monospace; } /* Tooltip support. */ -h1.Sh, h2.Ss { position: relative; } +h2.Sh, h3.Ss { position: relative; } .An, .Ar, .Cd, .Cm, .Dv, .Em, .Er, .Ev, .Fa, .Fd, .Fl, .Fn, .Ft, .Ic, code.In, .Lb, .Lk, .Ms, .Mt, .Nd, code.Nm, .Pa, .Rs, .St, .Sx, .Sy, .Va, .Vt, .Xr { + display: inline flow; position: relative; } .An::before { content: "An"; } @@ -296,8 +302,8 @@ code.In::before { content: "In"; } code.Nm::before { content: "Nm"; } .Pa::before { content: "Pa"; } .Rs::before { content: "Rs"; } -h1.Sh::before { content: "Sh"; } -h2.Ss::before { content: "Ss"; } +h2.Sh::before { content: "Sh"; } +h3.Ss::before { content: "Ss"; } .St::before { content: "St"; } .Sx::before { content: "Sx"; } .Sy::before { content: "Sy"; } @@ -311,7 +317,7 @@ h2.Ss::before { content: "Ss"; } .Ic::before, code.In::before, .Lb::before, .Lk::before, .Ms::before, .Mt::before, .Nd::before, code.Nm::before, .Pa::before, .Rs::before, -h1.Sh::before, h2.Ss::before, .St::before, .Sx::before, .Sy::before, +h2.Sh::before, h3.Ss::before, .St::before, .Sx::before, .Sy::before, .Va::before, .Vt::before, .Xr::before { opacity: 0; transition: .15s ease opacity; @@ -332,7 +338,7 @@ h1.Sh::before, h2.Ss::before, .St::before, .Sx::before, .Sy::before, .Ft:hover::before, .Ic:hover::before, code.In:hover::before, .Lb:hover::before, .Lk:hover::before, .Ms:hover::before, .Mt:hover::before, .Nd:hover::before, code.Nm:hover::before, .Pa:hover::before, -.Rs:hover::before, h1.Sh:hover::before, h2.Ss:hover::before, .St:hover::before, +.Rs:hover::before, h2.Sh:hover::before, h3.Ss:hover::before, .St:hover::before, .Sx:hover::before, .Sy:hover::before, .Va:hover::before, .Vt:hover::before, .Xr:hover::before { opacity: 1; @@ -341,9 +347,8 @@ 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; } -h1.Sh, h2.Ss { margin-left: 0em; } +main { margin-left: 0.5em; } +h2.Sh, h3.Ss { margin-left: 0em; } .Bd-indent { margin-left: 2em; } .Bl-hang > dd { margin-left: 2em; } @@ -362,24 +367,3 @@ html { --bg: #1E1F21; :link { color: #BAD7FF; } :visited { color: #F6BAFF; } } - -/* - FILE ARCHIVED ON 07:10:04 May 04, 2022 AND RETRIEVED FROM THE - INTERNET ARCHIVE ON 21:36:31 Mar 03, 2023. - JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. - - ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. - SECTION 108(a)(3)). -*/ -/* -playback timings (ms): - captures_list: 213.441 - exclusion.robots: 0.145 - exclusion.robots.policy: 0.135 - RedisCDXSource: 0.853 - esindex: 0.007 - LoadShardBlock: 184.418 (3) - PetaboxLoader3.datanode: 86.984 (5) - PetaboxLoader3.resolve: 322.693 (4) - load_resource: 305.141 (2) -*/ -\ No newline at end of file