Table of Contents Item
The table-of-contents-item class is used for styling a single item of a table of contents. These items are always embedded in a table-of-contents
block. Each heading level can be styled independently using pseudoclasses.
Selectors
-
Definitions:
table-of-contents-item
Style Settings
Pseudoclasses
Example
// Sets the font for each table of contents item.
table-of-contents-item {
font-family: "Avenir Next"
font-size: 12pt
}
// Adds an additional top margin for level 1 headings
table-of-contents-item :heading-1 {
margin-top: 10pt
}
// Uses a smaller font size for level 2 headings
table-of-contents-item :heading-2 {
font-size: 10pt
}