Thread
:
Is there a way to update a TOC that's inserted inline?
View Single Post
09-06-2020, 08:54 AM
#
13
phossler
Wizard
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
I like the inline TOC, but I have my own CSS in
C:\Users\<userid>\AppData\Roaming\calibre\resource s\templates\inline_toc_styles.css
Making an inline TOC pulls this CSS in to format it. Might be an option if you want to make the font larger, etc.
Spoiler
:
li > ul {margin-bottom: 1em;
}
ul.level1 {
padding-left: 0; font-weight: normal; font-size: 100%;
margin-top: 1em;
margin-left: 0;
text-decoration: none;
}
ul.level2 {font-size: 100%;
}
ul.level3 {font-style: italic;
}
li {margin-top: 1em; list-style-type: none;
}
a {text-decoration: none;
color: black;
}
a:hover {
border-top-style: solid; border-bottom-style: solid; padding-bottom: 2px;
padding-top: 1px;
border-top-width: 2px; border-bottom-width: 2px;
color: white; background-color: black;
}
h2 {
page-break-before: always;
page-break-after: avoid;
text-indent: 0;
text-align: center;
margin-top: 0;
margin-bottom: 1em;
font-size: 2.5em;
font-weight: bold;
font-style: normal;
color: blue;
}
phossler
View Public Profile
Find More Posts by phossler
Track Posts by phossler via RSS