Skip to content

Commit

Permalink
fix: hide empty table header rows (fixes #117)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 15, 2024
1 parent ccab77a commit 0620017
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/website/src/theme/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ table {
margin: var(--space-md) 0;
}

// Hide header row if all cells are empty
tr:has(> th:empty):not(:has(> th:not(:empty))) {
display: none;
}

th,
td {
text-align: left;
vertical-align: top;
padding: var(--space-xxs) var(--space-md);
border: 2px solid var(--border-color);

&:empty {
padding: 0;
}
}

img,
Expand Down

0 comments on commit 0620017

Please sign in to comment.