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:
Kovid Goyal 2014-11-07 21:23:41 +05:30
parent e9ad07791c
commit a6a2359025
2 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,5 @@
li { list-style-type: none; padding-left: 2em; margin-left: 0}
a { text-decoration: none }
a:hover { color: red }

View File

@ -540,10 +540,7 @@ def create_inline_toc(container, title=None):
html = E.html( html = E.html(
E.head( E.head(
E.title(title), E.title(title),
E.style(''' E.style(P('templates/inline_toc_styles.css', data=True), type='text/css'),
li { list-style-type: none; padding-left: 2em; margin-left: 0}
a { text-decoration: none }
a:hover { color: red }''', type='text/css'),
), ),
E.body( E.body(
E.h2(title), E.h2(title),