From c8cef7f8099ef3caa973c4c5ff19b094121a21dc Mon Sep 17 00:00:00 2001 From: dweller Date: Mon, 26 Feb 2024 12:30:37 +0200 Subject: table CSS --- style/main.css | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/style/main.css b/style/main.css index e650d1b..e4e0e0e 100644 --- a/style/main.css +++ b/style/main.css @@ -392,6 +392,34 @@ 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) { -- cgit v1.2.3