diff options
author | dweller <dweller@cabin.digital> | 2024-02-26 14:04:19 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2024-02-26 14:04:19 +0200 |
commit | 36d138c406e0e8974da979f9af2414b1f99b3131 (patch) | |
tree | 0e51773ff838cc182ad0501661ff1330ae8f1246 /style | |
parent | c8cef7f8099ef3caa973c4c5ff19b094121a21dc (diff) |
attempt to fix mandoc retarded CSS generation
Diffstat (limited to '')
-rw-r--r-- | style/main.css | 28 | ||||
-rw-r--r-- | style/man.css | 89 |
2 files changed, 87 insertions, 30 deletions
diff --git a/style/main.css b/style/main.css index e4e0e0e..e650d1b 100644 --- a/style/main.css +++ b/style/main.css @@ -392,34 +392,6 @@ footer, #about_pane transform: rotate(180deg); } -table, td, th, td -{ - border-collapse: separate; - border-spacing: 0; -} - -table -{ - border: none !important; -} - -td, th, td -{ - padding: 5pt; - border-left: solid 1px var(--border); - border-right: none; - border-top: solid 1px var(--border); - border-bottom: none; -} - -tr:last-of-type td { border-bottom: solid 1px var(--border); } -td:last-of-type { border-right: solid 1px var(--border); } - -tr:first-of-type td:first-of-type { border-top-left-radius: 0.5em; } -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; } - @media (prefers-color-scheme: dark) { diff --git a/style/man.css b/style/man.css index ee0cfa9..7acdd4d 100644 --- a/style/man.css +++ b/style/man.css @@ -93,8 +93,14 @@ border: 1px solid var(--border); border-radius: 1em; + + line-height: 1.5; + + text-align: justify; + text-justify: inter-word; } +/* .head { width: 100%; @@ -103,7 +109,7 @@ align-items: center; justify-content: space-between; } - +*/ @media (prefers-color-scheme: dark) { @@ -136,9 +142,88 @@ } } +table +{ + border: none; +} + +table, td, th, td +{ + border-collapse: separate; + border-spacing: 0; +} + +td, th, td +{ + border-width: 0; + + padding: 5pt; + border-left: solid 1px var(--border); + border-right: none; + border-top: solid 1px var(--border); + border-bottom: none; +} + +tr:last-of-type td { border-bottom: solid 1px var(--border); } +td:last-of-type { border-right: solid 1px var(--border); } -/* TODO: give copyright */ +tr:first-of-type td:first-of-type { border-top-left-radius: 0.5em; } +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 +{ + border: none !important; +} + +dl.Bl-tag +{ + display: grid; + row-gap: 1em; + grid-template-columns: max-contet auto; +} + +dl.Bl-tag dt { grid-column-start: 1; } +dl.Bl-tag dd { grid-column-start: 2; } + +/* + * $Id: man.1,v 1.40 2020/07/20 16:57:30 schwarze Exp $ + * + * Copyright (c) 1989, 1990, 1993 + * The Regents of the University of California. All rights reserved. + * Copyright (c) 2003, 2007, 2008, 2014 Jason McIntyre <jmc@openbsd.org> + * Copyright (c) 2010, 2011, 2014-2020 Ingo Schwarze <schwarze@openbsd.org> + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @(#)man.1 8.2 (Berkeley) 1/2/94 + */ table.head, table.foot { width: 100%; } td.head-rtitle, td.foot-os { text-align: right; } td.head-vol { text-align: center; } |