Skip to content

Commit

Permalink
Add table styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros authored and jpechane committed Sep 19, 2024
1 parent db8be3a commit 6b437f2
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10831,4 +10831,96 @@ body.post div.dlist dl > dd {

div.content > img {
max-width: 100%;
}

.post table {
background: #fff;
margin-bottom: 1.25em;
border: 1px solid #dedede;
word-wrap: normal;
}

.post table thead,
.post table tfoot {
background: #f7f8f7;
}

.post table thead tr th,
.post table thead tr td,
.post table tfoot tr th,
.post table tfoot tr td {
padding: 0.5em 0.625em 0.625em;
font-size: inherit;
color: rgba(0, 0, 0, 0.8);
text-align: left;
}

.post table tr th,
.post table tr td {
padding: 0.5625em 0.625em;
font-size: inherit;
color: rgba(0, 0, 0, 0.8);
}

.post table tr.even,
.post table tr.alt {
background: #f8f8f7;
}

.post table thead tr th,
.post table tfoot tr th,
.post table tbody tr td,
.post table tr td,
.post table tfoot tr td {
line-height: 1.6;
}

.post table.tableblock,
.post th.tableblock,
.post td.tableblock {
border: 0 solid #dedede;
}

.post table.grid-all > * > tr > * {
border-width: 1px;
}

.post table.grid-cols > * > tr > * {
border-width: 0 1px;
}

.post table.grid-rows > * > tr > * {
border-width: 1px 0;
}

.post table.frame-all {
border-width: 1px;
}

.post table.frame-ends {
border-width: 1px 0;
}

.post table.frame-sides {
border-width: 0 1px;
}

.post table.frame-none > colgroup + * > :first-child > *,
.post table.frame-sides > colgroup + * > :first-child > * {
border-top-width: 0;
}

.post table.frame-none > :last-child > :last-child > *,
.post table.frame-sides > :last-child > :last-child > * {
border-bottom-width: 0;
}

.post table.frame-none > * > tr > :first-child,
.post table.frame-ends > * > tr > :first-child {
border-left-width: 0;
}

.post table.frame-none > * > tr > :last-child,
.post table.frame-ends > * > tr > :last-child {
border-right-width: 0;
}

0 comments on commit 6b437f2

Please sign in to comment.