Skip to content

Commit

Permalink
fix: adjust spec table spacing (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing authored Jul 31, 2024
1 parent 605fb38 commit c2ad548
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/components/docs/Specification.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const { anchor } = Astro.props;
---
<div>
<table>
<table class="specification">
<thead>
<tr>
<th>Specification</th>
Expand All @@ -26,24 +26,22 @@ const { anchor } = Astro.props;
</div>

<style>
table {
.specification {
border-collapse: collapse;
margin-block-start: var(--space-m);
}

tr:nth-child(even) td {
background-color: var(--sl-color-gray-7);
.specification.specification th,
.specification.specification td {
padding-inline: var(--space-xs);
}

th,
td {
vertical-align: middle;
tr:nth-child(even) td {
background-color: var(--sl-color-gray-7);
}

th {
background-color: var(--sl-color-gray-7);
font-weight: bold;
line-height: 1.5;
text-align: left;
}
</style>

0 comments on commit c2ad548

Please sign in to comment.