Add some basic styling to tables.
This commit is contained in:
parent
88e10010d8
commit
5dfd46852f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
<table>{#.children}{>table_row/}{/.children}</table>
|
||||
<table class="org_table"><tbody>{#.children}{>table_row/}{/.children}</tbody></table>
|
||||
|
Loading…
Reference in New Issue
Block a user