From d66f88febd3f19afd6b0ed0bee347e8f7db3e086 Mon Sep 17 00:00:00 2001 From: dweller Date: Fri, 8 Mar 2024 19:53:47 +0200 Subject: fix formatting and parsing when using self-compiled mandoc that produced different HTML output --- style/man.css | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'style/man.css') diff --git a/style/man.css b/style/man.css index e61ad91..7915ccc 100644 --- a/style/man.css +++ b/style/man.css @@ -138,9 +138,6 @@ tr:first-of-type td:last-of-type { border-top-right-radius: 0.5em; } tr:last-of-type td:first-of-type { border-bottom-left-radius: 0.5em; } tr:last-of-type td:last-of-type { border-bottom-right-radius: 0.5em; } -table.head, table.foot, -td.head-ltitle, td.head-vol, td.head-rtitle, -td.foot-date, td.foot-os, table.Nm, table.Nm tbody, table.Nm tbody tr, table.Nm tbody tr td { word-break: break-word; @@ -148,7 +145,17 @@ table.Nm, table.Nm tbody, table.Nm tbody tr, table.Nm tbody tr td border: none !important; } -table.head, table.foot { display: table; } +.head, .foot +{ + width: 100%; + display: grid; + grid-template-columns: 1fr 2fr 1fr; + grid-template-rows: 1fr; +} + +.head-ltitle, .foot-left { text-align: left; } +.head-vol, .foot-date { text-align: center; } +.head-rtitle, .foot-os { text-align: right; } pre { -- cgit v1.2.3