Skip to content

Commit

Permalink
Widen the table in the practical decl macro introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Apr 22, 2022
1 parent b077c4a commit 7b7b1db
Showing 1 changed file with 36 additions and 16 deletions.
52 changes: 36 additions & 16 deletions src/decl-macros/macros-practical-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
font-size: 70%;
}

.parse-table {
--table-width: 900px;
width: var(--table-width);
margin-left: calc((var(--content-max-width) - var(--table-width)) / 2);
}

table.parse-table code {
white-space: pre-wrap;
background-color: transparent;
Expand All @@ -29,9 +35,9 @@
<table class="parse-table">
<colgroup>
<col width="42%" />
<col width="36%" />
<col width="30%" />
<col width="0%" />
<col width="12%" />
<col width="18%" />
</colgroup>
<thead>
<tr>
Expand All @@ -44,56 +50,64 @@
<tbody class="small-code">
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td><code>a[n] = 0, 1, ..., a[n-1] + a[n-2]</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td><code>[n] = 0, 1, ..., a[n-1] + a[n-2]</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td><code>n] = 0, 1, ..., a[n-1] + a[n-2]</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td><code>] = 0, 1, ..., a[n-1] + a[n-2]</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td><code>= 0, 1, ..., a[n-1] + a[n-2]</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td><code>0, 1, ..., a[n-1] + a[n-2]</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td><code>0, 1, ..., a[n-1] + a[n-2]</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code> ⌂ ⌂</code></td>
<code> ⌂ ⌂</code>
</td>
<td><code>, 1, ..., a[n-1] + a[n-2]</code></td>
<td><code>0</code></td>
<td></td>
Expand All @@ -108,14 +122,16 @@
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code> ⌂ ⌂</code></td>
<code> ⌂ ⌂</code>
</td>
<td><code>1, ..., a[n-1] + a[n-2]</code></td>
<td><code>0</code></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code> ⌂ ⌂ <s></s></code></td>
<code> ⌂ ⌂ <s></s></code>
</td>
<td><code>, ..., a[n-1] + a[n-2]</code></td>
<td><code>0</code>, <code>1</code></td>
<td></td>
Expand All @@ -128,28 +144,32 @@
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code> ⌂ ⌂</code></td>
<code> ⌂ ⌂</code>
</td>
<td><code>..., a[n-1] + a[n-2]</code></td>
<td><code>0</code>, <code>1</code></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code> <s></s></code></td>
<code> <s></s></code>
</td>
<td><code>, a[n-1] + a[n-2]</code></td>
<td><code>0</code>, <code>1</code></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td><code>a[n-1] + a[n-2]</code></td>
<td><code>0</code>, <code>1</code></td>
<td></td>
</tr>
<tr>
<td><code>a[n] = $($inits:expr),+ , ... , $recur:expr</code>
<code></code></td>
<code></code>
</td>
<td></td>
<td><code>0</code>, <code>1</code></td>
<td><code>a[n-1] + a[n-2]</code></td>
Expand Down

0 comments on commit 7b7b1db

Please sign in to comment.