mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-31 06:08:33 +00:00 
			
		
		
		
	fix(table of content): avoid breaks inside of list items
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| <li> | <li class="toc__list-item"> | ||||||
|   {{ definition.data.title | linkIfExistsInCollection(collections.definedWords) | safe  }} |   {{ definition.data.title | linkIfExistsInCollection(collections.definedWords) | safe  }} | ||||||
|   {%- if |   {%- if | ||||||
|     definition.data.flag and |     definition.data.flag and | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ | |||||||
|       {% for section in collections.tableOfContent %} |       {% for section in collections.tableOfContent %} | ||||||
|         <li> |         <li> | ||||||
|           <span class="sub-headline">{{ section.title }}</span> |           <span class="sub-headline">{{ section.title }}</span> | ||||||
|         <ol> |           <ol class="toc__list"> | ||||||
|             {% for definition in section.definitions %} |             {% for definition in section.definitions %} | ||||||
|               {% include 'components/table-of-content-item.njk' %} |               {% include 'components/table-of-content-item.njk' %} | ||||||
|             {% endfor %} |             {% endfor %} | ||||||
|   | |||||||
| @@ -181,6 +181,7 @@ th { | |||||||
|   column-gap: var(--l-gap); |   column-gap: var(--l-gap); | ||||||
|   column-width: var(--auto-grid-min-size); |   column-width: var(--auto-grid-min-size); | ||||||
| } | } | ||||||
|  | @import './structures/table-of-content'; | ||||||
|  |  | ||||||
| .small-left-grid { | .small-left-grid { | ||||||
|   display: grid; |   display: grid; | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								assets/css/structures/_table-of-content.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								assets/css/structures/_table-of-content.scss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | .toc__list-item { | ||||||
|  |   page-break-inside: avoid; | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user
	 Oscar
					Oscar