diff options
author | dweller <dweller@cabin.digital> | 2024-02-26 12:30:37 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2024-02-26 12:30:37 +0200 |
commit | c8cef7f8099ef3caa973c4c5ff19b094121a21dc (patch) | |
tree | 4eb0bfcb7b43b29902690172fdeb9375ec160dcc /style | |
parent | 9d6fcf2cdca65c7d49f3f042faf8c0e52aa8cc9c (diff) |
table CSS
Diffstat (limited to '')
-rw-r--r-- | style/main.css | 28 |
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) { |