theme: style tables

This commit is contained in:
Peter Cai 2020-04-15 21:37:13 +08:00
parent 63d966f019
commit f75e6d5720
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 31 additions and 0 deletions

View File

@ -145,6 +145,37 @@ blockquote {
display: inline-block; display: inline-block;
} }
/* Table */
table {
border-spacing: 0;
border: 1px solid #cccccc;
margin-bottom: 10px;
margin-right: 10px;
border-radius: 4px;
max-width: 100%;
overflow-x: scroll;
}
th, td {
padding: 15px;
}
th:not(:first-child), td:not(:first-child) {
border-left: 1px solid #cccccc;
}
thead {
background-color: #eeeeee;
}
tr {
transition: background-color 0.2s ease-in-out;
}
tr:hover {
background-color: #eeeeee;
}
/* Footer -- Not needed on desktop */ /* Footer -- Not needed on desktop */
.footer { .footer {
display: none; display: none;