Fix github pages table jitter

Use grid, since tables are old and janky.

type: documentation
This commit is contained in:
Casey Rodarmor 2020-01-31 09:05:20 -08:00
parent 9ff627c29f
commit 3f91f042c7
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0
2 changed files with 42 additions and 47 deletions

View File

@ -26,17 +26,16 @@ a {
text-decoration: none; text-decoration: none;
} }
table { #intermodal {
border-collapse: collapse; display: grid;
grid-template-columns: repeat(5, 1fr);
margin-bottom: var(--margin-vertical); margin-bottom: var(--margin-vertical);
margin-left: var(--margin-horizontal); margin-left: var(--margin-horizontal);
margin-right: var(--margin-horizontal); margin-right: var(--margin-horizontal);
margin-top: var(--margin-vertical); margin-top: var(--margin-vertical);
} }
td { #intermodal > * {
border-style: dashed;
border-width: 1px;
height: var(--size); height: var(--size);
width: var(--size); width: var(--size);
} }

View File

@ -8,22 +8,18 @@
</head> </head>
<body> <body>
<a href="https://github.com/casey/intermodal"> <a href="https://github.com/casey/intermodal">
<table> <div id="intermodal">
<tr> <div id="i"></div>
<td id="i"></td> <div id="n"></div>
<td id="n"></td> <div id="t"></div>
<td id="t"></td> <div id="e"></div>
<td id="e"></td> <div id="r"></div>
<td id="r"></td> <div id="m"></div>
</tr> <div id="o"></div>
<tr> <div id="d"></div>
<td id="m"></td> <div id="a"></div>
<td id="o"></td> <div id="l"></div>
<td id="d"></td> </div>
<td id="a"></td>
<td id="l"></td>
</tr>
</table>
</a> </a>
</body> </body>
</html> </html>