mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-19 13:23:29 +02:00
Edit Book: Make the CSS used for styling the generated inline ToC user customizable via http://manual.calibre-ebook.com/customize.html#overriding-icons-templates-et-cetera
This commit is contained in:
parent
e9ad07791c
commit
a6a2359025
2 changed files with 6 additions and 4 deletions
5
resources/templates/inline_toc_styles.css
Normal file
5
resources/templates/inline_toc_styles.css
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
li { list-style-type: none; padding-left: 2em; margin-left: 0}
|
||||
|
||||
a { text-decoration: none }
|
||||
|
||||
a:hover { color: red }
|
||||
|
|
@ -540,10 +540,7 @@ def process_node(html_parent, toc, level=1, indent=' ', style_level=2):
|
|||
html = E.html(
|
||||
E.head(
|
||||
E.title(title),
|
||||
E.style('''
|
||||
li { list-style-type: none; padding-left: 2em; margin-left: 0}
|
||||
a { text-decoration: none }
|
||||
a:hover { color: red }''', type='text/css'),
|
||||
E.style(P('templates/inline_toc_styles.css', data=True), type='text/css'),
|
||||
),
|
||||
E.body(
|
||||
E.h2(title),
|
||||
|
|
|
|||
Loading…
Reference in a new issue