Skip to content

Commit 708358d

Browse files
kowyoimfing
andauthored
fix: enhance table readability (#826)
* feat: enhance table readability * use v0.9.0 table style * Update table styles --------- Co-authored-by: Xin <[email protected]>
1 parent 8699deb commit 708358d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

assets/css/compiled/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/typography.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@
3333
@apply hx:border-black/4 hx:bg-black/3 hx:break-words hx:rounded-md hx:border hx:py-0.5 hx:px-[.25em] hx:text-[.9em] hx:dark:border-white/10 hx:dark:bg-white/10;
3434
}
3535
:where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) {
36-
@apply hx:block hx:overflow-x-auto hx:my-6 hx:p-0 hx:first:mt-0 hx:w-full hx:text-sm hx:leading-5;
36+
@apply hx:block hx:overflow-x-auto hx:my-6 hx:p-0 hx:first:mt-0 hx:w-full hx:text-sm hx:leading-5 hx:border-collapse;
3737

3838
thead {
39-
@apply hx:border-b hx:border-gray-200 hx:dark:border-neutral-800;
39+
@apply hx:bg-gray-50 hx:dark:bg-gray-600/20;
4040
}
41-
tbody tr {
42-
@apply hx:m-0 hx:border-b hx:border-gray-100 hx:dark:border-neutral-800/50;
41+
tr {
42+
@apply hx:m-0 hx:border-t hx:border-gray-300 hx:p-0 hx:dark:border-gray-600;
4343
}
4444
th {
45-
@apply hx:m-0 hx:p-2 hx:font-semibold hx:first:pl-0 hx:last:pr-0;
45+
@apply hx:m-0 hx:border hx:border-gray-300 hx:p-2 hx:font-semibold hx:dark:border-gray-600;
4646
}
4747
td {
48-
@apply hx:m-0 hx:p-2 hx:first:pl-0 hx:last:pr-0;
48+
@apply hx:m-0 hx:border hx:border-gray-300 hx:p-2 hx:dark:border-gray-600;
4949
}
5050
}
5151
:where(ol):not(:where([class~=not-prose],[class~=not-prose] *)) {

0 commit comments

Comments
 (0)