summaryrefslogtreecommitdiff
path: root/style/main.css
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-02-26 12:30:37 +0200
committerdweller <dweller@cabin.digital>2024-02-26 12:30:37 +0200
commitc8cef7f8099ef3caa973c4c5ff19b094121a21dc (patch)
tree4eb0bfcb7b43b29902690172fdeb9375ec160dcc /style/main.css
parent9d6fcf2cdca65c7d49f3f042faf8c0e52aa8cc9c (diff)
table CSS
Diffstat (limited to 'style/main.css')
-rw-r--r--style/main.css28
1 files changed, 28 insertions, 0 deletions
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)
{