change table class names to avoid collision with prism highlighting

This commit is contained in:
James Brumond 2023-11-26 21:45:55 -08:00
parent 3da2c28b13
commit 20e585e708
Signed by: james
GPG Key ID: E8F2FC44BAA3357A

View File

@ -192,64 +192,64 @@ mark {
/* ===== Tables ===== */ /* ===== Tables ===== */
table, .table, td, .td { table, .faux-table, td, .faux-td {
color: var(--theme-text-body); color: var(--theme-text-body);
font-family: var(--font-body); font-family: var(--font-body);
} }
table, .table { table, .faux-table {
display: table; display: table;
margin-block: 2rem; margin-block: 2rem;
border-collapse: collapse; border-collapse: collapse;
} }
table, th, td, table, th, td,
.table, .th, .td { .faux-table, .faux-th, .faux-td {
font-size: 1rem; font-size: 1rem;
line-height: 1.75; line-height: 1.75;
} }
thead, .thead { thead, .faux-thead {
display: table-header-group; display: table-header-group;
} }
tbody, .tbody { tbody, .faux-tbody {
display: table-row-group; display: table-row-group;
} }
tbody tr, tbody tr,
.tbody .tr { .faux-tbody .faux-tr {
border-top: 1px var(--theme-line) solid; border-top: 1px var(--theme-line) solid;
} }
tr, .tr { tr, .faux-tr {
display: table-row; display: table-row;
} }
th, .th { th, .faux-th {
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
color: var(--theme-text-heading); color: var(--theme-text-heading);
} }
th, .th, th, .faux-th,
td, .td { td, .faux-td {
padding-block: 0.5rem; padding-block: 0.5rem;
padding-inline: 1rem; padding-inline: 1rem;
display: table-cell; display: table-cell;
} }
td, .td { td, .faux-td {
display: table-cell; display: table-cell;
font-weight: 300; font-weight: 300;
vertical-align: top; vertical-align: top;
} }
:is(td, .td):not(:last-of-type) { :is(td, .faux-td):not(:last-of-type) {
border-inline-end: 0.1rem solid var(--theme-line); border-inline-end: 0.1rem solid var(--theme-line);
} }
:is(table, .table) :is(input, select) { :is(table, .faux-table) :is(input, select) {
margin-block: 0; margin-block: 0;
} }