table support

This commit is contained in:
Mylloon 2024-11-06 15:46:27 +01:00
parent 1097ee5194
commit 3e5ac643a7
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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 {