diff --git a/static/css/markdown.css b/static/css/markdown.css index 7e17c1f..3470129 100644 --- a/static/css/markdown.css +++ b/static/css/markdown.css @@ -179,6 +179,40 @@ pre:has(code.language-mermaid) { text-align: center; } +/* Tables */ +table { + border-collapse: collapse; +} + +th { + border-bottom: 2px solid var(--separator-color); +} + +th, +td { + padding: 5px; + border: 1px solid var(--separator-color); +} + +/* No borders on the outer edges of the table */ +table tr:last-child td { + border-bottom: 0; +} + +table tr:first-child th { + border-top: 0; +} + +table tr td:first-child, +table tr th:first-child { + border-left: 0; +} + +table tr td:last-child, +table tr th:last-child { + border-right: 0; +} + @media print { /* Better colors for paper */ blockquote {