Improve table

This commit is contained in:
Djordje Atlialp 2021-01-10 20:23:28 +01:00
parent 1220741b2f
commit 2e723e3f05
3 changed files with 20 additions and 28 deletions

View file

@ -1,20 +1,21 @@
.post-content {
table {
display: inline-block;
border-collapse: collapse;
margin: 25px 0;
margin-left: auto;
margin-right: auto;
margin: 25px auto;
font-size: 0.9em;
font-family: sans-serif;
min-width: 400px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
max-width: 100%;
overflow-x: auto;
}
table thead tr {
background-color: $light-border-color;
background-color: $light-table-color;
color: $light-color;
text-align: left;
.dark-theme & {
background-color: $dark-border-color;
background-color: $dark-table-color;
color: $dark-color
}
}
@ -24,23 +25,9 @@
}
tbody tr {
border-bottom: 1px solid $light-border-color;
border: 1px solid $light-table-color;
.dark-theme & {
border-bottom: 1px solid $dark-border-color;
}
}
// tbody tr:nth-of-type(even) {
// background-color: $light-background-secondary;
// .dark-theme & {
// background-color: $dark-background-secondary;
// }
// }
tbody tr:last-of-type {
border-bottom: 2px solid $light-border-color;
.dark-theme & {
border-bottom: 2px solid $dark-border-color;
border: 1px solid $dark-table-color;
}
}
}