Files
tplate/web/styles/post/table.css
Hubert Chen 9fa0631d61
All checks were successful
Build tplate / Build (push) Successful in 4m24s
adjust styles
add `table code {white-space: nowrap}`
rename `post\body.css` to `post\post.css`
2026-05-30 23:18:29 +08:00

37 lines
641 B
CSS

table {
display: block;
overflow-x: auto;
max-width: fit-content;
word-break: keep-all;
scrollbar-color: var(--code-color) transparent;
background-color: var(--blockquote-bg-color);
border: var(--code-bg-color) solid 2px;
border-spacing: 0;
border-radius: var(--border-radius);
box-sizing: border-box;
margin-block: 1em;
}
table code {
white-space: nowrap;
}
th, td {
padding: .5em .5em;
border: var(--code-bg-color) solid 1px;
border-inline-start: none;
box-sizing: border-box;
}
th:last-child, td:last-child {
border-right: none;
}
th {
border-block-start: none;
}
td {
border-block-end: none;
}