Skip to content

Commit

Permalink
Reintro vertical table lines + hover state (#2653)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrenkema authored Dec 25, 2024
1 parent 210c432 commit 8126a83
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-worms-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gitbook': minor
---

Improve readability of tables with hover style and vertical dividers
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,37 @@
}

.columnHeader {
@apply text-sm font-medium py-3 px-4 text-tint-900;
@apply text-sm font-medium py-2 px-4 text-tint-900;
}

:global(.dark) .columnHeader {
@apply text-white;
}

.row {
@apply flex border-tint-700/2;
@apply flex border-tint-700/2 hover:bg-tint-700/2 transition-colors;
}

:global(.dark) .row {
@apply border-tint-300/3;
}

.rowGroup {
@apply flex flex-col border rounded-lg bg-tint-800/1 border-tint-700/2;
@apply flex flex-col border rounded-lg bg-tint-800/1 border-tint-700/2 mb-1;
}

:global(.dark) .rowGroup {
@apply bg-tint-300/2 border-tint-300/3;
}

.cell {
@apply flex-1 align-middle border-dark/2 py-2 px-4 text-sm;
@apply flex-1 align-middle border-tint-700/2 py-2 px-4 text-sm relative;
}

.cell:not(:last-child) {
@apply border-r;
}

:global(.dark) .cell {
@apply border-light/2;
@apply border-tint-300/3;
}

0 comments on commit 8126a83

Please sign in to comment.