Add some basic styling to tables.

This commit is contained in:
Tom Alexander 2023-12-21 21:59:52 -05:00
parent 88e10010d8
commit 5dfd46852f
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 24 additions and 1 deletions

View File

@ -14,6 +14,10 @@
--src-block-language-background: #84828f;
--quote-block-border-color: #84828f;
--table-border-color: #6a687a;
--table-odd-background-color: #0a0a0a;
--table-even-background-color: #141414;
}
body {
@ -184,4 +188,23 @@ body {
}
}
}
.org_table {
table-layout: fixed;
border-collapse: collapse;
border: 1px solid var(--table-border-color);
> tbody {
> tr {
> td {
padding: 0.2rem;
}
}
> tr:nth-child(odd) {
background-color: var(--table-odd-background-color);
}
> tr:nth-child(even) {
background-color: var(--table-even-background-color);
}
}
}
}

View File

@ -1 +1 @@
<table>{#.children}{>table_row/}{/.children}</table>
<table class="org_table"><tbody>{#.children}{>table_row/}{/.children}</tbody></table>