Table styles now only apply to table.rows-and-columns, refs #2420

This commit is contained in:
Simon Willison 2024-09-05 20:11:23 -07:00
commit f601425015

View file

@ -450,28 +450,28 @@ h2 em {
.table-wrapper { .table-wrapper {
overflow-x: auto; overflow-x: auto;
} }
table { table.rows-and-columns {
border-collapse: collapse; border-collapse: collapse;
} }
td { table.rows-and-columns td {
border-top: 1px solid #aaa; border-top: 1px solid #aaa;
border-right: 1px solid #eee; border-right: 1px solid #eee;
padding: 4px; padding: 4px;
vertical-align: top; vertical-align: top;
white-space: pre-wrap; white-space: pre-wrap;
} }
td.type-pk { table.rows-and-columns td.type-pk {
font-weight: bold; font-weight: bold;
} }
td em { table.rows-and-columns td em {
font-style: normal; font-style: normal;
font-size: 0.8em; font-size: 0.8em;
color: #aaa; color: #aaa;
} }
th { table.rows-and-columns th {
padding-right: 1em; padding-right: 1em;
} }
table a:link { table.rows-and-columns a:link {
text-decoration: none; text-decoration: none;
} }
.rows-and-columns td:before { .rows-and-columns td:before {