Make the documentation a little prettier.

This commit is contained in:
Jordan Bancino 2022-07-23 15:07:49 -04:00
parent 35e374677c
commit a79022f7c2
2 changed files with 78 additions and 18 deletions

View file

@ -1,11 +1,45 @@
:root {
--border-radius: 10px;
}
@media(prefers-color-scheme: dark) {
:root {
--color-snippet: #161b22;
--color-link: #58a6ff;
--color-bg: #0d1117;
--color-text: #c9d1d9;
--color-table-border: #30363d;
--color-table-accent: #161b22;
}
}
@media(prefers-color-scheme: light) {
:root {
--color-snippet: #f6f8fa;
--color-link: #0969da;
--color-bg: #ffffff;
--color-text: #24292f;
--color-table-border: #d0d7de;
--color-table-accent: #f6f8fa;
}
}
body { body {
margin: auto; margin: auto;
max-width: 8.5in; max-width: 8.5in;
padding: 0.25in; padding: 0.25in;
color: var(--color-text);
background-color: var(--color-bg);
font-family: Arial;
} }
.code { .code {
background-color: #eee; background-color: var(--color-snippet);
border-radius: 5px; border-radius: var(--border-radius);
display: block; display: block;
padding: 0.5em 1em 1.5em 1em; padding: 0.5em 1em 1.5em 1em;
@ -13,10 +47,11 @@ body {
white-space: pre; white-space: pre;
overflow-x: scroll; overflow-x: scroll;
} }
kbd { kbd {
background-color: #eee; background-color: #eee;
border-radius: 3px; border-radius: 3px;
border: 1px solid #b4b4b4; border: 1px solid var(--color-table-border);
box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset; box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
color: #333; color: #333;
display: inline-block; display: inline-block;
@ -26,37 +61,53 @@ kbd {
padding: 2px 4px; padding: 2px 4px;
white-space: nowrap; white-space: nowrap;
} }
h1, h4, h5, h6 { h1, h4, h5, h6 {
border-bottom: 1px dashed gray; border-bottom: 1px dashed var(--color-table-border);
} }
h4, h5, h6 { h4, h5, h6 {
width: fit-content; width: fit-content;
} }
a { a {
color: #0969da; color: var(--color-link);
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
} }
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: separate;
border-spacing: 0px;
border-radius: var(--border-radius);
} }
td, th { td, th {
border: 1px solid #eee; border: 1px solid var(--color-table-border);
text-align: left; text-align: left;
padding: 8px; padding: 8px;
} }
tr:nth-child(even) { tr:nth-child(even) {
background-color: #eee; background-color: var(--color-table-accent);
}
th:first-of-type {
border-top-left-radius: var(--border-radius);
}
th:last-of-type {
border-top-right-radius: var(--border-radius);
}
tr:last-of-type td:first-of-type {
border-bottom-left-radius: var(--border-radius);
}
tr:last-of-type td:last-of-type {
border-bottom-right-radius: var(--border-radius);
} }
@media (prefers-color-scheme: dark) {
body {
background-color: #212121;
color: white;
}
.code, tr:nth-child(even) {
background-color: #333333;
}
}

View file

@ -176,6 +176,7 @@ package yourself.
<th>Checksum</th> <th>Checksum</th>
<th>Signature</th> <th>Signature</th>
</tr> </tr>
<!--
<tr> <tr>
<td>v0.0.0</td> <td>v0.0.0</td>
<td> <td>
@ -194,6 +195,14 @@ Signify
</a> </a>
</td> </td>
</tr> </tr>
-->
<tr>
<td colspan="4" style="text-align: center;">
No downloads here yet. See the
<a href="#project-status">Project Status</a> for more
information.
</td>
</tr>
</table> </table>
<p> <p>
You can check out the change log <a href="#change-log">here</a>. You can check out the change log <a href="#change-log">here</a>.
@ -335,7 +344,7 @@ on my list for that:
<li>Update Rationale section</li> <li>Update Rationale section</li>
<li>Update Project description (no longer a CGI binary)</li> <li>Update Project description (no longer a CGI binary)</li>
<li>Update project code requirements (ANSI C, POSIX.1c)</li> <li>Update project code requirements (ANSI C, POSIX.1c)</li>
<li>Clean up dark mode colors (tables, background, code snippets</li> <li></s>Clean up dark mode colors (tables, background, code snippets)</s></li>
</ul> </ul>
<h2 id="rationale">Rationale</h2> <h2 id="rationale">Rationale</h2>
<p> <p>