Merge pull request #43 from ovlb/feature/fix-break-in-table-of-content

👩‍🎨 Avoid Breaks in Table of Content Items
This commit is contained in:
Tatiana Mac 2020-02-11 21:38:30 -08:00 committed by GitHub
commit b21367fb9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 16 deletions

View File

@ -1,4 +1,4 @@
<li>
<li class="toc__list-item">
{{ definition.data.title | linkIfExistsInCollection(collections.definedWords) | safe }}
{%- if
definition.data.flag and

View File

@ -4,7 +4,7 @@
{% for section in collections.tableOfContent %}
<li>
<span class="sub-headline">{{ section.title }}</span>
<ol>
<ol class="toc__list">
{% for definition in section.definitions %}
{% include 'components/table-of-content-item.njk' %}
{% endfor %}

View File

@ -206,11 +206,8 @@ th {
grid-gap: var(--l-gap);
}
.multi-column {
column-count: auto;
column-gap: var(--l-gap);
column-width: var(--auto-grid-min-size);
}
@import './structures/multi-column';
@import './structures/table-of-content';
.small-left-grid {
display: grid;

View File

@ -0,0 +1,5 @@
.multi-column {
column-count: auto;
column-gap: var(--l-gap);
column-width: var(--auto-grid-min-size);
}

View File

@ -0,0 +1,3 @@
.toc__list-item {
break-inside: avoid;
}