mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04: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
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 create_inline_toc(container, title=None):
|
||||
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…
x
Reference in New Issue
Block a user