Fixing issues with the table of contents layout

This commit is contained in:
Jocelyn Badgley (Twipped) 2021-03-23 09:45:29 -07:00
parent 4b372856cd
commit 0cee442b92
2 changed files with 12 additions and 1 deletions

View File

@ -24,7 +24,7 @@ siblings:
### Table of Contents:
{!{ <div style="columns: 2"> }!}
{!{ <div class="two-column-list"> }!}
1. [Introduction](#introduction)

View File

@ -150,3 +150,14 @@
margin-bottom: 0;
}
}
.two-column-list {
ol, ul {
@media (min-width: 500px) {
columns: 2;
}
li { margin-bottom: 0.5em; }
p { margin: 0; }
}
}