Fix table margins, padding, and overflow

This sets up a simple unstyled table with spacing that matches other elements.
This commit is contained in:
mntn 2021-08-09 10:24:55 -04:00 committed by GitHub
parent 8d534bcdad
commit edb5a0f856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -163,3 +163,20 @@ sup, sub {
sub {
top: 0.25rem;
}
/* Tables */
table {
border-spacing: 0;
margin: 0 0 1.5rem 0;
overflow-wrap: anywhere;
}
th, td {
padding: 0 .75rem;
vertical-align: top;
}
th:first-child, td:first-child {
padding-left: 0;
}
th {
text-align: inherit;
}