Skip to content

Commit

Permalink
Add table of human body parts
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jun 20, 2024
1 parent 7c633c7 commit 4259b71
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ <h2>It's Just a Ton</h2>
<p>
Eventually there will only be a single meaning of the word "ton" for weight, and it will
unambiguously mean exactly 1,000 kg.&nbsp;
Today, unfortunately, we have the British ton (long ton), tonne (metric ton), and
Today, unfortunately, we have the British ton (long ton), metric ton (tonne), and
U.S. ton (short ton).&nbsp;
Crazy.&nbsp;
</p>
<p>
The spelling of the word "tonne" is bizarre &mdash; the word needs to die out.&nbsp;
The spelling of the word "tonne" is bizarre &mdash; that farcical word needs to die
out.&nbsp;
Saying "metric ton" solves the ambiguity problem, but it's redundant like
saying "metric liter".&nbsp;
Even if it takes 100 years, the ridiculous and inefficient jumble of units will be
Even if it takes 100 years, the ridiculous and inefficient jumble of ton units will be
relegated to the dustbin of history, and a ton will just be a ton.&nbsp;
</p>
<figure>🍺 🍺 🍺</figure>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h2>It's Already Happening</h2>
</p>
<p>
Consumer goods in the U.S. are mostly imported, and online retailers rarely do proper
conversions to inch fractions for product information.&nbsp;
conversions to fractional inches for product information.&nbsp;
Converting units takes effort.&nbsp;
Retailers are lazy so they convert product information to decimal inches or sometimes
don't even bother.&nbsp;
Expand Down
14 changes: 13 additions & 1 deletion src/website/article/millimeter-standard-war/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,22 @@ <h2>Human Scale</h2>
numbers.&nbsp;
</p>
<p>
Centimeters provide the correct level of precision and are super easy to communicate.&nbsp;
Centimeters provide the correct level of precision and are super easy to
communicate.&nbsp;
To answer an inquiry about your height, you just need to reply with a simple number, such
as "184", and you're done.&nbsp;
</p>
<p>
You can even use your body as a human ruler.&nbsp;
</p>
<table data-code-column=2 data-number-column=2>
<thead><tr><th>Body Part</th><th>Ruler</th></tr></thead>
<tbody>
<tr><td>Across your pinky fingernail</td> <td>1 cm</td></tr>
<tr><td>Across of your fist</td> <td>10 cm</td></tr>
<tr><td>Ground to your belly button (or<br>waist if you're tall)</td> <td>100 cm</td></tr>
</tbody>
</table>
<p>
Long live the centimeter!&nbsp;
</p>
Expand Down
27 changes: 0 additions & 27 deletions src/website/css/components.less
Original file line number Diff line number Diff line change
Expand Up @@ -65,33 +65,6 @@ code.block {
padding: 5px 15px;
}

// data-code-column
table {
&[data-code-column="1"] tbody tr td:nth-child(1) { .MonospaceText(); }
&[data-code-column="2"] tbody tr td:nth-child(2) { .MonospaceText(); }
&[data-code-column="3"] tbody tr td:nth-child(3) { .MonospaceText(); }
&[data-code-column="4"] tbody tr td:nth-child(4) { .MonospaceText(); }
&[data-code-column="5"] tbody tr td:nth-child(5) { .MonospaceText(); }
}

// data-hide-column
table {
.HideCell() {
max-width: 0px;
overflow: hidden;
padding: 0px;
margin: 0px;
}
&[data-hide-column] thead tr th, tbody tr td { transition: all 1s };
.MobileMode({
&[data-hide-column="1"] { thead tr th:nth-child(1), tbody tr td:nth-child(1) { .HideCell() } }
&[data-hide-column="2"] { thead tr th:nth-child(2), tbody tr td:nth-child(2) { .HideCell() } }
&[data-hide-column="3"] { thead tr th:nth-child(3), tbody tr td:nth-child(3) { .HideCell() } }
&[data-hide-column="4"] { thead tr th:nth-child(4), tbody tr td:nth-child(4) { .HideCell() } }
&[data-hide-column="5"] { thead tr th:nth-child(5), tbody tr td:nth-child(5) { .HideCell() } }
});
}

table.big-table {
margin: 0px;
.TableCell() {
Expand Down
30 changes: 0 additions & 30 deletions src/website/css/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -80,36 +80,6 @@ body {
padding-left: 0em;
margin-bottom: 15px;
}
//TEMPORARY
code {
white-space: normal;
}
blockquote {
display: block;
width: 100%;
font-size: 1.2rem;
font-style: italic;
text-align: left;
border: 1px solid silver;
padding: 10px 25px;
margin: 0px 0px 20px 0px;
cite {
display: block;
font-size: 0.8rem;
font-weight: 100;
font-style: normal;
letter-spacing: 0.05em;
text-align: right;
padding-top: 5px;
&::before {
content: @symbolEmDash; //character: —
margin-right: 0.4em;
}
}
figure {
margin-bottom: 0px;
}
}
}
a {
white-space: normal;
Expand Down

0 comments on commit 4259b71

Please sign in to comment.