fix: light/dark mode consistency with alternating table row colors

This commit is contained in:
Sean Burkes
2026-02-12 15:21:07 -07:00
parent 67a530a83b
commit 9ea4f6b5ef
2 changed files with 12 additions and 12 deletions

View File

@@ -157,16 +157,6 @@
width: 100%;
margin: 1rem 0;
background-color: transparent;
display: block;
padding-right: 0.75rem;
}
.markdown-body thead,
.markdown-body tbody,
.markdown-body tfoot {
width: 100%;
display: table;
table-layout: fixed;
}
.markdown-body th,
@@ -182,8 +172,12 @@
background-color: var(--surface-secondary);
}
.markdown-body tbody tr:nth-child(2n) {
background-color: var(--surface-muted);
.markdown-body tbody > tr:nth-child(odd) > td {
background-color: var(--markdown-table-row-odd);
}
.markdown-body tbody > tr:nth-child(even) > td {
background-color: var(--markdown-table-row-even);
}
.markdown-code-block {