Skip to content

Commit

Permalink
Nice table
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellBo committed Dec 9, 2024
1 parent 9bd5783 commit 767f01b
Showing 1 changed file with 39 additions and 11 deletions.
50 changes: 39 additions & 11 deletions bibhtml/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,38 +296,66 @@ <h3><code>&lt;bh-cite&gt;</code></h3>
<p>
In summary:
</p>
<table>

<style>
/* Default table styles */
.responsive-table {
width: 100%;
border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
padding: 12px;
border: 1px solid #ddd;
}

/* Mobile breakpoint transformation */
@media screen and (max-width: 768px) {
.responsive-table tr {
display: block;
}

.responsive-table td, .responsive-table th {
display: block;
text-align: left;
border: none;
border-bottom: 1px solid #eee;
}
}
</style>

<table class="responsive-table">
<thead>
<tr>
<th>Pattern</th>
<th>Computed reference ID</th>
<th>Shadow DOM <code>href</code></th>
<th>Light DOM (fallback) <code>href</code></th>
<!-- <th>Computed reference ID</th> -->
<th>Citation navigates to:</th>
<!-- <th>Light DOM (fallback) <code>href</code></th> -->
</tr>
</thead>
<tbody>
<tr>
<td class="echo">&lt;bh-cite&gt;&lt;a href=&quot;#refId&quot;&gt;...</td>
<td><code>"refId"</code></td>
<td><code>"#refId"</code></td>
<!-- <td><code>"refId"</code></td> -->
<td><code>"#refId"</code></td>
<!-- <td><code>"#refId"</code></td> -->
</tr>
<tr>
<td class="echo">&lt;bh-cite ref=&quot;refId&quot;&gt;&lt;a href=&quot;example.com&quot;&gt;...</td>
<td><code>"refId"</code></td>
<td><code>"example.com"</code></td>
<!-- <td><code>"refId"</code></td> -->
<td><code>"example.com"</code></td>
<!-- <td><code>"example.com"</code></td> -->
</tr>
<tr>
<td class="echo">&lt;bh-cite deref&gt;&lt;a href=&quot;#refId&quot;&gt;...</td>
<td><code>"refId"</code></td>
<!-- <td><code>"refId"</code></td> -->
<td>URL yielded by Citation.js</td>
<td><code>"#refId"</code></td>
<!-- <td><code>"#refId"</code></td> -->
</tr>
</tbody>
</table>


<h3><code>&lt;bh-reference&gt;</code></h3>

<p>
Expand Down

0 comments on commit 767f01b

Please sign in to comment.